-ν
 ζ>c       sΘ   d  k  l Z l Z l Z l Z d k l Z d k l Z l	 Z	 d k
 l Z d k Z d   Z d   Z d   Z g  a d e i f d	     YZ d
 f  d     YZ d e e f d     YZ d   Z d S(   (   s
   repositorys
   threadutils   mbnamess   CustomConfig(   s   UIBase(   s   InstanceLimitedThreads   ExitNotifyThread(   s   EventNc    s   |  i d  Sd  S(   Ns   Account(   s   customconfigs   getsectionlist(   s   customconfig(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys   getaccountlist s    c    s8   g  i  } t |   D] } | t |  |   q ~ Sd  S(   N(   s   appends   _[1]s   getaccountlists   customconfigs   accountnames   Account(   s   customconfigs   _[1]s   accountname(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys   AccountListGenerator s    c    s5   h  } x$ t |   D] } | | | i   <q W| Sd  S(   N(   s   retvals   AccountListGenerators   customconfigs   items   getname(   s   customconfigs   items   retval(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys   AccountHashGenerator s
     s   Accountc      s>   t  Z d   Z d   Z d   Z d   Z d   Z d   Z RS(   Nc    su   | |  _  | |  _ | i   |  _ | i   |  _ t i   |  _	 |  i
 d d  |  _ |  i d j o t |  _ n d  S(   Ns   autorefreshf0.0(   s   configs   selfs   names   getmetadatadirs   metadatadirs   getlocalevals	   localevals   UIBases   getglobaluis   uis   getconffloats   refreshperiods   None(   s   selfs   configs   name(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys   __init__( s    		c    s   |  i Sd  S(   N(   s   selfs	   localeval(   s   self(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys   getlocaleval2 s    c    s   |  i Sd  S(   N(   s   selfs   config(   s   self(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys	   getconfig5 s    c    s   |  i Sd  S(   N(   s   selfs   name(   s   self(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys   getname8 s    c    s   d |  i   Sd  S(   Ns   Account (   s   selfs   getname(   s   self(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys
   getsection; s    c    s   |  i o d Sn g  } t |  d  o | i |  i  n t |  d  o | i |  i  n x | D] } | i   qh Wt	 |  i d  } |  i
 i |  } | d j o) x | D] } | i d d  q΅ W| Sn& x | D] } | i d d  qή W| Sd	 S(
   sχ   Sleep handler.  Returns same value as UIBase.sleep:
        0 if timeout expired, 1 if there was a request to cancel the timer,
        and 2 if there is a request to abort the program.

        Also, returns 100 if configured to not sleep at all.id   s
   localreposs   remotereposi<   i   s   abrupti   i    N(   s   selfs   refreshperiods   kaobjss   hasattrs   appends
   localreposs   remotereposs   items   startkeepalives   ints   uis   sleeps   sleepresults   stopkeepalive(   s   selfs   kaobjss   items   sleepresults   refreshperiod(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys   sleeper> s,        (   s   __name__s
   __module__s   __init__s   getlocalevals	   getconfigs   getnames
   getsections   sleeper(    (    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys   Account' s   	
				s   AccountSynchronizationMixinc      s#   t  Z d   Z d   Z d   Z RS(   Nc    s;  |  i i |  i  |  i i |  i  |  i   } t i i	 |  o t i
 | d  n t i i |  i d  |  d  |  _ t i i |  i d  |  d  |  _ t i i |  i d  |   |  _ |  i o% |  i   |  i i |  i  d  Sn d } x( | o  |  i   |  i   d j } qό W|  i i |  i  d  S(   Niΐ  s   remoterepositorys   remotes   localrepositorys   locali   i   (   s   selfs   uis   registerthreads   names   accts   getaccountmetas   accountmetadatas   oss   paths   existss   mkdirs
   repositorys   Bases   LoadRepositorys   getconfs   remotereposs
   localreposs   LocalStatuss   LocalStatusRepositorys   statusreposs   refreshperiods   syncs   acctdones   loopings   sleeper(   s   selfs   accountmetadatas   looping(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys
   syncrunner` s$    $$!
 
c    s!   t  i i |  i d |  i  Sd  S(   Ns   Account-(   s   oss   paths   joins   selfs   metadatadirs   name(   s   self(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys   getaccountmetay s    c    s  zώ |  i } |  i } |  i } |  i i | |  | i |  g  } x | i   D]} } t
 d d |  i i   d t d d |  i | i   f d |  i | | | | f  } | i d  | i   | i |  qQ Wt i |  t i   | i   | i   Wd  Xd  S(   Ns   instancenames   FOLDER_s   targets   names   Folder sync %s[%s]s   argsi   (   s   selfs   remotereposs
   localreposs   statusreposs   uis   syncfolderss   syncfolderstos   folderthreadss
   getfolderss   remotefolders   InstanceLimitedThreads   getnames
   syncfolders   names   getvisiblenames   threads	   setDaemons   starts   appends
   threadutils   threadsresets   mbnamess   writes   holdordropconnections(   s   selfs   remotereposs   threads   folderthreadss   remotefolders   statusreposs
   localrepos(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys   sync| s,    			 


 (   s   __name__s
   __module__s
   syncrunners   getaccountmetas   sync(    (    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys   AccountSynchronizationMixin_ s   		s   SyncableAccountc      s   t  Z RS(   N(   s   __name__s
   __module__(    (    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys   SyncableAccount s   c    s‘  t  i   } | i |   | i | i   i	 | i   | i     } t i |  | i    | i | | | |  | i | |  | i   | i | | t | i   i     | i | i   i	 | i   | i     } | i   t j o | i   n | i   t | i    p t | i    on | i   o' | i | | i   | i    d  Sn | i   o' | i | | i   | i    d  Sn n | i   | i   | i | |  | i   | i | | t | i   i     | i   oF | i  | | | g  | i! | | | |  | i" | | | g  n | i! | | | |  | i" | | | g  | i! | | | |  | i" |  | i#   d  S(   N($   s   UIBases   getglobaluis   uis   registerthreads   accountnames
   localreposs	   getfolders   remotefolders   getvisiblenames   replaces   remotereposs   getseps   localfolders   mbnamess   adds   syncingfolders   loadmessagelists   cachemessagelists   messagelistloadeds   lens   getmessagelists   keyss   statusreposs   statusfolders   getuidvaliditys   Nones   deletemessagelists   isuidvalidityoks   validityproblems   getsaveduidvaliditys   saveuidvaliditys   isnewfolders   syncmessagesto_deletes   syncingmessagess   syncmessagestos   save(   s   accountnames   remotereposs   remotefolders
   localreposs   statusreposs   statusfolders   uis   localfolder(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys
   syncfolder sL     -
%
&


(   s   offlineimaps
   repositorys
   threadutils   mbnamess   CustomConfigs   offlineimap.uis   UIBases   offlineimap.threadutils   InstanceLimitedThreads   ExitNotifyThreads	   threadings   Events   oss   getaccountlists   AccountListGenerators   AccountHashGenerators	   mailboxess   ConfigHelperMixins   Accounts   AccountSynchronizationMixins   SyncableAccounts
   syncfolder(   s   AccountHashGenerators   Accounts
   repositorys   SyncableAccounts   CustomConfigs   AccountListGenerators   UIBases   AccountSynchronizationMixins   getaccountlists   InstanceLimitedThreads   mbnamess
   syncfolders   oss   Events
   threadutils   ExitNotifyThread(    (    s<   /usr/pkg/lib/python2p2/site-packages/offlineimap/accounts.pys   ? s   				8: