[Imap-protocol] [noob] select & unseen?

Petite Abeille petite_abeille at mac.com
Sun Nov 6 12:15:34 PST 2011


Given a mailbox containing only \Seen messages, what kind of UNSEEN response is SELECT supposed to return?

Looking at, say, dovecot implementation, it doesn't return any UNSEEN data if all messages are \Seen:

if (status.first_unseen_seq != 0) {
t_strdup_printf("* OK [UNSEEN %u] First unseen.",

On the other hand, the spec for SELECT seems to mandate returning all the data: "the server MUST send the following untagged data".

What gives?

Thanks in advance.



More information about the Imap-protocol mailing list