--- /dev/null
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 592496DE0130\r
+ for <notmuch@notmuchmail.org>; Tue, 7 Jun 2016 03:28:52 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.011\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.011 tagged_above=-999 required=5\r
+ tests=[AWL=-0.000, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id mNg-MgxmGQDZ for <notmuch@notmuchmail.org>;\r
+ Tue, 7 Jun 2016 03:28:44 -0700 (PDT)\r
+Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id D6E266DE00DA\r
+ for <notmuch@notmuchmail.org>; Tue, 7 Jun 2016 03:28:43 -0700 (PDT)\r
+Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
+ (envelope-from <david@tethera.net>)\r
+ id 1bAEFJ-0006Dk-7q; Tue, 07 Jun 2016 06:28:29 -0400\r
+Received: (nullmailer pid 16855 invoked by uid 1000);\r
+ Tue, 07 Jun 2016 10:28:40 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Sanjoy Mahajan <sanjoy@olin.edu>, Allan Streib <astreib@indiana.edu>,\r
+ notmuch@notmuchmail.org\r
+Subject: Re: Bug/Issue: References header doesn't wrap in emacs package\r
+In-Reply-To: <87d1ntg1a2.fsf@insight.mit.edu>\r
+References: <87612qwh04.fsf@viking.dsc.soic.indiana.edu>\r
+ <87si5t1nhu.fsf@zancas.localnet> <878u7k21d8.fsf@zancas.localnet>\r
+ <87d1ntg1a2.fsf@insight.mit.edu>\r
+User-Agent: Notmuch/0.22+28~gb9bf3f4 (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Tue, 07 Jun 2016 07:28:40 -0300\r
+Message-ID: <87vb1l9tt3.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 07 Jun 2016 10:28:52 -0000\r
+\r
+Sanjoy Mahajan <sanjoy@olin.edu> writes:\r
+\r
+\r
+> I'm not sure whether fixing it in emacs is right. The command 'notmuch\r
+> reply' is itself (with the sexp or json formats) generating the too-long\r
+> References: header. Shouldn't it generate an RFC-compliant message?\r
+>\r
+> Or should the json/sexp formats remain agnostic about line length,\r
+> because wrapping doesn't make sense with key/value pairs? In that case,\r
+> I agree that message-mode should fix any long lines.\r
+\r
+For me the main issue is that the references header is editable by the\r
+user before sending. So some input sanitization is needed at the sending\r
+stage.\r
+\r
+d\r