ó
Uü½cc           @   sf   d  Z  d d l m Z d d l m Z d d l m Z d d l m Z d Z d e f d „  ƒ  YZ	 d S(   s)   Administrative GUI for the autoresponder.iÿÿÿÿ(   t   mm_cfg(   t   Utils(   t   _(   t   GUIBaset   listnamet   listurlt   requestemailt
   adminemailt
   owneremailt   Autoresponsec           B   s&   e  Z d  „  Z d d „ Z d „  Z RS(   c         C   s   d t  d ƒ f S(   Nt	   autoreplys   Auto-responder(   R   (   t   self(    (    s7   /export/web/mailman/mailman/Mailman/Gui/Autoresponse.pyt   GetConfigCategory   s    c         C   s4  | d k r d  St j } t d ƒ d t j t d ƒ t d ƒ f d t d ƒ f d t j d	 | f d t d
 ƒ f d t j t d ƒ t d ƒ f d t d ƒ f d t j d	 | f d t d ƒ f d t j t d ƒ t d ƒ t d ƒ f d t d ƒ f d t j d	 | f d t d ƒ f d t j d d t d ƒ f g S(   NR
   sB  Auto-responder characteristics.<p>

In the text fields below, string interpolation is performed with
the following key/value substitutions:
<p><ul>
    <li><b>listname</b> - <em>gets the name of the mailing list</em>
    <li><b>listurl</b> - <em>gets the list's listinfo URL</em>
    <li><b>requestemail</b> - <em>gets the list's -request address</em>
    <li><b>owneremail</b> - <em>gets the list's -owner address</em>
</ul>

<p>For each text field, you can either enter the text directly into the text
box, or you can specify a file on your local system to upload as the text.t   autorespond_postingst   Not   Yesi    sJ   Should Mailman send an auto-response to mailing list
             posters?t   autoresponse_postings_texti   s3   Auto-response text to send to mailing list posters.t   autorespond_adminsW   Should Mailman send an auto-response to emails sent to the
             -owner address?t   autoresponse_admin_texts,   Auto-response text to send to -owner emails.t   autorespond_requestss   Yes, w/discards   Yes, w/forwardsÿ   Should Mailman send an auto-response to emails sent to the
             -request address?  If you choose yes, decide whether you want
             Mailman to discard the original email, or forward it on to the
             system as a normal mail command.t   autoresponse_request_texts.   Auto-response text to send to -request emails.t   autoresponse_graceperiodi   sí   Number of days between auto-responses to either the mailing
             list or -request/-owner address from the same poster.  Set to
             zero (or negative) for no grace period (i.e. auto-respond to
             every message).(   t   NoneR    t   TEXTFIELDWIDTHR   t   Togglet
   FileUploadt   Radiot   Number(   R   t   mlistt   categoryt   subcatt   WIDTH(    (    s7   /export/web/mailman/mailman/Mailman/Gui/Autoresponse.pyt   GetConfigInfo!   s6    	!		!			!		c         C   sW   | d k r: |  j  | | t | | ƒ } | d  k r: d  Sn  t j |  | | | | ƒ d  S(   NR   R   R   (   R   R   R   (   t   _convertStringt   ALLOWEDSR   R   t	   _setValue(   R   R   t   propertyt   valt   doc(    (    s7   /export/web/mailman/mailman/Mailman/Gui/Autoresponse.pyR#   X   s     	N(   t   __name__t
   __module__R   R   R    R#   (    (    (    s7   /export/web/mailman/mailman/Mailman/Gui/Autoresponse.pyR	      s   	7N(   R   R   R   R   R   (
   t   __doc__t   MailmanR    R   t   Mailman.i18nR   t   Mailman.Gui.GUIBaseR   R"   R	   (    (    (    s7   /export/web/mailman/mailman/Mailman/Gui/Autoresponse.pyt   <module>   s   