Changeset 291:bd9013d79121
- Timestamp:
- 11/01/12 23:09:49 (4 months ago)
- Author:
- Menno Smits <menno@…>
- Branch:
- default
- Message:
-
clarified documentation relating to message identifiers
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r275
|
r291
|
|
| 71 | 71 | Message Identifiers |
| 72 | 72 | ~~~~~~~~~~~~~~~~~~~ |
| 73 | | There are two ways to refer to messages using the IMAP protocol. |
| | 73 | There are two ways to refer to messages using the IMAP protocol. |
| 74 | 74 | |
| 75 | 75 | One way is by message sequence number where the messages in a mailbox |
| … |
… |
|
| 79 | 79 | |
| 80 | 80 | A more convenient approach is Unique Identifiers (UIDs). Unique |
| 81 | | Identifiers are integer assigned to each message by the IMAP server |
| | 81 | Identifiers are integers assigned to each message by the IMAP server |
| 82 | 82 | that will persist across sessions. They do not change when folders are |
| 83 | 83 | expunged. |
| … |
… |
|
| 89 | 89 | |
| 90 | 90 | Any method that accepts message ids takes either a sequence containing |
| 91 | | message ids (eg. ``[1,2,3]``) or a single message id integer. Whether |
| 92 | | these are interpreted as message sequence numbers or UIDs depends on |
| 93 | | the *use_uid* argument used when the IMAPClient instance is created |
| 94 | | and the *use_uid* attribute. The *use_uid* attribute can be used to |
| 95 | | change the message id type between calls to the server. |
| | 91 | message ids (eg. ``[1,2,3]``), or a single message id integer, or a |
| | 92 | string representing sets and ranges of messages as supported by the |
| | 93 | IMAP protocol (e.g. ``'50-65'``, ``'2:*'`` or |
| | 94 | ``'2,4:7,9,12:*'``). Whether these are interpreted as message sequence |
| | 95 | numbers or UIDs depends on the *use_uid* argument passed when an |
| | 96 | IMAPClient instance is created and the *use_uid* attribute. The |
| | 97 | *use_uid* attribute can be used to change the message id type between |
| | 98 | calls to the server. |
| 96 | 99 | |
| 97 | 100 | Message Flags |