o
    Òó·iº]  ã                   @   sJ  d Z ddlZddlZddlmZ ddlmZmZmZ ddl	m
Z
 ddlmZ ddlmZmZ dd	„ Zd d
d„ZG dd„ dƒZeeƒG dd„ deƒƒZee
jƒG dd„ dƒƒZeeƒG dd„ deƒƒZG dd„ deƒZee
jƒG dd„ dƒƒZG dd„ dejƒZeeƒG dd„ deƒƒZee
jƒG dd„ dƒƒZeeƒG dd„ deƒƒZdS )!zD
Support for aliases(5) configuration files.

@author: Jp Calderone
é    N)Úimplementer)ÚdeferÚprotocolÚreactor)Úsmtp)ÚIAlias)ÚfailureÚlogc           	      C   sp   dd„ |  dd¡D ƒ}t|ƒdkr d}||f}t || ¡ dS |\}}|  | ¡ g ¡ ttj|  d¡ƒ¡ dS )	að  
    Parse a line from an aliases file.

    @type result: L{dict} mapping L{bytes} to L{list} of L{bytes}
    @param result: A dictionary mapping username to aliases to which
        the results of parsing the line are added.

    @type line: L{bytes}
    @param line: A line from an aliases file.

    @type filename: L{bytes}
    @param filename: The full or relative path to the aliases file.

    @type lineNo: L{int}
    @param lineNo: The position of the line within the aliases file.
    c                 S   ó   g | ]}|  ¡ ‘qS © ©Ústrip)Ú.0Úpr   r   úXC:\Users\psant\Downloads\PAF backend\school\venv\Lib\site-packages\twisted/mail/alias.pyÚ
<listcomp>)   ó    zhandle.<locals>.<listcomp>ú:é   é   z+Invalid format on line %d of alias file %s.ú,N)	ÚsplitÚlenr	   ÚerrÚ
setdefaultr   ÚextendÚmapÚstr)	ÚresultÚlineÚfilenameZlineNoÚpartsÚfmtÚargÚuserÚaliasr   r   r   Úhandle   s   (r&   c           
      C   sê   i }d}|du rt |ƒ}d}nt|ddƒ}d}d}z7|D ],}|d7 }| ¡ }| ¡  d	¡r.q| d
