As it turns out, because of how IMAP works, it's actually pretty good at
telling if a message is a draft, has been sent, etc. (It would be rather
non-functional if it couldn't.)

Because of the mailbox it's in, or are there attributes for that?

The latter, but sometimes the former. Did I mention IMAP is a really
complicated protocol? Because it is.

Actually, neither as far as I can see. IMAP doesn't have a flag for "This message was posted here by the person currently accessing this mailbox, immediately after being sent through an SMTP server by that same person". The six defined flags are:

\Seen
\Answered
\Flagged
\Deleted
\Draft
\Recent

AFAIK, only \Seen is stored per user - but actually that's probably a Cyrus-IMAP implementation detail.

Of course anything NOT flagged "Draft" is a sent message, but usually it was someone else who sent it. You *might* surmise that a message "From" the current user that's not a "Draft" was sent by that user, and even check the received headers to see whether it is a copy of the message "as sent", or "as delivered after processing by other servers, list software, etc".

If you want to know for sure which messages you sent, then you have to put them into a mailbox that all your clients recognise as the "sent" mailbox, or define a flag or annotation that all your clients recognise.


--
Ian Eiloart
IT Services, University of Sussex
01273-873148 x3148
For new support requests, see http://www.sussex.ac.uk/its/help/
_______________________________________________
[email protected] mailing list
List help: http://lists.ranchero.com/listinfo.cgi/email-init-ranchero.com

Reply via email to