Central control point for all mail related code. For each IMAP, POP,
and SMTP account it creates a client instance to handle requests and
stores the client in its queue.
The MailService is started with Chandler in the application codes and
shutdown with Chandler.
It employees the lazy loading model where no clients are created until
one is requested.
If one exists in the cache it returns that instance.
Caching instances allows finite control of
|
|
__init__(self,
view)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature |
source code
|
|
|
|
startup(self)
Initializes the MailService and creates the cache for suppported
protocols POP, SMTP, IMAP |
source code
|
|
|
|
shutdown(self)
Shutsdown the MailService and deletes any clients in the
MailServices cache |
source code
|
|
|
|
|
|
|
|
|
|
isOnline(self,
view=<Locale: en_US>)
A view should be passed when the check for isOnline is not
performed on the Main UI Thread. |
source code
|
|
|
|
refreshMailServiceCache(self)
Refreshs the MailService Cache checking for any client instances
that are associated with an inactive or deleted account. |
source code
|
|
|
|
refreshIMAPClientCache(self)
Refreshes the IMAPClient cache removing any instances
associated with inactive or deleted accounts |
source code
|
|
|
|
refreshSMTPClientCache(self)
Refreshes the SMTPClient cache removing any instances
associated with inactive or deleted accounts |
source code
|
|
|
|
refreshPOPClientCache(self)
Refreshes the POPClient cache removing any instances
associated with inactive or deleted accounts |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|