¡s8| d¡r=|| }q|rFt||||ƒ |}qW |rP| ¡  n|rX| ¡  w w |rbt||||ƒ | ¡ D ]\}}	t|	| |ƒ||< qf|S )a¢  
    Load a file containing email aliases.

    Lines in the file should be formatted like so::

         username: alias1, alias2, ..., aliasN

    Aliases beginning with a C{|} will be treated as programs, will be run, and
    the message will be written to their stdin.

    Aliases beginning with a C{:} will be treated as a file containing
    additional aliases for the username.

    Aliases beginning with a C{/} will be treated as the full pathname to a file
    to which the message will be appended.

    Aliases without a host part will be assumed to be addresses on localhost.

    If a username is specified multiple times, the aliases for each are joined
    together as if they had all been on one line.

    Lines beginning with a space or a tab are continuations of the previous
    line.

    Lines beginning with a C{#} are comments.

    @type domains: L{dict} mapping L{bytes} to L{IDomain} provider
    @param domains: A mapping of domain name to domain object.

    @type filename: L{bytes} or L{None}
    @param filename: The full or relative path to a file from which to load
        aliases. If omitted, the C{fp} parameter must be specified.

    @type fp: file-like object or L{None}
    @param fp: The file from which to load aliases. If specified,
        the C{filename} parameter is ignored.

    @rtype: L{dict} mapping L{bytes} to L{AliasGroup}
    @return: A mapping from username to group of aliases.
    FNTÚnamez	<unknown>r   Ú r   ú#ú ú	)	ÚopenÚgetattrÚrstripÚlstripÚ
startswithr&   ÚcloseÚitemsÚ
AliasGroup)
Údomainsr    Úfpr   r1   ÚiÚprevr   ÚuÚar   r   r   ÚloadAliasFile3   s>   )
ö€ÿ
ÿr:   c                   @   s*   e Zd ZdZdd„ Zdd„ Zd	dd„ZdS )
Ú	AliasBasezª
    The default base class for aliases.

    @ivar domains: See L{__init__}.

    @type original: L{Address}
    @ivar original: The original address being aliased.
    c                 C   s   || _ t |¡| _dS )zò
        @type domains: L{dict} mapping L{bytes} to L{IDomain} provider
        @param domains: A mapping of domain name to domain object.

        @type original: L{bytes}
        @param original: The original address being aliased.
        N)r4   r   ÚAddressÚoriginal)Úselfr4   r=   r   r   r   Ú__init__…   s   zAliasBase.__init__c                 C   s   | j | jj S )z 
        Return the domain associated with original address.

        @rtype: L{IDomain} provider
        @return: The domain for the original address.
        N)r4   r=   Údomain©r>   r   r   r   r@   �   ó   zAliasBase.domainNc                 C   s0   |du ri }t | ƒ|v rdS d|t | ƒ< |  ¡ S ©aY  
        Map this alias to its ultimate destination.

        @type aliasmap: L{dict} mapping L{bytes} to L{AliasBase}
        @param aliasmap: A mapping of username to alias or group of aliases.

        @type memo: L{None} or L{dict} of L{AliasBase}
        @param memo: A record of the aliases already considered in the
            resolution process.  If provided, C{memo} is modified to include
            this alias.

        @rtype: L{IMessage <smtp.IMessage>} or L{None}
        @return: A message receiver for the ultimate destination or None for
            an invalid destination.
        N)r   ÚcreateMessageReceiver©r>   ÚaliasmapÚmemor   r   r   Úresolve™   s   zAliasBase.resolve©N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r?   r@   rH   r   r   r   r   r;   {   s
    		r;   c                   @   s8   e Zd ZdZdd„ Zdefdd„Zdd„ Zdd
d„Zd	S )ÚAddressAliasz‹
    An alias which translates one email address into another.

    @type alias : L{Address}
    @ivar alias: The destination address.
    c                 G   s"   t j| g|¢R Ž  t |¡| _dS )aQ  
        @type alias: L{Address}, L{User}, L{bytes} or object which can be
            converted into L{bytes}
        @param alias: The destination address.

        @type args: 2-L{tuple} of (0) L{dict} mapping L{bytes} to L{IDomain}
            provider, (1) L{bytes}
        @param args: Arguments for L{AliasBase.__init__}.
        N)r;   r?   r   r<   r%   )r>   r%   Úargsr   r   r   r?   º   s   
zAddressAlias.__init__Úreturnc                 C   ó   d| j › d�S )z©
        Build a string representation of this L{AddressAlias} instance.

        @rtype: L{bytes}
        @return: A string containing the destination address.
        z	<Address ú>N)r%   rA   r   r   r   Ú__str__Ç   rB   zAddressAlias.__str__c                 C   s   |   ¡  t| jƒ¡S )zÃ
        Create a message receiver which delivers a message to
        the destination address.

        @rtype: L{IMessage <smtp.IMessage>} provider
        @return: A message receiver.
        N)r@   Úexistsr   r%   rA   r   r   r   rD   Ð   s   z"AddressAlias.createMessageReceiverNc                 C   s„   |du ri }t | ƒ|v rdS d|t | ƒ< z|  ¡  t | jddd¡|¡ƒ W S  tjy/   Y nw | jj|v r@|| jj  ||¡S dS rC   )	r   r@   rT   r   ZUserr%   ZSMTPBadRcptÚlocalrH   rE   r   r   r   rH   Ú   s   "ÿzAddressAlias.resolverI   )	rJ   rK   rL   rM   r?   r   rS   rD   rH   r   r   r   r   rN   ±   s    	
rN   c                   @   ó>   e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zd
efdd„Z	dS )ÚFileWrappera  
    A message receiver which delivers a message to a file.

    @type fp: file-like object
    @ivar fp: A file used for temporary storage of the message.

    @type finalname: L{bytes}
    @ivar finalname: The name of the file in which the message should be
        stored.
    c                 C   s   t  ¡ | _|| _dS )z‹
        @type filename: L{bytes}
        @param filename: The name of the file in which the message should be
            stored.
        N)ÚtempfileÚTemporaryFiler5   Ú	finalname)r>   r    r   r   r   r?     s   

zFileWrapper.__init__c                 C   s   | j  |d ¡ dS )z‘
        Write a received line to the temporary file.

        @type line: L{bytes}
        @param line: A received line of the message.
        Ú
