Re: [PATCH] emacs: make use of `message-make-from'
authorMark Walters <markwalters1009@gmail.com>
Sun, 10 Apr 2016 10:05:14 +0000 (11:05 +0100)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:21:34 +0000 (16:21 -0700)
ef/88b42829aba757d882849c5d551b73ef59aa83 [new file with mode: 0644]

diff --git a/ef/88b42829aba757d882849c5d551b73ef59aa83 b/ef/88b42829aba757d882849c5d551b73ef59aa83
new file mode 100644 (file)
index 0000000..d8b497d
--- /dev/null
@@ -0,0 +1,138 @@
+Return-Path: <markwalters1009@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id A08BB6DE028C\r
+ for <notmuch@notmuchmail.org>; Sun, 10 Apr 2016 07:21:07 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.04\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.04 tagged_above=-999 required=5 tests=[AWL=-0.546,\r
+  DATE_IN_PAST_03_06=1.076, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
+ DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,\r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,\r
+ SPF_PASS=-0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 399FdkkdsdT8 for <notmuch@notmuchmail.org>;\r
+ Sun, 10 Apr 2016 07:20:59 -0700 (PDT)\r
+Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com\r
+ [74.125.82.66]) by arlo.cworth.org (Postfix) with ESMTPS id A620E6DE0008 for\r
+ <notmuch@notmuchmail.org>; Sun, 10 Apr 2016 07:20:58 -0700 (PDT)\r
+Received: by mail-wm0-f66.google.com with SMTP id n3so15576608wmn.1\r
+ for <notmuch@notmuchmail.org>; Sun, 10 Apr 2016 07:20:58 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+ :mime-version; bh=8opu+j1k5+v/V38M3vaXFSrRrUx4RtIZciMG6SuxzoA=;\r
+ b=jwlaKzlh0TmqQSyEbioIUJ8rAfjPeEj5Zi+GIbKN1WIdBHHi8R56bEQKooV52C4lwQ\r
+ uwOMsfoaZYOSsTfluT2vg/khfI7mRuErhXMYKtEhpWhVfkxGio1KDFrSXSvV+M6SxI87\r
+ dpKLgsTvqxOpc2cOdSO22sffYjzqviXlB8BOwscuiW9BSjHrJ6u/Uts8oGNG7IMDyyLr\r
+ nmjqrVsEpC7Mc6BrUcitpgj3va7tA5eyXpC02zdVB3zOT+nIbFDggWPOOE4Q6rGY6Iy8\r
+ xQrEHCVi/tFjOsjjiax2hG5CrCbrwSnAz8Tc5XBgfaxGyLMenUjN6Y0sxNlNOk7Kh6e0\r
+ YqJQ==\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:subject:in-reply-to:references\r
+ :user-agent:date:message-id:mime-version;\r
+ bh=8opu+j1k5+v/V38M3vaXFSrRrUx4RtIZciMG6SuxzoA=;\r
+ b=VbNM8Gv9YgzOhXGub/ohYVrWKzC3SYe3UZqZu1Z95vC4R6uja+Mu6B6H9O5C/rc/1N\r
+ sD2uf93ECyqBWtM1JqVExdbyLBZ8N+cofBwrT/pFmXYm471mO8hye39ghPBJpM2xoktu\r
+ Mc//YX0TkOs2apVw+HIEl4GFQLJ9/PU4xavGIIAYVcMTfdbccxtcJ1UQvSrknG+EUwaT\r
+ S/F3rhJo0KDK0lNGG/devSx6tE6BV1Pp+rAdaDtvony0NmihpAZIXJXoBPz1D+4BoGvX\r
+ woFFwuV8/aAl9A+Yf6Xlpf5BtV6OYWj4gnadOw3Dzo2Etf8brJym4H8QfK1W/JiyFFAd\r
+ YNXw==\r
+X-Gm-Message-State:\r
+ AD7BkJKIYDrgp9wa3iHk8y6FMgdfRGcLK/2qvoWMUNCiLHdtxaMrZJjDmUIsrzZhujDbmw==\r
+X-Received: by 10.194.112.167 with SMTP id ir7mr18690700wjb.14.1460298057308; \r
+ Sun, 10 Apr 2016 07:20:57 -0700 (PDT)\r
+Received: from localhost ([92.54.140.178])\r
+ by smtp.gmail.com with ESMTPSA id 188sm12600783wmk.6.2016.04.10.07.20.56\r
+ (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sun, 10 Apr 2016 07:20:56 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: David Edmondson <dme@dme.org>, aeuii@posteo.de, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] emacs: make use of `message-make-from'\r
+In-Reply-To: <m2potxr9gt.fsf@dme.org>\r
+References: <86h9fbwzcw.fsf@posteo.de> <m2potxr9gt.fsf@dme.org>\r
+User-Agent: Notmuch/0.21+17~g6d0b613 (http://notmuchmail.org) Emacs/24.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sun, 10 Apr 2016 11:05:14 +0100\r
+Message-ID: <877fg5kcdh.fsf@qmul.ac.uk>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 10 Apr 2016 14:21:07 -0000\r
+\r
+\r
+\r
+\r
+On Sun, 10 Apr 2016, David Edmondson <dme@dme.org> wrote:\r
+> On Fri, Apr 08 2016, aeuii@posteo.de wrote:\r
+>> Please put my address in CC when replying.  Thanks!\r
+>\r
+> Looks good.\r
+\r
+I agree.\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+>\r
+>> From 4b9ab261a0ea8a31065e310c5150f522be86d37b Mon Sep 17 00:00:00 2001\r
+>> From: stefan <aeuii@posteo.de>\r
+>> Date: Fri, 8 Apr 2016 22:47:06 +0200\r
+>> Subject: [PATCH] emacs: make use of `message-make-from'\r
+>>\r
+>> Will respect `mail-from-style'.\r
+>> ---\r
+>>  emacs/notmuch-mua.el | 6 +++---\r
+>>  1 file changed, 3 insertions(+), 3 deletions(-)\r
+>>\r
+>> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
+>> index cfdac0e..935cbd3 100644\r
+>> --- a/emacs/notmuch-mua.el\r
+>> +++ b/emacs/notmuch-mua.el\r
+>> @@ -318,8 +318,8 @@ modified. This function is notmuch addaptation of\r
+>>     (push (cons 'User-Agent user-agent) other-headers))))\r
+>>  \r
+>>    (unless (assq 'From other-headers)\r
+>> -    (push (cons 'From (concat\r
+>> -                  (notmuch-user-name) " <" (notmuch-user-primary-email) ">")) other-headers))\r
+>> +    (push (cons 'From (message-make-from\r
+>> +                  (notmuch-user-name) (notmuch-user-primary-email))) other-headers))\r
+>>  \r
+>>    (notmuch-mua-pop-to-buffer (message-buffer-name "mail" to)\r
+>>                          (or switch-function (notmuch-mua-get-switch-function)))\r
+>> @@ -393,7 +393,7 @@ the From: header is already filled in by notmuch."\r
+>>         (ido-completing-read (concat "Sender address for " name ": ") addrs\r
+>>                              nil nil nil 'notmuch-mua-sender-history\r
+>>                              (car addrs))))\r
+>> -      (concat name " <" address ">"))))\r
+>> +      (message-make-from name address))))\r
+>>  \r
+>>  (put 'notmuch-mua-new-mail 'notmuch-prefix-doc "... and prompt for sender")\r
+>>  (defun notmuch-mua-new-mail (&optional prompt-for-sender)\r
+>> -- \r
+>> 2.7.4\r
+>>\r
+>> _______________________________________________\r
+>> notmuch mailing list\r
+>> notmuch@notmuchmail.org\r
+>> https://notmuchmail.org/mailman/listinfo/notmuch\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> https://notmuchmail.org/mailman/listinfo/notmuch\r