* procmail not writing mbox file properly?
@ 2003-09-23 20:54 Matthew Rich
2003-09-24 2:45 ` Greg Matheson
2003-09-24 11:36 ` Jason Tishler
0 siblings, 2 replies; 3+ messages in thread
From: Matthew Rich @ 2003-09-23 20:54 UTC (permalink / raw)
To: cygwin
I just moved to cygwin from debian linux and am having some problems setting up my email. I use mutt, fetchmail, and procmail. procmail writes most of my mail to ~/mbox, my main mbox file. However, I noticed that mutt was not picking up the messages written to ~/mbox by procmail.
I set up mutt to poll my pop3 server itself, and when it does this it writes to the mbox file properly. Also, I looked at my old mbox file from my linux machine and I figured out what's wrong: procmail on cygwin is not writing the leading From line for each message. Thus mutt is just ignoring the messages it writes. Note that procmail (the same version, 3.22) *was* writing this line on debian.
For example, the first few lines of each message in the mbox file should look like:
From sender@sender.com Tue Jul 01 09:15:07 2003
Return-path: <sender@sender.com>
Envelope-to: matthew@localhost
Delivery-date: Tue, 01 Jul 2003 09:15:07 -0500
But with procmail on cygwin, I'm just getting:
Received: from bar.com [168.143.80.100]
by localhost with POP3 (fetchmail-6.2.4)
for ci_matthew@localhost (single-drop); Tue, 23 Sep 2003 13:49:53 -0500 (CST)
Received: from cujo.runbox.com (193.71.199.138)
by mail01d.rapidsite.net (RS ver 1.0.86vs) with SMTP id 3-0850523058
for <foo@bar.com>; Tue, 23 Sep 2003 14:50:59 -0400 (EDT)
Received: from [10.9.9.15] (helo=odie.runbox.com)
by lufsen.runbox.com with esmtp (Exim 4.20)
id 1A1sFY-0005RV-Lj
for foo@bar.com; Tue, 23 Sep 2003 20:51:00 +0200
Received: from mail by odie.runbox.com with local (Exim 4.20)
id 1A1sFF-00024v-LY
for foo@bar.com; Tue, 23 Sep 2003 20:50:41 +0200
Content-Type: text/plain; charset=iso-8859-1
etc. Namely, it starts right in with the Received: headers, without ever writing the From line. If I just add in a dummy From line copied from another message in the mbox file, mutt can then read the message written by procmail.
Anyone know what's going on?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: procmail not writing mbox file properly?
2003-09-23 20:54 procmail not writing mbox file properly? Matthew Rich
@ 2003-09-24 2:45 ` Greg Matheson
2003-09-24 11:36 ` Jason Tishler
1 sibling, 0 replies; 3+ messages in thread
From: Greg Matheson @ 2003-09-24 2:45 UTC (permalink / raw)
To: cygwin
On Tue, 23 Sep 2003, Matthew Rich wrote:
> I set up mutt to poll my pop3 server itself, and when it does this it writes to the mbox file properly. Also, I looked at my old mbox file from my linux machine and I figured out what's wrong: procmail on cygwin is not writing the leading From line for each message. Thus mutt is just ignoring the messages it writes. Note that procmail (the same version, 3.22) *was* writing this line on debian.
From man procmail:
-f fromwhom
Causes procmail to regenerate the leading `From ' line with
fromwhom as the sender (instead of -f one could use the alternate
and obsolete -r). If fromwhom consists merely of a single `-',
then procmail will only update the timestamp on the `From ' line
(if present, if not, it will generate a new one).
--
Greg Matheson, Taiwan
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: procmail not writing mbox file properly?
2003-09-23 20:54 procmail not writing mbox file properly? Matthew Rich
2003-09-24 2:45 ` Greg Matheson
@ 2003-09-24 11:36 ` Jason Tishler
1 sibling, 0 replies; 3+ messages in thread
From: Jason Tishler @ 2003-09-24 11:36 UTC (permalink / raw)
To: cygwin
Matthew,
On Tue, Sep 23, 2003 at 08:48:12PM +0000, Matthew Rich wrote:
> Also, I looked at my old mbox file from my linux machine and I figured
> out what's wrong: procmail on cygwin is not writing the leading From
> line for each message.
> [snip]
> Anyone know what's going on?
How are you invoking procmail in your .fetchmailrc? Are you following
the recommended usage as documented in the Cygwin fetchmail README?
mda "/usr/bin/procmail -d %T"
FWIW, Cygwin fetchmail/procmail has properly processed well over 100K
emails since I cut over to this email processing solution in July 2001.
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-09-24 10:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-23 20:54 procmail not writing mbox file properly? Matthew Rich
2003-09-24 2:45 ` Greg Matheson
2003-09-24 11:36 ` Jason Tishler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).