procmail
[Top] [All Lists]

Re: The From separator in mbox files is being lost

2003-01-17 12:33:51
LuKreme <kremels(_at_)kreme(_dot_)com> wrote:

On Friday, January 17, 2003, at 12:44 AM, Andrew Morton wrote:
I have a feeling this is an ancient bug, but it's back...

Er.. truncated "From " to "rom " is an old bug.

Yes.  I stumbled over it so long ago I forgot the details..

This appears to be a new problem.

I am delivering email from fetchmail into procmail, and procmail is 
placing
the mail into files in my home directory.

Since I installed Red Hat 8.0, some mailbox files are getting 
corrupted: the "^From " separator is getting lost.  For example:

That I've never seen.  Are you sure you aren't accidently stripping it 
out?


Well I worked out what was contributing to it.  Here's the start of the
offending .procmailrc:

#:0 fhw
#| formail -R "References" "In-Reply-To"

:0
* ^To:(_dot_)*p4auto(_at_)digeo(_dot_)com
/home/akpm/.nsmail-zip/digeo/p4changes

:0
* ^Return-Path:(_dot_)*akpm(_at_)digeo(_dot_)com
/home/akpm/.nsmail-zip/Sent

:0
* ^Sender:(_dot_)*bk-commits-head-owner(_at_)vger(_dot_)kernel(_dot_)org
* ^Subject: Merge
/home/akpm/.nsmail-zip/Mailing-Lists/Linux/commits-Merges

:0
* ^Sender:(_dot_)*bk-commits-head-owner(_at_)vger(_dot_)kernel(_dot_)org
/home/akpm/.nsmail-zip/Mailing-Lists/Linux/commits

:0
* ^Sender:(_dot_)*bk-commits-24-owner(_at_)vger(_dot_)kernel(_dot_)org
* ^Subject: Merge
/home/akpm/.nsmail-zip/Mailing-Lists/Linux/commits-24-Merges

:0
* ^Sender:(_dot_)*bk-commits-24-owner(_at_)vger(_dot_)kernel(_dot_)org
/home/akpm/.nsmail-zip/Mailing-Lists/Linux/commits-24

:0fw
| spamassassin -P -D -L

:0:
* ^X-Spam-Status: Yes
/home/akpm/.nsmail-zip/spam


The missing "From" line was happening to every mailbox which was mentioned
before the spamassassin line.  Moving the :0fw spamassassin rule to the top
of the file made the problem go away.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail