ó
Gü½cc           @   sL   d  Z  d d l m Z d d l m Z d e j f d     YZ d   Z d S(   s­   Put an emergency hold on all messages otherwise approved.

No notices are sent to either the sender or the list owner for emergency
holds.  I think they'd be too obnoxious.
i˙˙˙˙(   t   Errors(   t   _t   EmergencyHoldc           B   s    e  Z e d   Z e d  Z RS(   s/   Emergency hold on all list traffic is in effects7   Your message was deemed inappropriate by the moderator.(   t   __name__t
   __module__R   t   reasont	   rejection(    (    (    s9   /export/web/mailman/mailman/Mailman/Handlers/Emergency.pyR      s   c         C   sB   |  j  r> | j d  r> |  j | t t j  |  t  n  d  S(   Nt   adminapproved(   t	   emergencyt   gett   HoldMessageR   R   R   (   t   mlistt   msgt   msgdata(    (    s9   /export/web/mailman/mailman/Mailman/Handlers/Emergency.pyt   process"   s    N(   t   __doc__t   MailmanR    t   Mailman.i18nR   R
   R   R   (    (    (    s9   /export/web/mailman/mailman/Mailman/Handlers/Emergency.pyt   <module>   s   