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.
Am 29.12.2009 um 12:58 schrieb Julian Cowley:> 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.Hello Julian, by removing the "Seen" flag, you mark the message as read. New mails arrives with the "Seen" flag set - thus your command <<addflag "\\Seen">> is useless. Check out RFC 3501 for the meaning of the different flags. Tobi
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. Regards, -- Stephan Bosch stephan at rename-it.nl