[Linux-disciples] procmail rule to mark message as 'read'
Adam Kessel
adam at rosi-kessel.org
Thu Jun 10 14:23:40 EDT 2004
On Thu, 2004-06-10 at 14:03, Dylan Thurston wrote:
> On Thu, Jun 10, 2004 at 01:20:17PM -0400, Adam Kessel wrote:
> > Can anyone think of a simple procmail rule to mark an incoming message
> > as "read" (as opposed to "new")? I'm currently experimenting with the
> > evolution mail client, which can generate a virtual folder of all unread
> > mail in all folders, but I don't want spam, viruses, and cron messages
> > to marked as 'unread' for that filter.
> Do you use mbox format? That format uses a header field 'Status: RO' to
> indicate old, read messages. Presumably you could add it yourself. I'm
> not sure what to do for Maildir format; maybe procmail will do the right
> thing if there's a status field in the header.
I guess the key tool I need is formail, that works at least for my mbox
folders. I had to change all my rules to be chained:
:0 Hf
^Subject: Spam or whatever
| formail -i "Status: RO"
:0 A
spamfolder
The first rule adds the Status: RO header to the spam, the second rule
chains from the first rule and puts the message in the correct folder.
I don't think there's any simple way to combine the actions.
--
Adam Kessel
http://adam.rosi-kessel.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20040610/9aefdc31/attachment.pgp
More information about the Linux-disciples
mailing list