;ò
£)?Bc           @   sI   d  Z  d k l Z d k l Z d k l Z d Z d „  Z d „  Z	 d S(   s¿  
    unsubscribe [password] [address=<address>]
        Unsubscribe from the mailing list.  If given, your password must match
        your current password.  If omitted, a confirmation email will be sent
        to the unsubscribing address. If you wish to unsubscribe an address
        other than the address you sent this request from, you may specify
        `address=<address>' (no brackets around the email address, and no
        quotes!)
(   s	   parseaddr(   s   Errors(   s   _i   c         C   s   t  t ƒ Sd  S(   N(   s   _s   __doc__(   s   mlist(    (    s0   /var/mailman/Mailman/Commands/cmd_unsubscribe.pys   gethelp$   s    c         C   sè  |  i } t } t } d } x} | D]u }	 |	 i d ƒ o |	 d } nH | d j o
 |	 } n1 |  i	 i
 t d ƒ ƒ |  i	 i
 t | ƒ ƒ t S| d 7} q" W| t j o t |  i d ƒ \ } } n | i | ƒ o' | i } |  i	 i
 t d ƒ ƒ t Sn | i oG y | i | d ƒ Wqät i j
 o |  i	 i
 t d	 ƒ ƒ qäXn— | t j o) | i | ƒ } | i | ƒ d |  _ na | i | ƒ }
 |
 | j o |  i	 i
 t d
 ƒ ƒ t Sn | i | d ƒ |  i	 i
 t d ƒ ƒ d  S(   Ni    s   address=i   s   Usage:i   s   froms<   %(address)s is not a member of the %(listname)s mailing lists   mailcmdsV   Your unsubscription request has been forwarded to the list administrator for
approval.s   You gave the wrong passwords!   Unsubscription request succeeded.(   s   ress   mlists   Nones   passwords   addresss   argnums   argss   args
   startswiths   resultss   appends   _s   gethelps   STOPs	   parseaddrs   msgs   realnames   isMembers	   real_names   listnames   unsubscribe_policys   DeleteMembers   Errorss   MMNeedApprovals   getMemberCPAddresss   cpaddrs   ConfirmUnsubscriptions   responds   getMemberPasswords   oldpws   ApprovedDeleteMember(   s   ress   argss   realnames   listnames   cpaddrs   argnums   mlists   addresss   passwords   args   oldpw(    (    s0   /var/mailman/Mailman/Commands/cmd_unsubscribe.pys   process)   sF    	 
	
N(
   s   __doc__s   email.Utilss	   parseaddrs   Mailmans   Errorss   Mailman.i18ns   _s   STOPs   gethelps   process(   s	   parseaddrs   Errorss   processs   STOPs   gethelps   _(    (    s0   /var/mailman/Mailman/Commands/cmd_unsubscribe.pys   ?   s   	