[balsa/respect-content-length] mailbox-mbox: Ignore Content-Length headers
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/respect-content-length] mailbox-mbox: Ignore Content-Length headers
- Date: Fri, 12 Feb 2021 20:50:51 +0000 (UTC)
commit 420127faf3cb52a8d8b2bb1fb198e8fa133cfb8e
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Feb 12 15:35:47 2021 -0500
mailbox-mbox: Ignore Content-Length headers
Delete "g_mime_parser_set_respect_content_length(gmime_parser, TRUE);"
The documentation for g_mime_parser_set_respect_content_length() states:
* Most notably useful when parsing broken Solaris mbox files (See
* http://www.jwz.org/doc/content-length.html for details).
*
* By default, this feature is disabled.
The jwz link explains why it _should_ be disabled. An incorrect value
can lead to misparsing the mbox, and hence possibly loss of messages. Its
only known use is to avoid the need to quote (or otherwise mangle)
"^From " lines, and with luck no e-mail client still uses it for that purpose.
libbalsa/mailbox_mbox.c | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/libbalsa/mailbox_mbox.c b/libbalsa/mailbox_mbox.c
index 0961c5a81..ebd1bc2bf 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -435,7 +435,6 @@ parse_mailbox(LibBalsaMailboxMbox * mbox)
gmime_parser = g_mime_parser_new_with_stream(mbox->gmime_stream);
g_mime_parser_set_format(gmime_parser, GMIME_FORMAT_MBOX);
- g_mime_parser_set_respect_content_length(gmime_parser, TRUE);
g_mime_parser_set_header_regex(gmime_parser,
"^Status|^X-Status|^MIME-Version",
lbm_mbox_header_cb, &msg_info_p);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]