On Wed, 30 Dec 2009, Stephan Bosch wrote:
Julian Cowley wrote:
 Hello,

 Here is a small script that I've been running to test a problem I've been
 seeing.  Shouldn't this result in the mail being delivered to the inbox as
 a new message (ie. without the \Seen flag)?

     require "imap4flags";

     addflag "\\Seen";
     removeflag "\\Seen";

 Every message gets delivered to the inbox as though it's already been
 read.

 Using Dovecot 1.2.9 and Pigeonhole Sieve 0.1.14.

You have found a bug. Fixed (including cosmetic changes):

http://hg.rename-it.nl/dovecot-1.2-sieve/rev/9e18561e357f

I've added various tests to the test suite to prevent this from reoccurring in the future. Apparently, the situation where only one flag was set and subsequently removed was not tested.

Built 0.1.14 with the 9e18561e357f changeset. Tested and it works. Thanks for the quick fix!

Reply via email to