[imapfilter-devel] imapfilter and expunging

Gautam Gopalakrishnan gautam.gopalakrishnan at its.monash.edu.au
Wed May 19 02:26:52 EEST 2004


On Wed, May 19, 2004 at 01:26:06AM +0300, Lefteris Chatzibarbas wrote:
> On Tue, May 18, 2004 at 02:49:57PM -0700, John Webster wrote:
> > Unfortunately, no.  According to the manpage options.expunge
> > controls whether the message is expunged immediately or later
> > upon closing.  (And I tried it. :)
> 
> Hmm... basically each time an "imapfilter operation" is performed (such
> as match, flag, copy, etc.) the mailbox is selected in the beginning
> (SELECT) and closed in the end (CLOSE) of the operation.  And naturally
> a CLOSE command removes any messages that are marked as 'deleted'.
> 
> I think this changed two release candidates ago (the SELECT-CLOSE
> sequence).  I will add an option to control whether a CLOSE command
> should be issued in the end of each operation that will solve this
> problem.
> 

If options.expunge is false, maybe you need not mark the message as
deleted? The code this way would be simpler, I think.

Gautam




More information about the Imapfilter-devel mailing list