From d92e76b01dc923db589f3deafc85f9a1ad58d829 Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Fri, 29 Apr 2016 15:33:56 +0100 Subject: [PATCH] Re: message-default-mail-headers not working in notmuch 0.22 --- 77/21ef960a0ab211ad888f18ea73cf152a700fb6 | 109 ++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 77/21ef960a0ab211ad888f18ea73cf152a700fb6 diff --git a/77/21ef960a0ab211ad888f18ea73cf152a700fb6 b/77/21ef960a0ab211ad888f18ea73cf152a700fb6 new file mode 100644 index 000000000..084a8e583 --- /dev/null +++ b/77/21ef960a0ab211ad888f18ea73cf152a700fb6 @@ -0,0 +1,109 @@ +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 218626DE0355 + for ; Fri, 29 Apr 2016 07:34:09 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.181 +X-Spam-Level: +X-Spam-Status: No, score=-0.181 tagged_above=-999 required=5 + tests=[AWL=-0.114, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, + RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=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 SJGzhufX_Gxt for ; + Fri, 29 Apr 2016 07:34:00 -0700 (PDT) +Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com + [74.125.82.42]) by arlo.cworth.org (Postfix) with ESMTPS id 73D166DE0356 for + ; Fri, 29 Apr 2016 07:34:00 -0700 (PDT) +Received: by mail-wm0-f42.google.com with SMTP id n129so30268118wmn.1 + for ; Fri, 29 Apr 2016 07:34:00 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=dme-org.20150623.gappssmtp.com; s=20150623; + h=to:subject:in-reply-to:references:from:date:message-id:mime-version; + bh=RYf1n/THyuVW+FPvo6KGEzUFqhS722YNfgSHZiq8PIQ=; + b=AkuDA5pIKOc7GcLpkhqrxM3ynux1e+JfeWdMoY1++tV17xmGGGU73ZcQ8ESE5Rg7Hq + pEzjYozfstFtlNOG7JvcKGWQIpa6JzLeJUlXrS73zFVqWDvh6SOWIptgZRo6JnpwCn5L + 1uq8j6FxoMbz4CoVvRpLd6iUH1+hXP2Z92lD67XLpDGKt1LarqimOGvhbTZ3FwO/UtJT + sW+Gd88Y1eEa4QfpxkqFL5QyFm+Akvepw4+Nyy/A9og8hh+fkiOlMKA2gcjKh3VT0eMt + fGg2ym7z9O0Y/4eELgVOZmM44FtNJTWtj1V30q/iZphB2yCHhRU5NnxWkTzmgl8/0/KD + St6Q== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:to:subject:in-reply-to:references:from:date + :message-id:mime-version; + bh=RYf1n/THyuVW+FPvo6KGEzUFqhS722YNfgSHZiq8PIQ=; + b=NIaJz9YwuWcCPr5IrICu7EBUZ/sIlRvIg41M0bCtrIy9yW64emQw/wu4RdxrCZwNLR + CXngvzPQmYZT6hOqpWKI/nJT0iVR9NfdK/Mc8g0SPuG2ubP/6gm/cOrutrBXk0kn30OO + NDxv/T9UvN/OVs86v4Fi8N5CsApiOZzimLwUzOQGNzUStkkLPR/ndJG+vTN8+ktJy/dl + CyoxDR/6f97IHLqdWtF2rDlWp92pKvitzLmS3/7x4pN6TZutlTwSjy45HduqzS+KzmVC + 8zK78kGeCr3YHmnhuDkYLp9XUpX+yQcVcH1d8WQBcMxOo9vru0riuBrTSWQRUFjHBD3d + 0SSA== +X-Gm-Message-State: + AOPr4FXd44pwlB91yWdj5pmHTYl/PMZ6E2VXgbiXdVoeK3pd9EqLnPB2gJsGF2ErPT6kqg== +X-Received: by 10.28.25.67 with SMTP id 64mr4543395wmz.10.1461940438506; + Fri, 29 Apr 2016 07:33:58 -0700 (PDT) +Received: from disaster-area.hh.sledj.net + ([2a01:348:1a2:1:ea39:35ff:fe2c:a227]) + by smtp.gmail.com with ESMTPSA id gt7sm15074119wjc.1.2016.04.29.07.33.57 + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Fri, 29 Apr 2016 07:33:57 -0700 (PDT) +Received: from localhost (disaster-area.hh.sledj.net [local]) + by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 5a52364d; + Fri, 29 Apr 2016 14:33:56 +0000 (UTC) +To: sfischme@uwaterloo.ca, Notmuch Mail +Subject: Re: message-default-mail-headers not working in notmuch 0.22 +In-Reply-To: <87y47wmsfi.fsf@uwaterloo.ca> +References: <87y47wmsfi.fsf@uwaterloo.ca> +From: David Edmondson +Date: Fri, 29 Apr 2016 15:33:56 +0100 +Message-ID: +MIME-Version: 1.0 +Content-Type: text/plain +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: Fri, 29 Apr 2016 14:34:09 -0000 + +On Fri, Apr 29 2016, Sebastian Fischmeister wrote: +> After upgrading to notmuch 0.22, my emacs config seems broken: +> +> (setq message-default-mail-headers "Reply-to: me@example.com\nBcc: me@example.com") +> +> When creating a new mail, it has no header other than "To:" and +> "Subject:". +> +> Since I cannot find any item in the NEWS related to this release, is +> this expected behaviour? + +No, it's not intended. Please try this patch: + +diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el +index 0445975..399e138 100644 +--- a/emacs/notmuch-mua.el ++++ b/emacs/notmuch-mua.el +@@ -338,7 +338,10 @@ modified. This function is notmuch addaptation of + ;; We need to convert any string input, eg from rmail-start-mail. + (dolist (h other-headers other-headers) + (if (stringp (car h)) (setcar h (intern (capitalize (car h)))))))) +- (args (list yank-action send-actions))) ++ (args (list yank-action send-actions)) ++ ;; Cause `message-setup-1' to do things relevant for mail, ++ ;; such as observe `message-default-mail-headers'. ++ (message-this-is-mail t)) + ;; message-setup-1 in Emacs 23 does not accept return-action + ;; argument. Pass it only if it is supplied by the caller. This + ;; will never be the case when we're called by `compose-mail' in -- 2.26.2