On Tue, 24 Sep 2002 [EMAIL PROTECTED] wrote: > And if I append a message to an open IMAP stream than the same will > happen, the mail will recieve the "Status: O" flag or not?
If you append a message to a mailbox *while that mailbox is open*, then the entity that has that mailbox open will see the newly-appended message as \Recent and set "Status: O". An open IMAP stream on some other mailbox will not set "Status: O", even if you use it as the argument to mail_append(). An open IMAP stream on no mailbox (a "half-open" stream) will not set "Status: O", even if you use it as the argument to mail_append(). An open IMAP stream on that mailbox will set "Status: O", even if you do not use it as the argument to mail_append(). An open IMAP or POP3 stream on that mailbox by some other client will set "Status: O", as will an open local mailbox stream. > Because when > syncing I don't want to bother the user with re-entering the password. I > want to be able to ask him/her once and then to sync. Most clients cache authentication credentials to use in subsequent authentications, to avoid the "bother the user with re-entering the password" problem. > Um - I'm in my local INBOX and I send mail (through the normal MTA (=exim)) > locally to myself (tpo@localhost). I won't see the message since I don't press > cursor down at the bottom of the INBOX page. Next I quit pine and have a look > through an editor at my /var/spool/mail/tpo inbox. And I see that "Status: O" > is set there. That is because Pine saw the message! You quit Pine before the Pine user interface showed you the message. However, the act of quitting Pine causes Pine to do a final synchronization with the mailbox. That final syncronization caused Pine to see the message. If you append to a mailbox while something, somewhere, has the mailbox open, you can not expect that hurriedly quitting that "something" will prevent that "something" from seeing the message and setting "Status: O". You MUST assume that if something, somewhere, has the mailbox open, then that "something" WILL see the message and WILL set "Status: O". -- Mark -- http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate.
