On Sunday 2004 October 3 07:03, Jon Clausen wrote:
On Sat, 02 Oct, 2004 at 16:55:11 +0000, C Hamel wrote:
Seems that no matter how I pharse the SuSE rule I cannot get the SuSE-list emails to go to the correct directory using procmail. I have tried different variations:
To:.*suse-linux-e\@suse.com
To:.*suse-linux-e
To:.*suse.com
..all of which fail. Anyone care to share how they're doing it?
I'm using the "X-Mailinglist" header. It's a nonstandard header, but it works fine, and I'm guessing they add it specificly to simplify procmail filtering:
# suse-linux-e: :0
* ^X-Mailinglist: suse-linux-e
| $IMAPCOMMAND $SLE
# suse-linux-ot: :0
* ^X-Mailinglist: suse-ot
| $IMAPCOMMAND $SLEot
The use of variables in the pipe is something I picked up in some howto or other. It complicated the initial setup, but now I'm happy with it. Although a large part of that complication stemmed from me wanting to set up Postfix, Procmail, Spamassassin and Cyrus all in one go, neither of which I knew very well at the time :P
/Jon -- Just say "know!" Pipes is something I need to understand better than I do. I use simple pipes (like | less & | grep <item>) w/o totally understanding how they work. Guess I'll ry this example & see what happens. :-)
(While we're on the subj... I was hopig to also get the process using Mailder rather than mbox, and putting msgs in KMail's inbox, etc. Had it working, once, then it busted & I don't know what I did. Guess that's another post; right?) Thanks! -- "Yogi" CH Namaste Yoga Studio