Bug 3419 - Saving/appending messages to an mbox file violates RFC#4155
Summary: Saving/appending messages to an mbox file violates RFC#4155
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Plugins/mailMBOX (show other bugs)
Version: 3.11.1
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2015-04-17 09:33 UTC by Johan Vromans
Modified: 2015-09-28 10:01 UTC (History)
0 users

See Also:


Attachments
Example patch (765 bytes, patch)
2015-04-17 09:33 UTC, Johan Vromans
no flags Details | Diff

Description Johan Vromans 2015-04-17 09:33:03 UTC
Created attachment 1507 [details]
Example patch

RFC#4155 defines the mbox format, and the "From " line must have the UNIX
'ctime' formatted UTC date. So it should be:

  From - Wed Apr 15 22:04:35 2015

instead of what is used currently:

  From - Thu 16 Apr 2015 00:04:35 CEST

Due to the "From " separator philosophy, mbox processing tools need to be careful to not accidentally split on non-separator "From " lines. Therefore, many tools are very picky on the format of the "From " line. Using local time instead of UTC is acceptable, though.

An example patch is attached.
Comment 1 users 2015-04-22 20:00:02 UTC
Changes related to this bug have been committed.
Please check latest Git and update the bug accordingly.
You can also get the patch from:
http://git.claws-mail.org/

++ ChangeLog	2015-04-22 20:00:02.768790697 +0200
http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=c93441a6e25d600254a2f28fa306c2b1aa6cdb7a
Merge: 05df74e 4b21af3
Author: Colin Leroy <colin@colino.net>
Date:   Wed Apr 22 20:00:02 2015 +0200

    Merge branch 'master' of file:///home/git/claws

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=4b21af32557e42327956d2f49aee6cdb0eec8d34
Author: Ricardo Mones <ricardo@mones.org>
Date:   Wed Apr 22 19:58:21 2015 +0200

    Fix bug #3419 ‘Saving/appending messages to an mbox file violates RFC#4155’
    
    RFC4155 is informative, anyway, this makes message separator headers
    conform to qmail mboxrd format: http://qmail.org./man/man5/mbox.html
    
    Original patch thanks to Johan Vromans.
Comment 2 Ricardo Mones 2015-09-28 10:01:52 UTC
Fix released in 3.12.0

Note You need to log in before you can comment on or make changes to this bug.