anomy-list

RE: anomy / procmail corrupting mail folders

From: brien (67734@xyz.molar.is)
Date: Tue 14 Jan 2003 - 15:48:39 GMT

  • Next message: 67814@xyz.molar.is: "Re: Attachments get corrupted"

    awesome! thanks a bunch.

    -----Original Message-----
    From: SI Reasoning [mailto:67777@xyz.molar.is]
    Sent: Monday, January 13, 2003 7:45 PM
    To: anomy
    Subject: Re: [anomy-list]: anomy / procmail corrupting mail folders

    This is a procmail issue.

    from /usr/share/doc/spamassassin-2.43/procmailrc.example:

    # Work around procmail bug: any output on stderr will cause the "F" in
    "From"
    # to be dropped. This will re-add it.
    :0 H
    * ! ^From[ ]
    * ^rom[ ]
    {
      LOG="*** Dropped F off From_ header! Fixing up. "

      :0 fhw
      | sed -e 's/^rom /From /'
    }

    On Mon, 2003-01-13 at 17:49, brien wrote:
    > Hi,
    >
    > I've been running anomy for over 2 years, and maybe once every 6 months I
    > get a corrupted mail folder. My environment is anomy 1.35 with procmail
    and
    > imap/dmail. Anomy is installed as per the web instructions:
    >
    > ANOMY=/path/to/anomy/
    > :0 fw
    > |/path/to/anomy/bin/sanitizer.pl
    >
    > I know the mail folder is corrupt because there are lines that start with
    > "^rom" instead of "From" (the caret ^ means start of line, it's not
    actually
    > in the file) and imap stops receiving new mail in the folder.
    >
    > The corruption seems to be triggered by anomy failing to handle a message
    > and procmail trying to "rescue" the data. I've attached the log file that
    > demonstrates this. (BTW, no other mail was coming in while this happened
    so
    > I assume it's not a locking related problem).
    >
    > Thanks,
    > Brien
    >
    > procmail log start --------------------
    >
    > This message has been 'sanitized'. This means that potentially
    > dangerous content has been rewritten or removed. The following
    > log describes which actions were taken.
    >
    > [ score: 1 ]
    > 325208 Rewrote HTML tag:
    > _script language="JavaScript"_
    > as _DEFANGED_script language="JavaScript"_
    >
    > [ score: 2 ]
    > 325209 Rewrote HTML tag:
    > _body bgcolor="#eeeeee" marginwidth="0" marginheight="0"
    > link="#000000" alink="#666666" vlink="#000000" leftmargin="0" right
    > margin="0" topmargin="0" bottommargin="0"
    > onload="javascript:window.scroll(0,0)" _
    > as _body bgcolor="#eeeeee" marginwidth="0" marginheight="0"
    > link="#000000" alink="#666666" vlink="#000000" leftmargin="0" right
    > margin="0" topmargin="0" bottommargin="0"
    > DEFANGED_Onload="DEFANGED_javascript:window.scroll(0,0)" _
    >
    > [... cut ... lots more of these ... ]
    >
    > [ score: 139 ]
    > 04207 Rewrote HTML tag:
    > _input type="button" value="Save Changes"
    > onclick="javascript:confirmSave()"_
    > as _input type="button" value="Save Changes"
    > DEFANGED_Onclick="DEFANGED_javascript:confirmSave()"_
    >
    > [ score: 140 ]
    > 04208 Rewrote HTML tag:
    > _a href="javascript:submitForm('validate','')"_
    > as _a href="DEFANGED_javascript:submitForm('validate','')"_
    >
    > [ score: 141 ]
    > 04209 Rewrote HTML tag:
    > _a href="javascript:confirmReload()"_
    > as _a href="DEFANGED_javascript:confirmReload()"_
    >
    >
    >
    > procmail: Program failure (1) of "/usr/local/anomy//bin/sanitizer.pl"
    > procmail: Rescue of unfiltered data succeeded
    > Subject: Can't set heartbeat interval on connection template - result
    erro
    > r a
    > Folder: /var/spool/mail/someuser
    >
    > procmail log end --------------------
    >
    >

    -- 
    SI Reasoning <67777@xyz.molar.is>
    

    Attachments: + http://mailtools.anomy.net/archives/anomy-list//14/0e/3e235d28/01.signature. asc



    hosted by molar.is