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 AD56C6DE02C2 for ; Sun, 10 Apr 2016 04:26:23 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.173 X-Spam-Level: X-Spam-Status: No, score=-0.173 tagged_above=-999 required=5 tests=[AWL=-0.106, 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 j5dCGV3vWVLN for ; Sun, 10 Apr 2016 04:26:15 -0700 (PDT) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by arlo.cworth.org (Postfix) with ESMTPS id 0FD866DE00BD for ; Sun, 10 Apr 2016 04:26:14 -0700 (PDT) Received: by mail-wm0-f53.google.com with SMTP id v188so57366318wme.1 for ; Sun, 10 Apr 2016 04:26:14 -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=ixwiNx28fXHVKLLJNfMvb6/O2IJnQu7rl3WJCd4nu6E=; b=MHP5cjtx2JeHlKS2mDhPXu1ItaA/vmCIVBzOd8jX60NMep+CvbEnXazsTXyatSX2XP tmq4umvR0Ul5z0hVlKkFzrK5M1UN+goOTI7Ovveg923HhYHyZeOlFHSfATQvSTH+V8e/ /IoJuGtMjIf+qdioeRU73kFFC599Q9WCOjNYDqMVpD0nfQ7CyNQTwySA+S+439hzBAhB YR82z7mB5cbDuX+XZCq45oSIU+WcpEaiyS/tTm7/InzFR2JFVLpY2cQfNdKZbdR32+i0 Sz9ynFxb0IHUFIpRyWAtKJtdmizDgPE8ysnU3P3i7BphzSX+meRwf88P/bKg6B1+juEd CMQg== 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=ixwiNx28fXHVKLLJNfMvb6/O2IJnQu7rl3WJCd4nu6E=; b=UE67IyDAse1s4i9AH8ZW7WfLI2LP3NziKLvpGkWwvKHD4ZXN2E82KGjVsQtD9Px8MQ UCXRHOf1gCEPgMb8iTGG12vAhpvkVI78xLnhOnLBQ4a7GN/IqHVs840F2j/JwW7JOeW/ NCpjgc9STdtOxgfXLQKdEmuWRns0do4Yc4564+A2yEBMXxA2xVcajEKR3c7w7vZjnocK 2loPrTZRQT3+7QynbDB/+FdoISFM2SQQLoNXu/zskpOwNOpmF82/raS8UmnMQkiGj1CF L8PujSn5att95/Mhp5g9+VSMXyfOMpXxkOyWO89qc8goVCw4aZqiMrB1QYCTvQjXQzGG 7Igg== X-Gm-Message-State: AD7BkJJYLq4X/Uf4+0y4E2gghX1NjWWC06b7YlH7Z98Wfr47s/02WTzwyBaaVNqN3ebD/A== X-Received: by 10.194.78.83 with SMTP id z19mr18312520wjw.5.1460287573076; Sun, 10 Apr 2016 04:26:13 -0700 (PDT) Received: from disaster-area.hh.sledj.net ([2a01:348:1a2:1:ea39:35ff:fe2c:a227]) by smtp.gmail.com with ESMTPSA id d1sm11894959wmh.18.2016.04.10.04.26.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Apr 2016 04:26:11 -0700 (PDT) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id a78f7279; Sun, 10 Apr 2016 11:26:10 +0000 (UTC) To: aeuii@posteo.de, notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: make use of `message-make-from' In-Reply-To: <86h9fbwzcw.fsf@posteo.de> References: <86h9fbwzcw.fsf@posteo.de> From: David Edmondson Date: Sun, 10 Apr 2016 12:26:10 +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: Sun, 10 Apr 2016 11:26:23 -0000 On Fri, Apr 08 2016, aeuii@posteo.de wrote: > Please put my address in CC when replying. Thanks! Looks good. > 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