Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id C9E2B6DE0130 for ; Mon, 6 Jun 2016 20:06:01 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.006 X-Spam-Level: X-Spam-Status: No, score=-0.006 tagged_above=-999 required=5 tests=[AWL=0.005, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zwD0L0vOapIH for ; Mon, 6 Jun 2016 20:05:53 -0700 (PDT) X-Greylist: delayed 901 seconds by postgrey-1.35 at arlo; Mon, 06 Jun 2016 20:05:52 PDT Received: from EXCAS04.olin.edu (excas04.olin.edu [208.91.55.40]) by arlo.cworth.org (Postfix) with ESMTPS id F1FC16DE00DA for ; Mon, 6 Jun 2016 20:05:52 -0700 (PDT) Received: from insight.mit.edu (108.20.254.101) by EX03.olin.edu (10.1.15.11) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Mon, 6 Jun 2016 22:50:49 -0400 Received: from sanjoy by insight.mit.edu with local (Exim 4.87) (envelope-from ) id 1bA76L-00046X-K8; Mon, 06 Jun 2016 22:50:45 -0400 From: Sanjoy Mahajan To: David Bremner , Allan Streib , Subject: Re: Bug/Issue: References header doesn't wrap in emacs package In-Reply-To: <878u7k21d8.fsf@zancas.localnet> References: <87612qwh04.fsf@viking.dsc.soic.indiana.edu> <87si5t1nhu.fsf@zancas.localnet> <878u7k21d8.fsf@zancas.localnet> User-Agent: Notmuch/0.22 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Mon, 6 Jun 2016 22:50:45 -0400 Message-ID: <87d1ntg1a2.fsf@insight.mit.edu> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [108.20.254.101] X-ClientProxiedBy: EXCAS03.olin.edu (10.1.15.15) To EX03.olin.edu (10.1.15.11) X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2016 03:06:01 -0000 On 2015-10-02 21:21, David Bremner wrote: >>> The problem is a References header that is too long/not wrapped. >>> >> >> Hi Allan; >> >> Thanks for the report. I can see how notmuch-reply would generate a >> long references header in that situation. We rely on message-mode (part >> of Gnus) to actually send the message, and it isn't clear to me yet if >> message-mode (or some function it invokes) normally folds long headers. > > I have reported this as an emacs bug. > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21608 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. By the way, the latest Exim release (4.87), at least as configured in Debian, does limit lines to 998 characters, and that limit has been causing me a few hiccups -- usually when I reply to a message sent by gmail with a zillion references (perhaps it lists every message in the thread). -Sanjoy