[imp] Unseen and Unread
Michael M Slusarz
slusarz at bigworm.colorado.edu
Wed Nov 26 14:49:35 PST 2003
Quoting Chuck Hagenbuch <chuck at horde.org>:
| Quoting Michael M Slusarz <slusarz at bigworm.colorado.edu>:
|
| > It turns out that "Recent" checking is essentially worthless since the
| > Recent flag disappears the first time you access the mailbox anyway, so
| > subsequent views of the mailbox will show the message as non-recent,
| even
| > though it has never been read.
|
| Right, but you still need to check the flag to make sure you show the
| status
| correctly (as "new"). Otherwise the status of the message can show up as
| read,
| then new, on two subsequent page loads.
That's why we check:
if (($ob->Unseen == 'U') || ($ob->Recent == 'N')) [imp/lib/Headers.php:163]
when we determine if a message is "Unread" or not. Stupid IMAP flags.
michael
______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder
More information about the imp
mailing list