In the following link Nancy suggests the recipe:
# this recipe will usually work with an mbox-formatted mailbox on a UW IMAP
server
:0
* condition that matches a message that is yellow (unknown, possibly spam)
{
:0 fh w
| formail -i "X-Keywords: \$Label5"
:0:
$DEFAULT
}
It is possible to set more then one kyeword for a messages
(actualy this is the big advantage of Lables). For this
reason I think to save old kywords first:
KW=`formail -z -x"X-Keywords"`
Later:
...
KW="$KW,$Label5"
...
| formail -i "X-Keywords: \$KW"
Bye,
Udi
On Wed, 29 Mar 2006, Don Russell wrote:
Ruud H.G. van Tol wrote:
Don Russell schreef:
I want to assign "labels" to messages using a procmail recipe.
That means "storing keywords on the imap message on the imap server".
google: imap keywords procmail
Inside 1st hit: http://www.ii.com/internet/robots/procmail/qs/#keywords
See also maildirkw.
Thank you.... that looks exactly like what I want to do.... that's much
simpler than I was anticipating. :-)
Cheers,
Don
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
+++++++++++++++++++++++++++++++++++++++++++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail