Package: procmail Version: 3.22-10 Severity: important When splitting email with the -s option, a mail will only be considered a new mail if there is a "From:" header immediately after a "From " header, e.g.
--- cut --- >From nobody Mon Feb 9 20:21:05 2004 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 From: "Brian May" <[EMAIL PROTECTED]> >From nobody Mon Feb 9 20:21:05 2004 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 From: "Brian May" <[EMAIL PROTECTED]> --- cut --- Is considered as one email, but: --- cut --- >From nobody Mon Feb 9 20:21:05 2004 From: "Brian May" <[EMAIL PROTECTED]> User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 >From nobody Mon Feb 9 20:21:05 2004 From: "Brian May" <[EMAIL PROTECTED]> User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 --- cut --- This only happens if certain headers appear between the "From " and "From:" headers, "User-Agent" is a good example. NNTP-Posting-Date is also another one. Other headers like "Subject:" are OK. Note 1: this happens on mbox files written by gnus. Note 2: the emails in question have a "Lines: " header but not a "Content-Length: " Header. I suspect formail only supports the latter. Note 3: I have marked this as important, as I find this behaviour really confusing and potentially damaging. Note 4: To the best of my knowledge mbox mails should be split on the "From " header, and what headers follow is completely irrelevant and should not even be considered. Note 5: In order to test this out, I used the following script: --- cut --- #!/bin/sh -e echo "-----" grep '^From' --- cut --- saved it as "doit", and passed "doit" as the parameter to "-s". When it is working, every email should be split up by a line with "-----". Note 6: An ugly work around is: grep -v '^\(User-Agent\|NNTP-Posting-Date\):' < mailfile | formail -s ../doit -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8-2-k7 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages procmail depends on: ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]