class documentation
An email service.
Method | __init__ |
Initialize the mail service. |
Method | add |
Add a domain for which the service will accept email. |
Method | default |
Return the portal for the default domain. |
Method | get |
Create an ESMTP protocol factory. |
Method | get |
Create a POP3 protocol factory. |
Method | get |
Create an SMTP protocol factory. |
Method | lookup |
Find the portal for a domain. |
Method | request |
Return a message delivery for an authenticated SMTP user. |
Method | set |
Set the queue for outgoing emails. |
Instance Variable | aliases |
A mapping of domain name to alias. |
Instance Variable | domains |
A mapping of supported domain name to domain object. |
Instance Variable | monitor |
A service to monitor changes to files. |
Instance Variable | portals |
A mapping of domain name to authentication portal. |
Instance Variable | queue |
A queue for outgoing messages. |
Instance Variable | smtp |
A portal for authentication for the SMTP server. |
Inherited from MultiService
:
Method | __iter__ |
Get an iterator over all child services. |
Method | add |
Add a child service. |
Method | get |
Get the child service with a given name. |
Method | privileged |
Do preparation work for starting the service. |
Method | remove |
Remove a child service. |
Method | start |
Start the service. |
Method | stop |
Stop the service. |
Instance Variable | named |
Undocumented |
Instance Variable | parent |
An IServiceCollection which is the parent or None. |
Instance Variable | services |
Undocumented |
Inherited from Service
(via MultiService
):
Method | __getstate__ |
Undocumented |
Method | disown |
Use this API to remove an IService from an IServiceCollection . |
Method | set |
Set the name of the service. |
Method | set |
Set the parent of the service. This method is responsible for setting the parent attribute on this service (the child service). |
Instance Variable | name |
A str which is the name of the service or None. |
Instance Variable | running |
A boolean which indicates whether the service is running. |
Return the portal for the default domain.
The default domain is named ''.
Returns | |
Portal | The portal for the default domain. |
Return a message delivery for an authenticated SMTP user.
Parameters | |
avatarbytes | A string which identifies an authenticated user. |
mind:None | Unused. |
*interfaces:n-tuple of zope.interface.Interface | A group of interfaces one of which the avatar must support. |
Returns | |
3-tuple of (1) IMessageDelivery , (2) ESMTPDomainDelivery , (3) no-argument callable | A tuple of the supported interface, a message delivery, and a logout function. |
Raises | |
NotImplementedError | When the given interfaces do not include IMessageDelivery . |