-- 

    _______  ____   ___
   / __/ _ \/ __/__<  /
  _\ \/ // / _//___/ /
 /___/____/_/     /_/

    [ 1987 - 2007 ]

  http://sdf.lonestar.org
 Public Access Unix System
===============================================================
GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
===============================================================
Date: Fri, 13 Jul 2007 19:26:52 -0500
From: Denny White <[EMAIL PROTECTED]>
To: Philip Guenther <[EMAIL PROTECTED]>
Subject: Re: mutt, getmail & procmail
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[EMAIL PROTECTED]>
X-GPG-PUBLIC_KEY: http://wwwkeys.nl.pgp.net
X-GPG-FINGERPRINT: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A
User-Agent: Mutt/1.5.12-2006-07-14

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

On Fri, Jul 13, 2007 at 02:44:48PM -0600, Philip Guenther wrote:
> On 7/13/07, Denny White <[EMAIL PROTECTED]> wrote:
> ...
> >PATH=$HOME/bin:$HOME:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:.
> That line is probably unnecessary.  Unless you can point to a specific
> program that your .procmailrc uses that is not in the default PATH set
> by procmail, why change it?
> 
> 
> >FORMAIL=/usr/local/bin/formail
> Why do people think that hardcoding the paths to normal programs is a
> good thing?  Why not just say "formail" and let the shell do the work?
> 
> 
> >SENDMAIL=/usr/sbin/sendmail
> 
> Remove that line: procmail sets that for you.  ($SENDMAIL is a
> historical wart that exists only because sendmail was originally
> installed into a directory (/usr/lib) that wasn't in anyone's path.)
> 
> 
> >LOCKFILE=$HOME/.lockmail
> 
> Ugh.  Do you know what that LOCKFILE assignment does?  Unless you have
> a specific need for it (and I don't see anything in your .procmailrc
> that does), you should remove it.  If you don't know what it does,
> then go read the procmailrc(5) manpage and then remove that line.
> 
> 
> ># Anything that has not been delivered by now will go to $DEFAULT
> ># using LOCKFILE=$DEFAULT$LOCKEXT
> 
> That comment is not correct for at least two reasons:
> 1) the locking of $DEFAULT$LOCKEXT is only done if $DEFAULT names
>    an actual file and not a directory, and
> 2) it doesn't (re)use LOCKFILE: you can hold both global lock and a local 
> lock
> 
> >When I take procmail out of .getmailrc & just download everything
> >to my inbox, there's no problem. The problem starts every time I
> >try to use procmail. Below is typical output of a getmail session:
> >
> >2007-07-13 14:23:31 Delivery error (command procmail 17884 error
> >(0, procmail: [17884] Fri Jul 13 14:23:31 2007
> >procmail: Assigning "MAILDIR=/home/dennyboy/Mail"
> >procmail: Assigning "DEFAULT=/home/dennyboy/Mail/inbox"
> >procmail: Assigning "PMDIR=/home/dennyboy/.procmail"
> >procmail: Assigning "LOGFILE=/home/dennyboy/.procmail/.procmail-log"
> >procmail: Opening "/home/dennyboy/.procmail/.procmail-log"))
> >2007-07-13 14:23:31 msg 13/13 (2274 bytes) msgid UID54784-1149445332 from 
> ><[EMAIL PROTECTED]>
> ...
> 
> It looks like the complaint from getmail is that procmail is writing
> stuff to its stderr.  That's occurring because you set VERBOSE to on
> before you set LOGFILE.  Either remove the assignment to VERBOSE or
> move it to after the LOGFILE assignment (or move the LOGFILE
> assignment to before the VERBOSE assignement, of course).
> 
> 
> Philip Guenther

Philip,
Thank you. Followed your advice. Pertinent section below. It works.
No more error messages, messages get filtered properly, life is good.
I had set it the previous way that made the errors I guess out of
misunderstanding the documentation and samples I had found. Anyways,
thanks again, very much appreciated.

Denny White

=============================
VERBOSE=off
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/.procmail-log
MAILDIR=$HOME/Mail              # You'd better make sure it exists
DEFAULT=$MAILDIR/inbox
COMSAT=no
PER=([EMAIL PROTECTED]|[EMAIL PROTECTED])
FBSDALL=([EMAIL PROTECTED]|[EMAIL PROTECTED])
OBSDALL=([EMAIL PROTECTED])

:0
*$ ^From:.*$PER
per/

:0
*$ ^From:.*$FBSDALL
fbsd/

:0
*$ ^From:.*$OBSDALL
obsd/
==============================

-- 

    _______  ____   ___
   / __/ _ \/ __/__<  /
  _\ \/ // / _//___/ /
 /___/____/_/     /_/

    [ 1987 - 2007 ]

  http://sdf.lonestar.org
 Public Access Unix System
===============================================================
GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
===============================================================
iD8DBQFGmBdFy0Ty5RZE55oRApFQAJsF+g7qjWSlT9Zc/vfOVvuQpRQqbwCfQQAy
ju0BjC1doukS9IFk18GOeec=
=wuzL
-----END PGP SIGNATURE-----

Reply via email to