Re: Procmail
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* Rem P Roberti <rem@xxxxxxxxxx> [10-09-07 19:37]:
> What I don't understand is that since the variable MAILDIR=$HOME/Mail
> exists at the beginning of .procmailrc why is it necessary to state
> the full path to the target mailbox in the recipe?
Do you have something afterwards altering $MAILDIR,
AND
your procmail *path* variables should be quoted:
SHELL="/bin/bash"
SPOOL="/var/spool/mail"
MAILDIR="$HOME/Mail"
DEFAULT="$SPOOL/pat"
PMDIR="$HOME/.procmail"
LOGFILE="$PMDIR/log"
WSPC = " " # whitespace: space + tab
SPC = "[$WSPC]" # Regexp: space + tab
SPCL = "($SPC|$)" # whitespace + linefeed: spc/tab/nl
NSPC = "[^$WSPC]" # negation
s = $SPC # shortname: like perl -- \s
d = "[0-9]" # A digit -- Perl \d
w = "[0-9a-z_A-Z]" # A word -- Perl \w
W = "[^0-9a-z_A-Z]" # A word -- Perl \W
a = "[a-zA-Z]" # A word, only alphabetic chars
FORMAIL = "/usr/bin/formail"
RAZORCHECK = "/usr/bin/razor-check"
PYZORCHECK = "/usr/bin/pyzor"
SPAMASSASSIN = "/usr/bin/spamassassin"
SPAMC = "/usr/bin/spamc"
SED = "/usr/bin/sed"
LBDBFETCHADDR = "/usr/bin/lbdb-fetchaddr"
INCLUDERC="$PMDIR/rc.maillists"
My mailing list recipies are in ~/.procmail/rc.maillists
- --
Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535 @ http://counter.li.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn4472 (GNU/Linux)
iD8DBQFHDCWXClSjbQz1U5oRAmbTAJ4g3k5dEO7lUVc1nLvkBbEblZuUFQCeL3if
SnRZbQlM2ETLgv8g/55TRtk=
=9TLi
-----END PGP SIGNATURE-----