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

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

Date: Tue, 7 Jun 2016 11:51:25 -0400

To: David Bremner, Allan Streib, notmuch@notmuchmail.org

Cc:

From: Sanjoy Mahajan


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

Thread: