Show
Ignore:
Timestamp:
03/03/11 13:48:10 (15 months ago)
Author:
Menno Smits <menno@…>
Branch:
default
Message:

document SEQ element and some cosmetic changes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imapclient/imapclient.py

    r244 r245  
    115115 
    116116    def namespace(self): 
    117         """Return the namespace for the account as a (personal, other, shared) tuple. 
     117        """Return the namespace for the account as a (personal, other, 
     118        shared) tuple. 
    118119 
    119120        Each element may be None if no namespace of that type exists, 
     
    121122 
    122123        For convenience the tuple elements may be accessed 
    123         positionally or attributes named "personal", "other" and 
    124         "shared". 
     124        positionally or using attributes named *personal*, *other* and 
     125        *shared*. 
    125126 
    126127        See RFC 2342 for more details. 
     
    319320 
    320321    def folder_exists(self, folder): 
    321         """Return True if *folder* exists on the server. 
     322        """Return ``True`` if *folder* exists on the server. 
    322323        """ 
    323324        typ, data = self._imap.list('', self._encode_folder_name(folder)) 
     
    426427        """Remove one or more *flags* from *messages*. 
    427428 
    428         *flags* should be a sequence of strings. Returns the flags set 
    429          for each modified message (see *get_flags*). 
     429        *flags* should be a sequence of strings. 
     430 
     431        Returns the flags set for each modified message (see 
     432        *get_flags*). 
    430433        """ 
    431434        return self._store('-FLAGS', messages, flags) 
     
    435438        """Set the *flags* for *messages*. 
    436439 
    437         *flags* should be a sequence of strings. Returns the flags set 
    438          for each modified message (see *get_flags*). 
     440        *flags* should be a sequence of strings. 
     441 
     442        Returns the flags set for each modified message (see 
     443        *get_flags*). 
    439444        """ 
    440445        return self._store('FLAGS', messages, flags) 
     
    466471        corresponding to each item in *data*. 
    467472 
    468         XXX document SEQ 
     473        In addition to an element for each *data* item, the dict 
     474        returned for each message also contains a *SEQ* key containing 
     475        the sequence number for the message. This allows for mapping 
     476        between the UID and sequence number (when the *use_uid* 
     477        property is ``True``). 
    469478 
    470479        Example::