ó
Jü½cc           @   sI   d  Z  d d l m Z d d l m Z d d l m Z d Z d   Z d S(   s)   Move the message to the mail->news queue.i˙˙˙˙(   t   mm_cfg(   t   get_switchboard(   t   syslogs   , c         C   sĥ   |  j  s( | j d  s( | j d  r, d  Sg  } |  j sK | j d  n  |  j sd | j d  n  | r t d d t j |   d  St t	 j
  } | j | | d |  j   d  S(   Nt   isdigestt
   fromusenets   no newsgroups   no NNTP hostt   errors&   NNTP gateway improperly configured: %st   listname(   t   gateway_to_newst   gett   linked_newsgroupt   appendt	   nntp_hostR   t
   COMMASPACEt   joinR   R    t   NEWSQUEUE_DIRt   enqueuet   internal_name(   t   mlistt   msgt   msgdataR   t   newsq(    (    s8   /export/web/mailman/mailman/Mailman/Handlers/ToUsenet.pyt   process   s    
			N(	   t   __doc__t   MailmanR    t   Mailman.Queue.sbcacheR   t   Mailman.Logging.SyslogR   R   R   (    (    (    s8   /export/web/mailman/mailman/Mailman/Handlers/ToUsenet.pyt   <module>   s
   