From: Michal Sojka Date: Sun, 1 May 2016 08:38:18 +0000 (+0200) Subject: Re: message-default-mail-headers not working in notmuch 0.22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4362e4948567f38ada7d0c081f8bd1062f8f98d1;p=notmuch-archives.git Re: message-default-mail-headers not working in notmuch 0.22 --- diff --git a/40/e6fec637b5f552f02b970ad2becba58f7ff3ea b/40/e6fec637b5f552f02b970ad2becba58f7ff3ea new file mode 100644 index 000000000..be141c8a9 --- /dev/null +++ b/40/e6fec637b5f552f02b970ad2becba58f7ff3ea @@ -0,0 +1,92 @@ +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 4FF946DE025F + for ; Sun, 1 May 2016 01:46:58 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -1.62 +X-Spam-Level: +X-Spam-Status: No, score=-1.62 tagged_above=-999 required=5 tests=[AWL=0.690, + RCVD_IN_DNSWL_MED=-2.3, + 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 wLD3VhdbV5q8 for ; + Sun, 1 May 2016 01:46:49 -0700 (PDT) +X-Greylist: delayed 504 seconds by postgrey-1.35 at arlo; + Sun, 01 May 2016 01:46:49 PDT +Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) + by arlo.cworth.org (Postfix) with ESMTP id 5262B6DE01BE + for ; Sun, 1 May 2016 01:46:49 -0700 (PDT) +Received: from localhost (unknown [192.168.200.7]) + by max.feld.cvut.cz (Postfix) with ESMTP id 513AD5CD7FC; + Sun, 1 May 2016 10:38:23 +0200 (CEST) +X-Virus-Scanned: IMAP STYX AMAVIS +Received: from max.feld.cvut.cz ([192.168.200.1]) + by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new, port 10044) + with ESMTP id zuTW4glYTXiP; Sun, 1 May 2016 10:38:21 +0200 (CEST) +Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) + by max.feld.cvut.cz (Postfix) with ESMTP id 8C3E05CD7EF; + Sun, 1 May 2016 10:38:20 +0200 (CEST) +Received: from wsh by steelpick.2x.cz with local (Exim 4.87) + (envelope-from ) + id 1awmtO-0007UM-Ng; Sun, 01 May 2016 10:38:18 +0200 +From: Michal Sojka +To: David Edmondson , sfischme@uwaterloo.ca, + Notmuch Mail +Subject: Re: message-default-mail-headers not working in notmuch 0.22 +In-Reply-To: +References: <87y47wmsfi.fsf@uwaterloo.ca> +User-Agent: Notmuch/0.21+30~g55c056a (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Sun, 01 May 2016 10:38:18 +0200 +Message-ID: <87y47utbph.fsf@steelpick.2x.cz> +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: Sun, 01 May 2016 08:46:58 -0000 + +On Fri, Apr 29 2016, David Edmondson wrote: +> 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)) + +Yes, this seems to be reasonable thing to do. Thanks. + +-Michal