N)r5   Úwrite©r>   r   r   r   r   ÚlineReceived  ó   zFileWrapper.lineReceivedc                 C   sŠ   | j  dd¡ zt| jdƒ}W n ty   t t ¡ ¡ Y S w |� | 	| j  
¡ ¡ | j  ¡  W d  ƒ n1 s:w   Y  t | j¡S )ac  
        Handle end of message by writing the message to the file.

        @rtype: L{Deferred <defer.Deferred>} which successfully results in
            L{bytes}
        @return: A deferred which succeeds with the name of the file to which
            the message has been stored or fails if the message cannot be
            saved to the file.
        r   r9   N)r5   Úseekr,   rZ   ÚBaseExceptionr   Zfailr   ÚFailurer\   Úreadr1   Zsucceed)r>   Úfr   r   r   ÚeomReceived  s   
ÿþzFileWrapper.eomReceivedc                 C   s   | j  ¡  d| _ dS )zG
        Close the temporary file when the connection is lost.
        N)r5   r1   rA   r   r   r   ÚconnectionLost-  s   

zFileWrapper.connectionLostrP   c                 C   rQ   )z­
        Build a string representation of this L{FileWrapper} instance.

        @rtype: L{bytes}
        @return: A string containing the file name of the message.
        z<FileWrapper rR   N)rZ   rA   r   r   r   rS   4  rB   zFileWrapper.__str__N©
rJ   rK   rL   rM   r?   r^   re   rf   r   rS   r   r   r   r   rW   ø   s    		rW   c                   @   s.   e Zd ZdZdd„ Zdefdd„Zdd„ Zd	S )
Ú	FileAliasz_
    An alias which translates an address to a file.

    @ivar filename: See L{__init__}.
    c                 G   s   t j| g|¢R Ž  || _dS )a"  
        @type filename: L{bytes}
        @param filename: The name of the file in which to store the message.

        @type args: 2-L{tuple} of (0) L{dict} mapping L{bytes} to L{IDomain}
            provider, (1) L{bytes}
        @param args: Arguments for L{AliasBase.__init__}.
        N)r;   r?   r    )r>   r    rO   r   r   r   r?   F  s   	
