talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 4b21af32557e42327956d2f49aee6cdb0eec8d34
parent 9cf5b73b4726a9e13deee191c1bd6dc75486a169
Author: Ricardo Mones <ricardo@mones.org>
Date:   Wed, 22 Apr 2015 19:58:21 +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.

Diffstat:
MAUTHORS | 1+
Msrc/gtk/authors.h | 1+
Msrc/plugins/mailmbox/mailmbox.c | 2+-
3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/AUTHORS b/AUTHORS @@ -311,3 +311,4 @@ contributors (in addition to the above; based on Changelog) H. Merijn Brand Anton Butanaev Daniel Zaoui + Johan Vromans diff --git a/src/gtk/authors.h b/src/gtk/authors.h @@ -278,6 +278,7 @@ static char *CONTRIBS_LIST[] = { "Petr Vanek", "Jeroen Versteeg", "Kevin Vigor", +"Johan Vromans", "Botalov Vyacheslav", "Radek Vybiral", "Jonathan Ware", diff --git a/src/plugins/mailmbox/mailmbox.c b/src/plugins/mailmbox/mailmbox.c @@ -615,7 +615,7 @@ claws_mailmbox_append_message_list_no_lock(struct claws_mailmbox_folder * folder date = time(NULL); from_size = strlen(DEFAULT_FROM_LINE); if (localtime_r(&date, &time_info) != NULL) - from_size = strftime(from_line, MAX_FROM_LINE_SIZE, "From - %c\n", &time_info); + from_size = strftime(from_line, MAX_FROM_LINE_SIZE, "From - %a %b %_2d %T %Y\n", &time_info); extra_size = 0; for(i = 0 ; i < carray_count(append_tab) ; i ++) {