N
Ғ;c       s      k  l  k Z  y  k Z  k Z Wn   n X k Z   k Z " d  e i	 i	 f d     YZ	 P e i	 i
 e	    d S(   s   Pluginc      sS   " # d   Z  ' d   Z * d   Z 1 d   Z 6 d d  Z D d d  Z RS(   Nc    s)   # $ t  i i i |   % d |  _ d  S(   Ni    (   s   mails   Plugins   __init__s   selfs   _enabled(   s   selfs-   /mit/python/share/pmail/plugins/HtmlViewer.pys   __init__# s   c    s   ' ( d Sd  S(   Ns
   HtmlViewer(    (   s   selfs-   /mit/python/share/pmail/plugins/HtmlViewer.pys   name' s   c    sW   * + |  i |  o6 , t d  } - | i d |  i |  . | g Sn / t Sd  S(   Ns   Open Externallys   activate(   s   selfs   _get_html_parts   messages   GtkMenuItems   items   connects	   open_htmls   None(   s   selfs   messages   items-   /mit/python/share/pmail/plugins/HtmlViewer.pys   message_list_popup_items* s
   c    s.   1 2 |  i o 3 |  i t | d  n d  S(   Ni    (   s   selfs   _enableds	   open_htmls   Nones   message(   s   selfs   messages   message_windows-   /mit/python/share/pmail/plugins/HtmlViewer.pys   message_displayed1 s   c    sz   6 7 | i   } 9 | i   d j o : | } n; < | i d d d d } > | o | o ? | } n A | Sd  S(   Ns	   text/htmls   texts   htmls   deepi   (   s   messages	   get_partss   parts	   mime_types   nparts	   find_parts
   open_plain(   s   selfs   messages
   open_plains   parts   nparts-   /mit/python/share/pmail/plugins/HtmlViewer.pys   _get_html_part6 s   i   c    s   D E |  i |  } F | o^ G t i | i   H d  } I | o2 J | i   } K t
 i i | i   d |  n n d  S(   Ns   open(   s   selfs   _get_html_parts   messages	   html_parts   _pmailextensionss   gnome_mime_get_values	   mime_types   views   write_to_files   fileNames   gtkfs   gutils   exec_mime_open(   s   selfs   ds   messages
   open_plains	   html_parts   views   fileNames-   /mit/python/share/pmail/plugins/HtmlViewer.pys	   open_htmlD s   

(   s   __init__s   names   message_list_popup_itemss   message_displayeds   _get_html_parts	   open_html(    s-   /mit/python/share/pmail/plugins/HtmlViewer.pys   Plugin" s   N(   s   gtks   *s   GtkExtras   gnomes   _pmailextensionss   mail.Plugins   mails
   gtkf.gutils   gtkfs   Plugins   register_plugin(    s-   /mit/python/share/pmail/plugins/HtmlViewer.pys   ? s   				.