![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /lib/python2.7/site-packages/offlineimap/folder/ |
� ��Vc @ sx d d l Z d d l m Z d d l m Z m Z d d l m Z d d l Z d d l m Z d e f d � � YZ d S( i����N( t exc_info( t imaputilt OfflineImapError( t imaplibutili ( t IMAPFoldert GmailFolderc B s� e Z d Z d � Z d � Z d � Z d � Z d d d � Z d � Z d � Z d � Z d � Z d � Z d d � Z d � Z RS( s� Folder implementation to support features of the Gmail IMAP server. Removing a message from a folder will only remove the "label" from the message and keep it in the "All mails" folder. To really delete a message it needs to be copied to the Trash folder. However, this is dangerous as our folder moves are implemented as a 1) delete in one folder and 2) append to the other. If 2 comes before 1, this will effectively delete the message from all folders. So we cannot do that until we have a smarter folder move mechanism. For more information on the Gmail IMAP server: http://mail.google.com/support/bin/answer.py?answer=77657&topic=12815 https://developers.google.com/google-apps/gmail/imap_extensions c C s t t | � j | | | � | j | � | _ | j | j � g | _ | j j j d d � | _ | j j j d t � | _ | j r� | j j d d � | j j d | j f � n | j j j d d � } t g t j d | � D] } t | � r� | ^ q� � | _ d S( Nt labelsheaders X-Keywordst synclabelsi s X-GM-LABELSs syncing labelst ignorelabelst s \s*,\s*( t superR t __init__t gettrashfoldert trash_foldert getspamfoldert real_delete_folderst repositoryt accountt getconfR t getconfbooleant FalseR t imap_queryt insertt syncmessagesto_passest appendt syncmessagesto_labelst sett ret splitt lenR ( t selft imapservert nameR R t l( ( s<