On Mon, Mar 15, 1999 at 02:12:58PM +0100, Peter van Dijk wrote:
> > BTW, doesn't Majordomo generate X-Mailing-List: entries in the
> > header? I use procmail to copy everything from coming from a
> > mailing list to the appropriate +inbox.<mailing list>. However
> > Majordomo does _not generate_ it and i haven't found another
> > criteria to detect mutt-user mails.
>
> Hmm.... what does your procmail code to do that look like?
Okay, here is the code:
# ~/.procmailrc
#
PATH=/usr/local/bin:/usr/bin:/bin
MAILDIR=$HOME/Mail
DEFAULT=$MAILDIR/inbox
LOGFILE=$HOME/log/procmail.log
:0
* ^X-Mailing-List: .*\/[a-z0-9][^ ]*@
{
LIST=`echo $MATCH | sed 's/@.*//;s/-list$//'`
:0
inbox.$LIST
}
As i said its looks for the X-Mailing-List: field. If found
it appends the incoming mail to a file called inbox.<mailing
list> where an occasional '-list' at the end of the name of
the mailing list is stripped off. As an example a mail from
[EMAIL PROTECTED] goes to the inbox 'inbox.gtk'.
Hope that helps.
Holger
--
+ PGP || GnuPG key -> finger [EMAIL PROTECTED] +
+++ Debian/GNU Linux <[EMAIL PROTECTED]> ++ Support Linux +++