nmh-workers
[Top] [All Lists]

[Nmh-workers] Truncated Email.

2016-03-06 05:50:13
Hi again,

I've been looking at those +inbox emails when inc(1) complained of new
arrivals.  One bit of spam looks truncated;  it's just headers, with no
separating blank line.

    $ ls -l `mhpath .`
    -rw------- 1 ralph ralph 1793 Mar  4 19:06 /home/ralph/mail/inbox/9377
    $ sed '$!d' `mhpath .`
    Received: from francielowe.com (fl-184-1-54-140.sta.embarqhsd.net 
[184.1.54.140])
    $ od -c `mhpath .` | tail -3
    0003360       [   1   8   4   .   1   .   5   4   .   1   4   0   ]   )
    0003400  \n
    0003401
    $

Postfix logged its, DB2F623490, arrival.

    19:05:11 orac postfix/smtpd[28408]: DB2F623490:
        client=orac.inputplus.co.uk[::1]
    19:05:12 orac postfix/cleanup[28411]: DB2F623490:
        message-id=<FCLSERVERoJujkr5RvO0000b1c6(_at_)francielowe(_dot_)com>
    19:05:12 orac postfix/qmgr[402]: DB2F623490:
        from=<pfernando(_at_)sbcglobal(_dot_)net>, size=6629, nrcpt=1 (queue 
active)
    19:05:12 orac postfix/local[28412]: DB2F623490:
        to=<ralph(_at_)inputplus(_dot_)co(_dot_)uk>, relay=local, delay=0.46,
        delays=0.43/0/0/0.03, dsn=2.0.0, status=sent (delivered to
        mailbox)
    19:05:12 orac postfix/qmgr[402]: DB2F623490:
        removed

The logged Message-ID isn't in the file, and it's not 6,629 bytes or
near.

AFAICS, locking disagreements between Postfix and inc could cause this
too, and not just duplicate emails due to an inc being unable to
truncate?  As inc gets to the end of the spool file, it sees the
starting fragment of an email still being written by Postfix and then
EOF.

So this should stop happening when I fix the locking?  Is that true?

Cheers, Ralph.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

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