HEX
Server: Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
System: Linux golden.server-sky-dns.com 3.10.0-1160.59.1.el7.x86_64 #1 SMP Mon Mar 7 01:49:29 EST 2022 x86_64
User: arkitgroups (1041)
PHP: 8.2.8
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/offlineimap/repository/LocalStatus.pyo
�
��Vc@sVddlZddlmZddlmZddlmZdefd��YZdS(i����N(tLocalStatusFolder(tLocalStatusSQLiteFolder(tBaseRepositorytLocalStatusRepositorycBsPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cCs�tj|||�i|_itd6tjj|j�d�d6|jd<itd6tjj|j�d�d6|jd<|j	|j
jdd��tjj|j
�s�tj|j
d�ni|_dS(	NtclasssLocalStatus-sqlitetroottsqlitetLocalStatustplaintstatus_backendi�(Rt__init__tbackendsRtostpathtjointgetaccountmetaRt
setup_backendtaccounttgetconftexistsRtmkdirt_folders(tselft	reposnameR((sF/usr/lib/python2.7/site-packages/offlineimap/repository/LocalStatus.pyR
s	&&cCsi||jj�krI||_|j|d|_|j|d|_ntd||jjf��dS(NRRs,Unknown status_backend '%s' for account '%s'(Rtkeyst_backendRtLocalStatusFolderClasst
SyntaxWarningRtname(Rtbackend((sF/usr/lib/python2.7/site-packages/offlineimap/repository/LocalStatus.pyR1s	cCs�x�|jj�D]�\}}|dt|�kr8qnt|j|j�}|j|�|d|j|�}|j�s|jj	d||j
|j|jf�|j�|j|_|j
�PqqWdS(NRsXMigrating LocalStatus cache from %s to %s "                     "status folder for %s:%s(RtitemsttypeRRRRtisnewfoldertuit_msgRtcachemessagelisttmessagelisttsaveall(Rtfoldertbktdictrepobktfolderbk((sF/usr/lib/python2.7/site-packages/offlineimap/repository/LocalStatus.pytimport_other_backend;s
	

cCsdS(Nt.((R((sF/usr/lib/python2.7/site-packages/offlineimap/repository/LocalStatus.pytgetsepPscCs:|jjrdS|j||�}|j�|j�dS(sCreate a LocalStatus Folder.N(RtdryrunRtsavet
forgetfolders(Rt
foldernameR&((sF/usr/lib/python2.7/site-packages/offlineimap/repository/LocalStatus.pyt
makefolderSs

cCsY||jkr|j|S|j||�}|j�rH|j|�n||j|<|S(s,Return the Folder() object for a foldername.(RRR R+(RR1R&((sF/usr/lib/python2.7/site-packages/offlineimap/repository/LocalStatus.pyt	getfolder`s
cCsdS(sReturns a list of all cached folders.

        Does nothing for this backend. We mangle the folder file names
        (see getfolderfilename) so we can not derive folder names from
        the file names that we have available. TODO: need to store a
        list of folder names somehow?N((R((sF/usr/lib/python2.7/site-packages/offlineimap/repository/LocalStatus.pyt
getfoldersoscCs
i|_dS(sTForgets the cached list of folders, if any.  Useful to run
        after a sync run.N(R(R((sF/usr/lib/python2.7/site-packages/offlineimap/repository/LocalStatus.pyR0ys(
t__name__t
__module__R
RR+R-R2R3R4R0(((sF/usr/lib/python2.7/site-packages/offlineimap/repository/LocalStatus.pyRs		
			
		
(Rtofflineimap.folder.LocalStatusRt$offlineimap.folder.LocalStatusSQLiteRtofflineimap.repository.BaseRR(((sF/usr/lib/python2.7/site-packages/offlineimap/repository/LocalStatus.pyt<module>s