procmail
[Top] [All Lists]

3.22 drops 'F' in From_ when rescuing unfiltered data

2002-05-22 07:11:09
I was told there is a bug where, when procmail terminates a program
that is taking too long, it will lose the 'F' in 'From_' and corrupt
the mailbox. Take a look below. I'll also attach my orginal message
that he replied to.

Is there a patch I can apply? I can't find it on the procmail mailing
list archive and I can't find the procmail-dev archive.

Thanks,

Mark
----- Forwarded message from Bart Schaefer <schaefer(_at_)zanshin(_dot_)com> 
-----

From: Bart Schaefer <schaefer(_at_)zanshin(_dot_)com>
Subject: Re: several messages
Date: Thu, 16 May 2002 07:58:51 -0700 (PDT)
Message-ID: 
<Pine(_dot_)LNX(_dot_)4(_dot_)44(_dot_)0205160728120(_dot_)31686-100000(_at_)aztec(_dot_)zanshin(_dot_)com>
To: Henrick Yau <hyau(_at_)loopdigital(_dot_)com>, Mark Bynum 
<mark(_at_)mjbynum(_dot_)org>
cc: spamassassin-talk(_at_)lists(_dot_)sourceforge(_dot_)net

On Wed, 15 May 2002, Henrick Yau wrote:

> >From <email address> <Date>
>
> becomes
>
> rom <email address> <Date>

On Thu, 16 May 2002, Mark Bynum wrote:

> I've been getting an increasing problem where spamassassin will hang (take
> longer than procmail, by default, thinks it should take) and procmail
> will kill it.
>
> Every time this happens the 'F' in the From_ is missing from the spam message
> when I look at the mailbox in vi.
>
> We've just upgraded to 2.20 and procmail is at 3.22 and it's still happening.

This is a bug in procmail.  A patch has been posted to the procmail
mailing list, but the procmail maintainer hasn't yet found time to do a
3.23 release.  I'm not having much luck searching the list archives for
the diff, though.  I believe the problem is an off-by-one when re-reading
the header from the recovery file after a filter terminates with an error.

The suggested workaround is to add

    :0 fhw
    | sed '1s/^rom /From /'

at some appropriate place in the .procmailrc file.

----- End forwarded message -----

--- Begin Message ---
Hello,

I've been getting an increasing problem where spamassassin will hang (take
longer than procmail, by default, thinks it should take) and procmail
will kill it. Then procmail, I think, sticks a corrupted message in my
mailbox because it thinks it got the whole message when it didn't. This
only happens on messages that are spam. Here is the procmail log for the
last time this happened:

procmail: Rescue of unfiltered data succeeded
procmail: Timeout, terminating "spamassassin"
 Subject: Congratulations, You Won $30.00 Today!30108
  Folder: /var/mail/janelle                                                5120

Every time this happens the 'F' in the From_ is missing from the spam message
when I look at the mailbox in vi.

We've just upgraded to 2.20 and procmail is at 3.22 and it's still happening.
Here is the spamassassin call from the procmailrc:

:0fw                            # Call spamassasin
| spamassassin -P -F1

I can send the spam message if that helps.

Can anyone help?

Thanks,

Mark

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: 
bandwidth(_at_)sourceforge(_dot_)net
_______________________________________________
Spamassassin-talk mailing list
Spamassassin-talk(_at_)lists(_dot_)sourceforge(_dot_)net
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk


--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>
  • 3.22 drops 'F' in From_ when rescuing unfiltered data, Mark Bynum <=