Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DBMail: users

EXAMINE command is not read-only (again?)

 

 

DBMail users RSS feed   Index | Next | Previous | View Threaded


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
Attachments: ExamineFail.py (3.06 KB)


paul at nfg

Aug 26, 2009, 7:14 AM

Post #2 of 3 (712 views)
Permalink
Re: EXAMINE command is not read-only (again?) [In reply to]

Shane Kerr wrote:
> 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

Bug confirmed for 2.2.11
But it's fixed in 2.3.6


--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


shane at time-travellers

Aug 26, 2009, 8:13 AM

Post #3 of 3 (712 views)
Permalink
Re: EXAMINE command is not read-only (again?) [In reply to]

Paul,

On Wed, 2009-08-26 at 16:14 +0200, Paul J Stevens wrote:
> Shane Kerr wrote:
> > 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
>
> Bug confirmed for 2.2.11
> But it's fixed in 2.3.6

Can you have a look at the attached patch against 2.2.11? I have no idea
if it is correct or not (I didn't even try to compile it), but it seems
like it might be more-or-less the right thing to do.

--
Shane
Attachments: dbmail-imapsession.c.patch (0.94 KB)

DBMail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.