MCPcopy Create free account
hub / github.com/RustPython/RustPython / Mailbox

Class Mailbox

Lib/email/_header_value_parser.py:465–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463
464
465class Mailbox(TokenList):
466
467 token_type = 'mailbox'
468
469 @property
470 def display_name(self):
471 if self[0].token_type == 'name-addr':
472 return self[0].display_name
473
474 @property
475 def local_part(self):
476 return self[0].local_part
477
478 @property
479 def domain(self):
480 return self[0].domain
481
482 @property
483 def route(self):
484 if self[0].token_type == 'name-addr':
485 return self[0].route
486
487 @property
488 def addr_spec(self):
489 return self[0].addr_spec
490
491
492class InvalidMailbox(TokenList):

Callers 1

get_mailboxFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected