Discussion:
Folders which automatically mark all messages as read/seen?
Ralph Seichter
2008-10-23 17:03:28 UTC
Permalink
Hi folks,

is it possible to add a "this folder never contains any unread messages"
attribute to a given list of folders? For old Lotus Notes users: I am
thinking of "don't maintain unread marks" not on a database level but on
a folder level.

I couldn't find this mentioned in the Cyrus IMAP Wiki/FAQ, so I kindly
ask for your ideas.

-R
Ralph Seichter
2008-10-23 19:48:44 UTC
Permalink
Sieve scripts can mark messages as read, though I'm not an expert on
sieve.
Thanks for your suggestion, Jeff. I tried the following:

require "fileinto";
require "imapflags";

if address :contains ["To", "Cc"] "***@domain.tld"
{
addflag "\seen";
fileinto "INBOX.foo";
}

I use Cyrus IMAP Daemon 2.3.12_p2 on Gentoo Linux, and I installed the
Sieve script using the 'sieveshell' utility. The 'fileinto' is executed,
but 'addflag' does not seem to have any effect. I tried both SquirrelMail
and Mozilla Thunderbird as clients, but the messages in folder INBOX.foo
appear as unread/unseen with both, just as in every other folder.

-R
Andreas Winkelmann
2008-10-23 20:25:08 UTC
Permalink
Post by Ralph Seichter
Sieve scripts can mark messages as read, though I'm not an expert on
sieve.
require "fileinto";
require "imapflags";
{
addflag "\seen";
fileinto "INBOX.foo";
}
I use Cyrus IMAP Daemon 2.3.12_p2 on Gentoo Linux, and I installed the
Sieve script using the 'sieveshell' utility. The 'fileinto' is executed,
but 'addflag' does not seem to have any effect. I tried both SquirrelMail
and Mozilla Thunderbird as clients, but the messages in folder INBOX.foo
appear as unread/unseen with both, just as in every other folder.
Did you try:

...
addflag "\\seen";
...


In the examples in draft-melnikov-sieve-imapflags-03.txt flags begin with two
backslashes.

--
Andreas
--
--
Andreas
Ralph Seichter
2008-10-24 14:08:18 UTC
Permalink
Post by Andreas Winkelmann
In the examples in draft-melnikov-sieve-imapflags-03.txt flags begin
with two backslashes.
It seems that I was unlucky in my choice of example scripts -- I found
single backslashes only. Now I use the following script, et voilĂ , it
works as desired.

require "fileinto";
require "imapflags";

if address :contains ["To", "Cc"] "***@domain.tld"
{
addflag "\\seen";
fileinto "INBOX.foo";
}

Thanks for your help, Jeff and Andreas!

-R

Continue reading on narkive:
Loading...