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