File: //lib/python2.7/site-packages/offlineimap/repository/Base.pyo
�
��Vc @ sx d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m
Z
d e j e f d � � YZ
d S( i����N( t exc_info( t CustomConfig( t getglobalui( t OfflineImapErrort BaseRepositoryc B s e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e
d � � Z d � Z d
� Z
d � Z d � Z e
d
� � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s� t � | _ | | _ | j � | _ | | _ | j � | _ | j j � | _ | j
d t � | _ t
j j | j j � d | j � | _ t
j j | j � s� t
j | j d � n t
j j | j d � | _ t
j j | j � s� t
j | j d � n t
j j | j d � | _ t
j j | j � sBt
j | j d � n d � | _ d � | _ g | _ d | _ d | _ | j j | j � d � r�| j j | j d � i t d 6� | _ n | j j | j � d
� r| j j | j d
� i t d 6� | _ n | j j | j � d � rG| j j | j d � i t d 6� | _ n | j j | j � d � r�| j j | j d � i t d 6� | _ n d S(
Nt readonlys Repository-i� t
UIDMappingt FolderValidityc S s | S( N( ( t
foldername( ( s? /usr/lib/python2.7/site-packages/offlineimap/repository/Base.pyt <lambda>/ s c S s d S( Ni ( ( R ( ( s? /usr/lib/python2.7/site-packages/offlineimap/repository/Base.pyR 0 s t nametranst ret folderfiltert folderincludest
foldersort( R t uit accountt getconfigt configt namet getlocalevalt localevalt getnamet _accountnamet getconfbooleant Falset _readonlyt ost patht joint getmetadatadirt uiddirt existst mkdirt mapdirR
R R
t NoneR t newmail_hookt
has_optiont
getsectiont evalt getconfR ( t selft reposnameR ( ( s? /usr/lib/python2.7/site-packages/offlineimap/repository/Base.pyt __init__ sB ( " " " c C s d S( s� Sets folders' atime back to their values after a sync
Controlled by the 'restoreatime' config parameter (default
False), applies only to local Maildir mailboxes and does nothing
on all other repository types.N( ( R) ( ( s? /usr/lib/python2.7/site-packages/offlineimap/repository/Base.pyt
restore_atimeA s c C s d S( sv Establish a connection to the remote, if necessary. This exists
so that IMAP connections can all be established up front, gathering
passwords as needed. It was added in order to support the
error recovery -- we need to connect first outside of the error
trap in order to validate the password, and that's the point of
this function.N( ( R) ( ( s? /usr/lib/python2.7/site-packages/offlineimap/repository/Base.pyt connectI s c C s d S( N( ( R) ( ( s? /usr/lib/python2.7/site-packages/offlineimap/repository/Base.pyt holdordropconnectionsR s c C s d S( N( ( R) ( ( s? /usr/lib/python2.7/site-packages/offlineimap/repository/Base.pyt dropconnectionsU s c C s | j S( N( R ( R) ( ( s? /usr/lib/python2.7/site-packages/offlineimap/repository/Base.pyt
getaccountX s c C s | j S( N( R ( R) ( ( s? /usr/lib/python2.7/site-packages/offlineimap/repository/Base.pyR [ s c C s | j S( N( R ( R) ( ( s? /usr/lib/python2.7/site-packages/offlineimap/repository/Base.pyt __str__^ s c C s | j S( s Account name as string( R ( R) ( ( s? /usr/lib/python2.7/site-packages/offlineimap/repository/Base.pyt accountnamea s c C s | j S( N( R ( R) ( ( s? /usr/lib/python2.7/site-packages/offlineimap/repository/Base.pyt getuiddirf s c C s | j S( N( R"