On Mon, 2004-09-06 at 10:25 +1000, David Kempe wrote: > Any hints? The matching part is a bloody cryptic and I guess I need to > expand it to match CC fields as well
I did this a while ago and also got it to add the new folder to the
subscribed list as well. The rule has mutated a bit since then with my
attempts to get courier to notify evolution that a new subscription was
added (without success thus far). Anyway, here's the rule:
:0
* ^TO_.*\/[a-z0-9_-]+@(james.id.au)
{
ADDR=$MATCH
:0ci:
* ADDR ?? ^\/[EMAIL PROTECTED]
| ([ -d /home/james/Maildir/.misc.$MATCH ] || (echo INBOX.misc.$MATCH >>
/home/james/Maildir/courierimapsubscribed))
:0:
* ADDR ?? ^\/[EMAIL PROTECTED]
$MAILDIR.misc.$MATCH/
}
Unfortunately I can't tell you how I ultimately arrived at that rule
because I also struggle with procmail syntax. It's been working quite
well though, and won't re-subscribe you if you unsubscribe from one of
the folders it makes.
HTH,
James.
--
James Gregory <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
