*ë
ùÒ’;c       s     d  k  Z   d  k Z  d  k Z  d  k Z  d  k Z  d  k Z  d  k Z  d k l Z  d k T d  k	 Z	   d  k
 Z
 ! d  k Z # d Z $ d Z % d Z ' d a ( d „  Z / d e f d „  ƒ  YZ é d	 e f d
 „  ƒ  YZ  d e f d „  ƒ  YZ d  S(   N(   s   StringIO(   s   *i    i   i   c    sF   ( ) * t  |  ƒ o, + t d „  |  ƒ } , t | ƒ d a n d  S(   Nc    s   + |  d S(   Ns	   unique_id(   s   x(   s   x(    (    s&   /mit/python/share/pmail/mail/Source.pys   <lambda>+ s    i   (   s   lens   sourcess   maps   idss   maxs   next_unique_id(   s   sourcess   ids(    (    s&   /mit/python/share/pmail/mail/Source.pys   update_next_unique_id( s   s   Sourcec      s�  / 0 d „  Z  O d „  Z R d „  Z U d „  Z X d „  Z a d „  Z h d „  Z o d „  Z r d	 „  Z z d
 „  Z	 ~ d „  Z
 ‰ d „  Z Œ d „  Z � d „  Z ’ d „  Z • d „  Z ˜ d „  Z › d d „ Z ž d „  Z ¡ d „  Z ¤ d „  Z § d „  Z ª d „  Z ­ e d „ Z ° d „  Z ³ d „  Z ¶ d „  Z » d „  Z ¾ d „  Z Â e d „ Z É d  „  Z Ð e d! „ Z  Ù d" „  Z! RS(#   Nc    s  0 1 t  i |  d ƒ 2 t |  _ 3 d |  _ 4 t |  _ 5 t |  _ 6 d |  _ 7 t |  _	 8 d |  _
 9 d |  _ : d |  _ ; h  |  _ < t |  _ = d |  _ > d |  _ @ t i ƒ  |  _ A |  i d d d d d d	 d
 d d d g
 ƒ I J t |  _ K t d a M t |  _ d  S(   Ni    i   s    s   checkFrequencys   autoDownloads	   unique_ids   check_at_startups   check_when_selecteds   expandeds   mailbox_configss   display_names   new_mail_commands   show(   s   PMailObjects   __init__s   selfs   Nones   _checkFrequencys   _autoDownloads   _uis
   _mailboxess   _inbatchs   _batch_mailboxs   _check_at_startups   _check_when_selecteds	   _expandeds   _mailbox_configss   _display_names   _new_mail_commands   _shows	   threadings   RLocks   _working_locks   add_config_paramss   next_unique_ids
   _unique_ids   _check_timer(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys   __init__0 s(   .c    s   O P |  i i ƒ  d  S(   N(   s   selfs   _working_locks   acquire(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys   lockO s   c    s   R S |  i i ƒ  d  S(   N(   s   selfs   _working_locks   release(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys   unlockR s   c    s   U V |  i i d ƒ Sd  S(   Ni    (   s   selfs   _working_locks   acquire(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys   can_lockU s   c    s�   X Y | d j o |  i p
 | d j oa [ |  i o \ |  i i |  i ƒ n ] |  i o) ^ |  i i |  _ |  i d ƒ |  _ n n d  S(   Ns   checkFrequencys   uii<   (   s   keys   selfs   _uis   _check_timers   remove_check_timers   _checkFrequencys   add_check_timer(   s   selfs   keys   val(    (    s&   /mit/python/share/pmail/mail/Source.pys   hook_setitemX s   'c    sr   a b | oa c xW | i ƒ  d c rD \ } } d | i ƒ  } e | |  i | i ƒ  <f |  i	 | i
 ƒ q Wn d  S(   Ni    (   s   boxess   itemss   paths   boxs
   get_configs   confs   selfs   _mailbox_configss   config_names   _Source__add_mailboxconfigss
   _mailboxes(   s   selfs   boxess   confs   paths   box(    (    s&   /mit/python/share/pmail/mail/Source.pys   __add_mailboxconfigsa s   
 c    sG   h i |  i o# k h  |  _ l |  i |  i ƒ n m t i |  ƒ Sd  S(   N(   s   selfs
   _mailboxess   _mailbox_configss   _Source__add_mailboxconfigss   PMailObjects
   get_config(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys
   get_configh s   c    s
   o p d  S(   N(    (   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys   fixupo s   c    sh   r s |  i ƒ  oJ t x@ |  i ƒ  d t r- } u | i | ƒ } v | o w | Sn q% Wn x t Sd  S(   Ni    (   s   selfs	   mailboxess   boxs   mailbox_with_paths   paths   bs   None(   s   selfs   paths   bs   box(    (    s&   /mit/python/share/pmail/mail/Source.pys   mailbox_with_pathr s    	
c    s'   z { t  i i t i d |  i ƒ Sd  S(   Ns   msg.cache.%d(   s   oss   paths   joins   configs
   config_dirs   selfs
   _unique_id(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys	   cache_dirz s   c    s›   ~  |  i ƒ  € |  i om � |  i ƒ  } ‚ t i i | ƒ o ƒ t i | ƒ n … x) |  i	 ƒ  d … r } † | i | ƒ qi Wn ‡ |  i ƒ  d  S(   Ni    (   s   selfs   locks
   _mailboxess	   cache_dirs
   source_dirs   oss   paths   existss   mkdirs	   mailboxess   boxs   save_message_caches   unlock(   s   selfs
   source_dirs   box(    (    s&   /mit/python/share/pmail/mail/Source.pys   save_message_cache~ s    	c    s   ‰ Š t  Sd  S(   N(   s   false(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys   can_add_subfolder‰ s   c    s   Œ � t  Sd  S(   N(   s   false(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys
   can_deleteŒ s   c    s   � � t  Sd  S(   N(   s   false(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys
   can_rename� s   c    s   ’ “ t  Sd  S(   N(   s   false(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys   can_expunge’ s   c    s   • – |  i Sd  S(   N(   s   selfs   _name(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys   name• s   c    s
   ˜ ™ d  S(   N(    (   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys	   mailboxes˜ s   s    c    s
   › œ d  S(   N(    (   s   selfs   mailboxs   uids   part_number(    (    s&   /mit/python/share/pmail/mail/Source.pys	   _get_body› s   c    s
   ž Ÿ d  S(   N(    (   s   selfs   message(    (    s&   /mit/python/share/pmail/mail/Source.pys   delete_messagež s   c    s
   ¡ ¢ d  S(   N(    (   s   selfs   mailbox(    (    s&   /mit/python/share/pmail/mail/Source.pys   unseen_count¡ s   c    s
   ¤ ¥ d  S(   N(    (   s   selfs   mailbox(    (    s&   /mit/python/share/pmail/mail/Source.pys   message_count¤ s   c    s
   § ¨ d  S(   N(    (   s   selfs   mailbox(    (    s&   /mit/python/share/pmail/mail/Source.pys   _get_messages§ s   c    s
   ª « d  S(   N(    (   s   selfs   mailbox(    (    s&   /mit/python/share/pmail/mail/Source.pys   delete_subfolderª s   c    s
   ­ ® d  S(   N(    (   s   selfs   names   mailbox(    (    s&   /mit/python/share/pmail/mail/Source.pys   create_subfolder­ s   c    s
   ° ± d  S(   N(    (   s   selfs   mailboxs   newname(    (    s&   /mit/python/share/pmail/mail/Source.pys   rename° s   c    s
   ³ ´ d  S(   N(    (   s   selfs   sources   mailboxs   id(    (    s&   /mit/python/share/pmail/mail/Source.pys   message_creator³ s   c    s&   ¶ · t  | _ ¸ t  | _ ¹ d Sd  S(   Ni   (   s   Nones   mailboxs   _message_counts   _unseen_count(   s   selfs   mailboxs   message(    (    s&   /mit/python/share/pmail/mail/Source.pys   append_message¶ s   c    s
   » ¼ d  S(   N(    (   s   selfs   mailboxs   criteria(    (    s&   /mit/python/share/pmail/mail/Source.pys   search» s   c    s   ¾ ¿ t  Sd  S(   N(   s   None(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys   get_search_posibilities¾ s   c    s9   Â Ä |  i ƒ  Å d |  _ Æ | |  _ Ç |  i ƒ  d  S(   Ni   (   s   selfs   locks   _inbatchs   mailboxs   _batch_mailboxs   unlock(   s   selfs   mailbox(    (    s&   /mit/python/share/pmail/mail/Source.pys   start_batchÂ s   c    s9   É Ê |  i ƒ  Ë d |  _ Ì t |  _ Í |  i ƒ  d  S(   Ni    (   s   selfs   locks   _inbatchs   Nones   _batch_mailboxs   unlock(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys	   end_batchÉ s   c    s2   Ð Ñ | o Ò |  i } n × t i | ƒ d  S(   N(   s   commands   selfs   _new_mail_commands   oss   system(   s   selfs   command(    (    s&   /mit/python/share/pmail/mail/Source.pys   _run_new_mail_commandÐ s   c    s²   Ù Ú |  i ƒ  Û z€ Ü d } Ý x8 |  i ƒ  d Ý r% } Þ | i ƒ  } ß | p | } q1 Wá | o |  i o t |  i ƒ o â |  i	 ƒ  n Wd  ä å |  i
 ƒ  Xç | Sd  S(   Ni    (   s   selfs   locks   ress	   mailboxess   boxs
   check_mails   bress   _new_mail_commands   lens   _run_new_mail_commands   unlock(   s   selfs   bress   ress   box(    (    s&   /mit/python/share/pmail/mail/Source.pys
   check_mailÙ s   	 	$("   s   __init__s   locks   unlocks   can_locks   hook_setitems   _Source__add_mailboxconfigss
   get_configs   fixups   mailbox_with_paths	   cache_dirs   save_message_caches   can_add_subfolders
   can_deletes
   can_renames   can_expunges   names	   mailboxess	   _get_bodys   delete_messages   unseen_counts   message_counts   _get_messagess   delete_subfolders   Nones   create_subfolders   renames   message_creators   append_messages   searchs   get_search_posibilitiess   start_batchs	   end_batchs   _run_new_mail_commands
   check_mail(    (    (    s&   /mit/python/share/pmail/mail/Source.pys   Source/ sB   		s   RemoteSourcec      s   é ê d „  Z  ø d „  Z RS(   Nc    sr   ê ë t  i |  ƒ ì | |  _ í | |  _ î | |  _ ï | |  _
 ð d |  _ ò |  i d d d d d g ƒ d  S(   Ni   s
   serverNames   ports   userNames   passwords   rememberPassword(   s   Sources   __init__s   selfs
   serverNames   _serverNames   ports   _ports   userNames	   _userNames   passwords	   _passwords   _rememberPasswords   add_config_params(   s   selfs
   serverNames   userNames   passwords   port(    (    s&   /mit/python/share/pmail/mail/Source.pys   __init__ê s   c    sT   ø ù |  i o9 ú |  i o d |  i ƒ  |  i |  i f p |  i Sn þ d Sd  S(   Ns	   {%s}%s@%ss    (   s   selfs   _serverNames   _display_names	   type_names	   _userName(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys   nameø s   9(   s   __init__s   name(    (    (    s&   /mit/python/share/pmail/mail/Source.pys   RemoteSourceé s   s   LocalStorageSourcec      s    d „  Z  RS(   Nc    s   t  i |  ƒ d  S(   N(   s   Sources   __init__s   self(   s   self(    (    s&   /mit/python/share/pmail/mail/Source.pys   __init__s   (   s   __init__(    (    (    s&   /mit/python/share/pmail/mail/Source.pys   LocalStorageSource s   (   s   strings   rfc822s	   mimetoolss   times   poplibs   oss	   threadings   StringIOs   Bases   Mailboxs   Messages   configs   MARKs   TRASHs   REMOVEs   next_unique_ids   update_next_unique_ids   PMailObjects   Sources   RemoteSources   LocalStorageSource(   s   RemoteSources   configs   TRASHs   Messages   poplibs   times   oss   LocalStorageSources	   threadings   Mailboxs   REMOVEs   MARKs   StringIOs   Sources   update_next_unique_ids   rfc822s   strings	   mimetools(    (    s&   /mit/python/share/pmail/mail/Source.pys   ? s&   
				º