Re: Bug/Issue: References header doesn't wrap in emacs package

Subject: Re: Bug/Issue: References header doesn't wrap in emacs package

Date: Thu, 26 Jan 2017 20:32:37 -0400

To: Allan Streib, notmuch@notmuchmail.org

Cc:

From: David Bremner


Sanjoy Mahajan <sanjoy@olin.edu> writes:

> On 2016-06-07 06:28, David Bremner <david@tethera.net> wrote:
>
>> Sanjoy Mahajan <sanjoy@olin.edu> writes:
>>
>>
>>> I'm not sure whether fixing it in emacs is right.  The command 'notmuch
>>> reply' is itself (with the sexp or json formats) generating the too-long
>>> References: header.  Shouldn't it generate an RFC-compliant message?
>>>
>>> Or should the json/sexp formats remain agnostic about line length,
>>> because wrapping doesn't make sense with key/value pairs?  In that case,
>>> I agree that message-mode should fix any long lines.
>>
>> For me the main issue is that the references header is editable by the
>> user before sending. So some input sanitization is needed at the sending
>> stage.
>
> Further supporting that argument, the user could also include a
> 1000-character line in the message body, which would require sanitizing
> at the sending stage.
>
> -Sanjoy

Headers are now folded in emacs master, apparently

        http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21608

Thread: