f4der
f4der

Reputation: 731

Is the IMAP UID always numeric?

Is the IMAP UID guaranteed numeric? I've read the part in RFC3501 and it says:

Unique identifiers are assigned in a strictly ascending fashion in the mailbox; as each message is added to the mailbox it is assigned a higher UID than the message(s) which were added previously.

But could it be that the UID has a pre- or postfix? For example, could it be that the UID is mail_14 and the next msg mail_15?

Answer: IMAP UID is a unique nonzero integer.

Upvotes: 3

Views: 560

Answers (1)

arnt
arnt

Reputation: 9685

You might want to read the part in RFC3501 that defines the UID:

uniqueid        = nz-number
                ; Strictly ascending

Page 91.

Upvotes: 6

Related Questions