zFileAlias.__init__rP   c                 C   rQ   )z£
        Build a string representation of this L{FileAlias} instance.

        @rtype: L{bytes}
        @return: A string containing the name of the file.
        z<File rR   N)r    rA   r   r   r   rS   R  rB   zFileAlias.__str__c                 C   ó
   t | jƒS )z¹
        Create a message receiver which delivers a message to the file.

        @rtype: L{FileWrapper}
        @return: A message receiver which writes a message to the file.
        N)rW   r    rA   r   r   r   rD   [  ó   
zFileAlias.createMessageReceiverN)rJ   rK   rL   rM   r?   r   rS   rD   r   r   r   r   rh   >  s
    	rh   c                   @   s   e Zd ZdZdS )ÚProcessAliasTimeoutzb
    An error indicating that a timeout occurred while waiting for a process
    to complete.
    N)rJ   rK   rL   rM   r   r   r   r   rk   e  s    rk   c                   @   s`   e Zd ZdZdZdZdZeZddd„Zdd„ Z	d	d
„ Z
dd„ Zdd„ Zdd„ Zdefdd„ZdS )ÚMessageWrapperaF  
    A message receiver which delivers a message to a child process.

    @type completionTimeout: L{int} or L{float}
    @ivar completionTimeout: The number of seconds to wait for the child
        process to exit before reporting the delivery as a failure.

    @type _timeoutCallID: L{None} or
        L{IDelayedCall <twisted.internet.interfaces.IDelayedCall>} provider
    @ivar _timeoutCallID: The call used to time out delivery, started when the
        connection to the child process is closed.

    @type done: L{bool}
    @ivar done: A flag indicating whether the child process has exited
        (C{True}) or not (C{False}).

    @type reactor: L{IReactorTime <twisted.internet.interfaces.IReactorTime>}
        provider
    @ivar reactor: A reactor which will be used to schedule timeouts.

    @ivar protocol: See L{__init__}.

    @type processName: L{bytes} or L{None}
    @ivar processName: The process name.

    @type completion: L{Deferred <defer.Deferred>}
    @ivar completion: The deferred which will be triggered by the protocol
        when the child process exits.
    Fé<   Nc                 C   sD   || _ || _t ¡ | _| j| j_| j | j¡ |dur || _dS dS )a–  
        @type protocol: L{ProcessAliasProtocol}
        @param protocol: The protocol associated with the child process.

        @type process: L{bytes} or L{None}
        @param process: The process name.

        @type reactor: L{None} or L{IReactorTime
            <twisted.internet.interfaces.IReactorTime>} provider
        @param reactor: A reactor which will be used to schedule timeouts.
        N)	ÚprocessNamer   r   ZDeferredÚ
completionÚonEndZaddBothÚ_processEndedr   )r>   r   Úprocessr   r   r   r   r?   “  s   


ÿzMessageWrapper.__init__c                 C   s(   d| _ | jdur| j ¡  d| _dS |S )a—  
        Record process termination and cancel the timeout call if it is active.

        @type result: L{Failure <failure.Failure>}
        @param result: The reason the child process terminated.

        @rtype: L{None} or L{Failure <failure.Failure>}
        @return: None, if the process end is expected, or the reason the child
            process terminated, if the process end is unexpected.
        TN)ÚdoneÚ_timeoutCallIDÚcancel)r>   r   r   r   r   rq   ¨  s
   


zMessageWrapper._processEndedc                 C   s    | j rdS | jj |d ¡ dS )z�
        Write a received line to the child process.

        @type line: L{bytes}
        @param line: A received line of the message.
        Nr[   )rs   r   Ú	transportr\   r]   r   r   r   r^   ¾  s   zMessageWrapper.lineReceivedc                 C   s,   | j s| jj ¡  | j | j| j¡| _| j	S )zö
        Disconnect from the child process and set up a timeout to wait for it
        to exit.

        @rtype: L{Deferred <defer.Deferred>}
        @return: A deferred which will be called back when the child process
            exits.
        N)
rs   r   rv   ZloseConnectionr   Z	callLaterÚcompletionTimeoutÚ_completionCancelrt   ro   rA   r   r   r   re   É  s   	ÿzMessageWrapper.eomReceivedc                 C   sD   d| _ | jj d¡ td| j› d�ƒ}d| j_| j t	 
|¡¡ dS )zÅ
        Handle the expiration of the timeout for the child process to exit by
        terminating the child process forcefully and issuing a failure to the
        L{completion} deferred.
        NZKILLzNo answer after z seconds)rt   r   rv   ZsignalProcessrk   rw   rp   ro   Úerrbackr   rb   )r>   Úexcr   r   r   rx   Ù  s
   z MessageWrapper._completionCancelc                 C   s   dS )z9
        Ignore notification of lost connection.
        Nr   rA   r   r   r   rf   å  s    zMessageWrapper.connectionLostrP   c                 C   rQ   )z«
        Build a string representation of this L{MessageWrapper} instance.

        @rtype: L{bytes}
        @return: A string containing the name of the process.
        z<ProcessWrapper rR   N)rn   rA   r   r   r   rS   ê  rB   zMessageWrapper.__str__©NN)rJ   rK   rL   rM   rs   rw   rt   r   r?   rq   r^   re   rx   rf   r   rS   r   r   r   r   rl   l  s    
rl   c                   @   s   e Zd ZdZdZdd„ ZdS )ÚProcessAliasProtocolzå
    A process protocol which errbacks a deferred when the associated
    process ends.

    @type onEnd: L{None} or L{Deferred <defer.Deferred>}
    @ivar onEnd: If set, a deferred on which to errback when the process ends.
    Nc                 C   s   | j dur| j  |¡ dS dS )z–
        Call an errback.

        @type reason: L{Failure <failure.Failure>}
        @param reason: The reason the child process terminated.
        N)rp   ry   )r>   Úreasonr   r   r   ÚprocessEndedÿ  s   
ÿz!ProcessAliasProtocol.processEnded)rJ   rK   rL   rM   rp   r~   r   r   r   r   r|   ô  s    r|   c                   @   s:   e Zd ZdZeZdd„ Zdefdd„Zdd„ Zd	d
„ Z	dS )ÚProcessAliasa6  
    An alias which is handled by the execution of a program.

    @type path: L{list} of L{bytes}
    @ivar path: The arguments to pass to the process. The first string is
        the executable's name.

    @type program: L{bytes}
    @ivar program: The path of the program to be executed.

    @type reactor: L{IReactorTime <twisted.internet.interfaces.IReactorTime>}
        and L{IReactorProcess <twisted.internet.interfaces.IReactorProcess>}
        provider
    @ivar reactor: A reactor which will be used to create and timeout the
        child process.
    c                 G   s,   t j| g|¢R Ž  | ¡ | _| jd | _dS )aX  
        @type path: L{bytes}
        @param path: The command to invoke the program consisting of the path
            to the executable followed by any arguments.

        @type args: 2-L{tuple} of (0) L{dict} mapping L{bytes} to L{IDomain}
            provider, (1) L{bytes}
        @param args: Arguments for L{AliasBase.__init__}.
        r   N)r;   r?   r   ÚpathÚprogram)r>   r€   rO   r   r   r   r?     s   
zProcessAlias.__init__rP   c                 C   rQ   )z¸
        Build a string representation of this L{ProcessAlias} instance.

        @rtype: L{bytes}
        @return: A string containing the command used to invoke the process.
        z	<Process rR   N)r€   rA   r   r   r   rS   .  rB   zProcessAlias.__str__c                 C   s   | j  |||¡S )aP  
        Spawn a process.

        This wraps the L{spawnProcess
        <twisted.internet.interfaces.IReactorProcess.spawnProcess>} method on
        L{reactor} so that it can be customized for test purposes.

        @type proto: L{IProcessProtocol
            <twisted.internet.interfaces.IProcessProtocol>} provider
        @param proto: An object which will be notified of all events related to
            the created process.

        @type program: L{bytes}
        @param program: The full path name of the file to execute.

        @type path: L{list} of L{bytes}
        @param path: The arguments to pass to the process. The first string
            should be the executable's name.

        @rtype: L{IProcessTransport
            <twisted.internet.interfaces.IProcessTransport>} provider
        @return: A process transport.
        N)r   ÚspawnProcess)r>   Úprotor�   r€   r   r   r   r‚   7  s   zProcessAlias.spawnProcessc                 C   s,   t ƒ }t|| j| jƒ}|  || j| j¡ |S )zÚ
        Launch a process and create a message receiver to pass a message
        to the process.

        @rtype: L{MessageWrapper}
        @return: A message receiver which delivers a message to the process.
        N)r|   rl   r�   r   r‚   r€   )r>   r   Úmr   r   r   rD   Q  s   z"ProcessAlias.createMessageReceiverN)
rJ   rK   rL   rM   r   r?   r   rS   r‚   rD   r   r   r   r   r   
  s    	r   c                   @   rV   )ÚMultiWrapperz‡
    A message receiver which delivers a single message to multiple other
    message receivers.

    @ivar objs: See L{__init__}.
    c                 C   s
   || _ dS )z²
        @type objs: L{list} of L{IMessage <smtp.IMessage>} provider
        @param objs: Message receivers to which the incoming message should be
            directed.
        N)Úobjs)r>   r†   r   r   r   r?   h  s   
zMultiWrapper.__init__c                 C   s   | j D ]}| |¡ qdS )zŠ
        Pass a received line to the message receivers.

        @type line: L{bytes}
        @param line: A line of the message.
        N)r†   r^   )r>   r   Úor   r   r   r^   p  s   
ÿzMultiWrapper.lineReceivedc                 C   s   t  dd„ | jD ƒ¡S )aG  
        Pass the end of message along to the message receivers.

        @rtype: L{DeferredList <defer.DeferredList>} whose successful results
            are L{bytes} or L{None}
        @return: A deferred list which triggers when all of the message
            receivers have finished handling their end of message.
        c                 S   r
   r   )re   )r   r‡   r   r   r   r   ƒ  r   z,MultiWrapper.eomReceived.<locals>.<listcomp>N)r   ZDeferredListr†   rA   r   r   r   re   z  s   	zMultiWrapper.eomReceivedc                 C   s   | j D ]}| ¡  qdS )zQ
        Inform the message receivers that the connection has been lost.
        N)r†   rf   )r>   r‡   r   r   r   rf   …  s   

ÿzMultiWrapper.connectionLostrP   c                 C   s   dt t| jƒ›d�S )z±
        Build a string representation of this L{MultiWrapper} instance.

        @rtype: L{bytes}
        @return: A string containing a list of the message receivers.
        z<GroupWrapper rR   N)r   r   r†   rA   r   r   r   rS   Œ  r_   zMultiWrapper.__str__Nrg   r   r   r   r   r…   _  s    
r…   c                   @   sD   e Zd ZdZeZdd„ Zdd„ Zdefdd„Z	d	d
„ Z
ddd„ZdS )r3   aL  
    An alias which points to multiple destination aliases.

    @type processAliasFactory: no-argument callable which returns
        L{ProcessAlias}
    @ivar processAliasFactory: A factory for process aliases.

    @type aliases: L{list} of L{AliasBase} which implements L{IAlias}
    @ivar aliases: The destination aliases.
    c              	   G   sJ  t j| g|¢R Ž  g | _|r£| ¡  ¡ }| d¡r^z
t|dd… ƒ}W n ty8   t 	d|dd… ›�¡ Y ngw |� d 
dd„ |D ƒ¡}W d  ƒ n1 sPw   Y  | | d¡¡ nA| d	¡ru| j | j|dd… g|¢R Ž ¡ n*| d
¡r“tj |¡r†t 	d¡ n| j t|g|¢R Ž ¡ n| j t|g|¢R Ž ¡ |sdS dS )a‚  
        Create a group of aliases.

        Parse a list of alias strings and, for each, create an appropriate
        alias object.

        @type items: L{list} of L{bytes}
        @param items: Aliases.

        @type args: n-L{tuple} of (0) L{dict} mapping L{bytes} to L{IDomain}
            provider, (1) L{bytes}
        @param args: Arguments for L{AliasBase.__init__}.
        r   r   NzInvalid filename in alias file r*   c                 S   r
   r   r   )r   Úlr   r   r   r   ¿  r   z'AliasGroup.__init__.<locals>.<listcomp>r   ú|ú/z Directory delivery not supported)r;   r?   ÚaliasesÚpopr   r0   r,   ra   r	   r   Újoinr   r   ÚappendÚprocessAliasFactoryÚosr€   Úisdirrh   rN   )r>   r2   rO   Úaddrrd   r   r   r   r?   ¥  s,   
ÿÿ
$
ízAliasGroup.__init__c                 C   ri   )z‰
        Return the number of aliases in the group.

        @rtype: L{int}
        @return: The number of aliases in the group.
        N)r   r‹   rA   r   r   r   Ú__len__Ë  rj   zAliasGroup.__len__rP   c                 C   s   dd  tt| jƒ¡ S )z¨
        Build a string representation of this L{AliasGroup} instance.

        @rtype: L{bytes}
        @return: A string containing the aliases in the group.
        z<AliasGroup [%s]>z, N)r�   r   r   r‹   rA   r   r   r   rS   Ô  s   zAliasGroup.__str__c                 C   s   t dd„ | jD ƒƒS )a,  
        Create a message receiver for each alias and return a message receiver
        which will pass on a message to each of those.

        @rtype: L{MultiWrapper}
        @return: A message receiver which passes a message on to message
            receivers for each alias in the group.
        c                 S   r
   r   )rD   )r   r9   r   r   r   r   æ  r   z4AliasGroup.createMessageReceiver.<locals>.<listcomp>N)r…   r‹   rA   r   r   r   rD   Ý  s   	z AliasGroup.createMessageReceiverNc                 C   s<   |du ri }g }| j D ]}| | ||¡¡ qttd|ƒƒS )a�  
        Map each of the aliases in the group to its ultimate destination.

        @type aliasmap: L{dict} mapping L{bytes} to L{AliasBase}
        @param aliasmap: A mapping of username to alias or group of aliases.

        @type memo: L{None} or L{dict} of L{AliasBase}
        @param memo: A record of the aliases already considered in the
            resolution process.  If provided, C{memo} is modified to include
            this alias.

        @rtype: L{MultiWrapper}
        @return: A message receiver which passes the message on to message
            receivers for the ultimate destination of each alias in the group.
        N)r‹   rŽ   rH   r…   Úfilter)r>   rF   rG   Úrr9   r   r   r   rH   è  s   
zAliasGroup.resolverI   )rJ   rK   rL   rM   r   r�   r?   r“   r   rS   rD   rH   r   r   r   r   r3   –  s    &		r3   r{   )rM   r�   rX   Zzope.interfacer   Ztwisted.internetr   r   r   Ztwisted.mailr   Ztwisted.mail.interfacesr   Ztwisted.pythonr   r	   r&   r:   r;   rN   ZIMessagerW   rh   Ú	Exceptionrk   rl   ZProcessProtocolr|   r   r…   r3   r   r   r   r   Ú<module>   s8   
H6FE& T6