| 470 | |
| 471 | |
| 472 | class Mailbox(TokenList): |
| 473 | |
| 474 | token_type = 'mailbox' |
| 475 | |
| 476 | @property |
| 477 | def display_name(self): |
| 478 | if self[0].token_type == 'name-addr': |
| 479 | return self[0].display_name |
| 480 | |
| 481 | @property |
| 482 | def local_part(self): |
| 483 | return self[0].local_part |
| 484 | |
| 485 | @property |
| 486 | def domain(self): |
| 487 | return self[0].domain |
| 488 | |
| 489 | @property |
| 490 | def route(self): |
| 491 | if self[0].token_type == 'name-addr': |
| 492 | return self[0].route |
| 493 | |
| 494 | @property |
| 495 | def addr_spec(self): |
| 496 | return self[0].addr_spec |
| 497 | |
| 498 | |
| 499 | class InvalidMailbox(TokenList): |
no outgoing calls
no test coverage detected
searching dependent graphs…