Mail Archives: cygwin/2002/10/23/05:15:36
Greg,
On Tue, Oct 22, 2002 at 09:26:39PM +0800, Greg Matheson wrote:
> On Tue, 22 Oct 2002, Thomas Baker wrote:
> > I still cannot
> > get Procmail to write a log, so I am still unsure whether
> > the problem lies with Cygwin, Fetchmail, or Procmail:
>
> Can you run it from the command line? You can pipe messages in
> mutt to "procmail -m .procmailrc"
Aha, this is helpful -- I think. When I run "cat test.mbox |
procmail -m e:/.procmailrc", I get:
| procmail: [1432] Wed Oct 23 11:00:53 2002
| procmail: Assigning "LOGABSTRACT=all"
| procmail: Assigning "MAILDIR=/home/tbaker/uc"
| procmail: Couldn't chdir to "/home/tbaker/uc"
| procmail: Assigning "MAILDIR=."
| procmail: Assigning "PMDIR=/home/tbaker/u/procmail"
| procmail: Assigning "DEFAULT=./MBOX2"
| procmail: Assigning "LOGFILE=/home/tbaker/u/procmail/procmail.log"
| procmail: Opening "/home/tbaker/u/procmail/procmail.log"
| procmail: Error while writing to "/home/tbaker/u/procmail/procmail.log"
| procmail: Match on "^Subject:.*TEST"
| procmail: Locking "TEST.lock"
| procmail: Assigning "LASTFOLDER=TEST"
| procmail: Opening "TEST"
| procmail: Acquiring kernel-lock
| procmail: Unlocking "TEST.lock"
| From tbaker Wed Oct 23 10:44:40 2002
| Subject: TEST
| Folder: TEST 958
..even though "echo $HOME" in a Bash window confirms that
$HOME is "/cygdrive/e".
So I edited .procmailrc, changing
| MAILDIR=$HOME/uc
| PMDIR=$HOME/u/procmail
to
| MAILDIR=/cygdrive/e/uc
| PMDIR=/cygdrive/e/u/procmail
And running "cat test.mbox | procmail -m e:/.procmailrc" again, I got:
| procmail: [2044] Wed Oct 23 11:12:28 2002
| procmail: Assigning "LOGABSTRACT=all"
| procmail: Assigning "MAILDIR=/cygdrive/e/uc"
| procmail: Assigning "PMDIR=/cygdrive/e/u/procmail"
| procmail: Assigning "DEFAULT=/cygdrive/e/uc/MBOX2"
| procmail: Assigning "LOGFILE=/cygdrive/e/u/procmail/procmail.log"
| procmail: Opening "/cygdrive/e/u/procmail/procmail.log"
..and the procmail.log showed everything as it should.
However, incoming messages are still not directed to files
as called for in the recipes...
Tom
--
Dr. Thomas Baker Thomas DOT Baker AT bi DOT fhg DOT de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -