MCPcopy Index your code
hub / github.com/python/cpython / Mailbox

Class Mailbox

Lib/email/_header_value_parser.py:472–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470
471
472class 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
499class InvalidMailbox(TokenList):

Callers 1

get_mailboxFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…