[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mailing lists/rules



On Fri, Aug 24, 2001 at 08:21:31AM -0500, schmeits.roger@webmail.clarksoncollege.edu wrote:
> Can someone point me to a fairly easy way to handle multiple mailing
> lists?  I looked at procmail and my brain hurts.  Is there something not
> quite so extreme?  My needs are very simple.
> 
> Currently I am receiving misc@openbsd.org, ports@openbsd.org and
> tkrat@tkrat.org and just need to divert into various subdirectoies.
> 
> Any suggestions appriecated.

I'm a fan of procmail, and I don't see why it needs to be hard... just
something in your .procmailrc like this:

PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
MAILDIR=$HOME/mail             # you'd better make sure it exists
LOGFILE=$MAILDIR/procmail.log  # recommended

:0:
* ^Sender:.*misc@openbsd
* $MAILDIR/openbsd-misc

Will cause misc@ to be filed in ~/mail/openbsd-misc ... you can probably
find similar headers to match on the other two lists.

Make sure if your MTA doesn't do local delivery with procmail to set your
.forward to "|/usr/local/bin/procmail" or similar.

Granted, I have yet to find a good introduction to procmail.  The manual is
excellent, but only if you know a bit about it already.  Perhaps it's time I
wrote an entry-level document.

HTH

-Dan

-- 
"There are two limits that this standard places on the number of
characters in a line. Each line of characters MUST be no more than
998 characters, and SHOULD be no more than 78 characters, excluding
the CRLF."       -- rfc2822 - Internet Message Format