A BUGNOTE has been added to this bug.
======================================================================
http://dbmail.org/mantis/bug_view_advanced_page.php?bug_id=0000097
======================================================================
Reported By:                alessandro
Assigned To:                
======================================================================
Project:                    DBMail
Bug ID:                     97
Category:                   IMAP daemon
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
======================================================================
Date Submitted:             04-Oct-04 15:46 CEST
Last Modified:              05-Oct-04 10:28 CEST
======================================================================
Summary:                    RECENT flag always set
Description: 
When connecting via IMAP, all the messages have the \Recent flag set. This
flag should be set only for newly arrived messages, and should be unset by
the server at the end of the session.
See "Additional Information".
======================================================================

----------------------------------------------------------------------
 ilja - 05-Oct-04 09:51 CEST 
----------------------------------------------------------------------
I'll have a look at this. I guess this is some error that's way deep in the
code..

Paul, can you take care of this in your new (2.1) code? Or have you
already done so?

----------------------------------------------------------------------
 paul - 05-Oct-04 10:28 CEST 
----------------------------------------------------------------------
I did a quick scan through the code when this first came in. I can't find
any places where the recent_flag is actually set to zero. A complete
ommission it seems.

The procedure is actually quite simple:

when user opens mailbox and user has rw access to mailbox:
  update messages set recent_flag=0 where mailbox_idnr matches and
recent_flag=1

So all we need is a db_ call that sets the recent_flag to zero for all
messages in a mailbox, and call this from the correct location in
_ic_select. _ic_select is the only command that is involved, afaik.

Looks easy enough. I'll take care of this.

Bug History
Date Modified  Username       Field                    Change              
======================================================================
04-Oct-04 15:46alessandro     New Bug                                      
05-Oct-04 09:51ilja           Bugnote Added: 0000281                       
05-Oct-04 09:52ilja           Status                   new => acknowledged 
05-Oct-04 10:28paul           Bugnote Added: 0000282                       
======================================================================

Reply via email to