From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 3749C6DE035A for ; Sun, 29 Jan 2017 02:04:47 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.069 X-Spam-Level: X-Spam-Status: No, score=0.069 tagged_above=-999 required=5 tests=[AWL=-0.061, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] 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 KghaLr5fcHjl for ; Sun, 29 Jan 2017 02:04:46 -0800 (PST) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by arlo.cworth.org (Postfix) with ESMTPS id 007066DE0319 for ; Sun, 29 Jan 2017 02:04:45 -0800 (PST) Received: by mail-wm0-f45.google.com with SMTP id r126so2561343wmr.1 for ; Sun, 29 Jan 2017 02:04:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=cwgJFuYTujESVU4VDIka/cnLVUNnzhC8ZfVLiKpHqpo=; b=MFwgC7QsuSbcKqTdr842/fQ7jQfMbmpVigKvDjPy8+nKUPtMdY1Ud4Lf9jHZ5zoBf+ JtVp7yj5kR5JVmsB9puyn+8lzeiAwKO55ZXAicA1ZFXIyAMe81HEQ1LCXOCR5KtBiMqa yEnDtyFGk9cBMZNo4F5nAaGFKy/Hyn8JUAAoM7in1RFiyjR5xHW6cO0FIU3gaXb+sEYe a0tl8LvsuYfr6z8G0B+73T1Sp5r/4kui7BDDCX7IMaB7qpJpPi6fTpl5Q0J/4dxNRQvr Ysic2CrWrnlt2ACiZRHpVkUYaj14vfCFgUzChlcr6cOGibw4peOxH0GSYHSKvn2eW4cR lNLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cwgJFuYTujESVU4VDIka/cnLVUNnzhC8ZfVLiKpHqpo=; b=EUS7MJpwv0Y4Bf9i0PDV2pIrxELP/yb+B/MuVyzBIE+B9hQnY3kFNGtImGy0aF9iKz 9p3tZU/P9ZOu2EbQN1cBsWrP5Vkw1YNbjMsl5dqdCjnI4eBZdcSjTNHWBenA71Fgziq2 XZInTv9UxfiddV9WoJAshSkbDlwldaFKyP7hlxCwJoRAb6jaNO1JE0UvcZ4LZ4VOi52X z2NvbZcRJDnrOVRjDLGC5BplUf+QPqUfCegqf27C9AupgJIimdxxSUTkI9gCEkB5EtCH EHueMfaCPEF/ZeQOaksCY122aJkbpRieTkHlCL71yN0QTtA0MGU4lkoNAuvU/dl1XY8q xXPQ== X-Gm-Message-State: AIkVDXKZOtl0qYtRdrmnMUXxdpeMJbQ19vuVkByR04ZuYyyGBvY15W+5fxC5fvAjTZOTbA== X-Received: by 10.28.55.199 with SMTP id e190mr7500500wma.92.1485684284299; Sun, 29 Jan 2017 02:04:44 -0800 (PST) Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) by smtp.gmail.com with ESMTPSA id y30sm17008452wrc.23.2017.01.29.02.04.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Jan 2017 02:04:43 -0800 (PST) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH 0/2] emacs: Fold long headers when sending Date: Sun, 29 Jan 2017 10:04:39 +0000 Message-Id: <1485684281-2760-1-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 2.1.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Sun, 29 Jan 2017 10:04:47 -0000 This pair of patches add a test for folding long headers, and backport the bugfix from emacs master. This fixes the bug reported in id:87612qwh04.fsf@viking.dsc.soic.indiana.edu The fix in emacs master (77bbca8c82f6e553c42abbfafca28f55fc995d00) runs the folding function just before message-header-hook, so this fix should give almost exactly the same behaviour. Since message--fold-long-headers was introduced in the same commit this should mean we do not apply the fix for any version of emacs which it already has it. I don't know whether my bash in the test suite is sufficiently portable, so if anyone who knows about that could check I would be grateful. (For example, is seq -s " " 1 1000 standard?) Best wishes Mark Mark Walters (2): Test: emacs: test for folding long headers. emacs: compat: backport fix for folding long headers when sending emacs/notmuch-compat.el | 28 +++++++++++++++--- test/T310-emacs.sh | 78 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+), 4 deletions(-) -- 2.1.4