nmh-workers
[Top] [All Lists]

[Nmh-workers] message corruption with inc

2013-04-15 10:11:49
i'm sometimes seeing a minor corruption of incoming mail after running
inc.  it's happened since i switched recently to running latest git
HEAD.

i've bisected, and the first failing commit is:

    commit f6e6ec96c9e179f7817fca4c8c22bc2bd4e417e8 (master~193^2~6^2~31)
    Author: David Levine <levinedl(_at_)acm(_dot_)org>
    Date:   Sun Jan 13 11:08:28 2013 -0600

        Added bytes_read to m_getfld() buffer state.  This is the
        next step in supporting ftell()/fseek().


to reproduce:  save the attached message to /tmp/foo.mbox, and run:

    $ inc -file /tmp/foo.mbox
    $ diff -u /tmp/foo.mbox $(mhpath cur)
    --- /tmp/foo.mbox       2013-04-15 11:05:14.000000000 -0400
    +++ /home/pgf/Mail/foo/10       2013-04-15 11:06:24.000000000 -0400
    @@ -1,4 +1,3 @@
    -From notification+xxxxpjwi(_at_)facebookmail(_dot_)com  Mon Apr 15 
00:24:09 2013
     Return-Path: <notification+xxxxpjwi(_at_)facebookmail(_dot_)com>
     X-Original-To: pgf-facebook(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us
     Delivered-To: pgf-facebook(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us
    @@ -37,6 +36,8 @@
     Content-Type: multipart/alternative;
            boundary="b1_b24c20bb119a0a0f754067dd12b0d2c3"
     
    +2c3"
    +
     
     --b1_b24c20bb119a0a0f754067dd12b0d2c3
     Content-Type: text/plain; charset="UTF-8"
    @@ -53,4 +54,3 @@
     
     
     --b1_b24c20bb119a0a0f754067dd12b0d2c3--
    -


you can see that the last several characters of the message header
have been prepended to the message body.  this is the typical behavior
i've been seeing.  never more than 4 or 5 extra characters.

i'll debug if no one else can get to it near-term, but i'm sure david
will be quicker at it than i will be, if he has time.

paul
----------------------
 paul fox, pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us (arlington, ma, 
where it's 47.5 degrees)

<Prev in Thread] Current Thread [Next in Thread>