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 1195C6DE15AA for ; Fri, 2 Oct 2015 05:10:19 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.104 X-Spam-Level: X-Spam-Status: No, score=0.104 tagged_above=-999 required=5 tests=[AWL=0.104] 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 bdflOcTQrxoR for ; Fri, 2 Oct 2015 05:10:12 -0700 (PDT) Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224]) by arlo.cworth.org (Postfix) with ESMTPS id 897946DE145D for ; Fri, 2 Oct 2015 05:10:12 -0700 (PDT) Received: from remotemail by gitolite.debian.net with local (Exim 4.80) (envelope-from ) id 1Zhz96-000216-L5; Fri, 02 Oct 2015 12:09:04 +0000 Received: (nullmailer pid 16000 invoked by uid 1000); Fri, 02 Oct 2015 12:08:45 -0000 From: David Bremner To: Allan Streib , notmuch@notmuchmail.org Subject: Re: Bug/Issue: References header doesn't wrap in emacs package In-Reply-To: <87612qwh04.fsf@viking.dsc.soic.indiana.edu> References: <87612qwh04.fsf@viking.dsc.soic.indiana.edu> User-Agent: Notmuch/0.20.2+93~g33c8777 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Fri, 02 Oct 2015 09:08:45 -0300 Message-ID: <87si5t1nhu.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.18 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: Fri, 02 Oct 2015 12:10:19 -0000 Allan Streib writes: > Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.4.1 > > Replying to a message in a deeply nested thread can trigger a complaint: > > sendmail: command failed: 550 5.7.1 Delivery not authorized, message refused: Message is not RFC 2822 compliant > > 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. So the first step is to figure out where to best fix this. As a not so nice workaround, if you remove References from message-hidden-headers (using e.g. customize), you'll be able to hand wrap the references line. d