Changeset 245:60cb7b1b40e4
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r244
|
r245
|
|
| 115 | 115 | |
| 116 | 116 | 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. |
| 118 | 119 | |
| 119 | 120 | Each element may be None if no namespace of that type exists, |
| … |
… |
|
| 121 | 122 | |
| 122 | 123 | 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*. |
| 125 | 126 | |
| 126 | 127 | See RFC 2342 for more details. |
| … |
… |
|
| 319 | 320 | |
| 320 | 321 | def folder_exists(self, folder): |
| 321 | | """Return True if *folder* exists on the server. |
| | 322 | """Return ``True`` if *folder* exists on the server. |
| 322 | 323 | """ |
| 323 | 324 | typ, data = self._imap.list('', self._encode_folder_name(folder)) |
| … |
… |
|
| 426 | 427 | """Remove one or more *flags* from *messages*. |
| 427 | 428 | |
| 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*). |
| 430 | 433 | """ |
| 431 | 434 | return self._store('-FLAGS', messages, flags) |
| … |
… |
|
| 435 | 438 | """Set the *flags* for *messages*. |
| 436 | 439 | |
| 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*). |
| 439 | 444 | """ |
| 440 | 445 | return self._store('FLAGS', messages, flags) |
| … |
… |
|
| 466 | 471 | corresponding to each item in *data*. |
| 467 | 472 | |
| 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``). |
| 469 | 478 | |
| 470 | 479 | Example:: |