Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Feb 2002 11:35:56 -0800
From:      Gregory Sutter <gsutter@zer0.org>
To:        Chip Wiegand <chip@wiegand.org>
Cc:        chat@FreeBSD.ORG
Subject:   Re: email, email, email,  :-(
Message-ID:  <20020203193556.GA67207@klapaucius.zer0.org>
In-Reply-To: <20020202214136.31377fa3.chip@wiegand.org>
References:  <3C5BA9B8.7070606@wiegand.org> <20020202135508.B9530@xor.obsecurity.org> <20020202214136.31377fa3.chip@wiegand.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 2002-02-02 21:41 -0800, Chip Wiegand <chip@wiegand.org> wrote:
> 
> SHELL=/usr/bin/sh               #Use the Bourne shell (check your path!)
> MAILDIR=${HOME}/Mail            #First check what your mail directory is!
> LOGFILE=${MAILDIR}/procmail.log
> LOG="--- Logging ${LOGFILE} for ${LOGNAME}, "

Your $SHELL is wrong.  The $LOG line is superfluous too.  Finally, 
you haven't set a $DEFAULT.  Man procmailrc for info on all of these.
Here are some recommended settings; this is a complete working
.procmailrc that you can add on to after you have your setup working:

=====

SHELL=/bin/sh
PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin"
MAILDIR=$HOME/Mail
DEFAULT="inbox"
LOGFILE=$MAILDIR/log
LOGABSTRACT=all

# Explicitly catch mail in $DEFAULT, even though procmail does it too.
:0 :
$DEFAULT

=====

> I also tried the following line in .forward (without the above line), and it didn't work either - Taken from the http://www.uwasa.fi/~ts/info/proctips.html site again ---
> 
> "|IFS=''&& exec /usr/local/bin/procmail || exit 75 #myid"

This isn't quite right either.  Use this, exactly like it is here
(quotes and all):

"|IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #chip"

> When I start Mutt I get the error ----
> 
> /var/mail/chip: no such file or directory (errorno = 2)

You need to set the 'mailboxes' variable in your .muttrc to point
to your new inbox location, $HOME/Mail/inbox.

Once you've got all this working, you can add FreeBSD-list mailbox
filtering by placing the contents of the file below in your
.procmailrc (before the $DEFAULT recipe).

http://zer0.org/~gsutter/tmp/bsd.rc

Greg
-- 
Gregory S. Sutter                                  Frotz!
mailto:gsutter@zer0.org 
http://www.zer0.org/~gsutter/ 
hkp://wwwkeys.pgp.net/0x845DFEDD

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: ''

iD4DBQE8XZEcIBUx1YRd/t0RAlixAJUW+vChw0FhetQvXwS/JHP2Sih9AJ0U0Z/8
/LSK1RCv9iKbZZQJYELJ/w==
=T55Q
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020203193556.GA67207>