
shane at time-travellers
Aug 26, 2009, 5:05 AM
Post #1 of 3
(770 views)
Permalink
|
|
EXAMINE command is not read-only (again?)
|
|
All, [ Apologies if this was fixed or otherwise addressed already. ] I'm using dbmail 2.2.10, and it looks like the EXAMINE command is marking messages as read when I FETCH them. This looks like a bug that was fixed ages ago: http://osdir.com/ml/mail.imap.dbmail.devel/2004-10/msg00124.html However I have tested the behavior and it is still working this way. If you run the attached Python script, you will see that the status of the e-mail is changed, even though the IMAP library is using "EXAMINE" to connect to the mailbox. To do this, run: $ python ExamineFail.py imap-host imap-user Flags for added message: Flags for added message: \Seen As you can see, the first time the message has no flags, and the second time the message has the \Seen flag set. As I understand the RFC, this should not be allowed. It uses SSL. If you don't have this enabled then you can change the call from IMAP4_SSL to IMAP4. Note that you can use BODY.PEEK[] rather than RFC822 when getting the e-mails and then the flags are not updated. The problem is not all programs do this, but rather expect that read-only access is in fact read-only. -- Shane
|