Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E6DC6431FD0 for ; Sat, 2 Jul 2011 08:53:58 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9S8DQEegDSVK for ; Sat, 2 Jul 2011 08:53:58 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 55DA1431FB6 for ; Sat, 2 Jul 2011 08:53:58 -0700 (PDT) Received: by wyh22 with SMTP id 22so3100699wyh.26 for ; Sat, 02 Jul 2011 08:53:56 -0700 (PDT) Received: by 10.216.235.33 with SMTP id t33mr3829546weq.6.1309622036853; Sat, 02 Jul 2011 08:53:56 -0700 (PDT) Received: from localhost (91.216-242-81.adsl-dyn.isp.belgacom.be [81.242.216.91]) by mx.google.com with ESMTPS id w62sm2109826wec.18.2011.07.02.08.53.55 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 02 Jul 2011 08:53:56 -0700 (PDT) From: Pieter Praet To: Mark Walters , notmuch@notmuchmail.org Subject: Re: Possible bug: wrong from address when forwarding In-Reply-To: References: User-Agent: Notmuch/0.5-315-g34bd5eb (http://notmuchmail.org) Emacs/23.1.50.1 (x86_64-pc-linux-gnu) Date: Sat, 02 Jul 2011 17:53:53 +0200 Message-ID: <87oc1cn0fi.fsf@praet.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Sat, 02 Jul 2011 15:53:59 -0000 --- Either enable `notmuch-always-prompt-for-sender', or apply this quick-fix patch, which uses `name' and `primary_email' as configured in your .notmuch-config if aforementioned isn't enabled. emacs/notmuch-mua.el | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 274c5da..27c6884 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -213,7 +213,9 @@ the From: address first." (user-full-name (car address-components)) (user-mail-address (cadr address-components))) (notmuch-mua-forward-message)) - (notmuch-mua-forward-message))) + (let* ((user-full-name (notmuch-user-name)) + (user-mail-address (notmuch-user-primary-email))) + (notmuch-mua-forward-message)))) (defun notmuch-mua-new-reply (query-string &optional prompt-for-sender) "Invoke the notmuch reply window." -- 1.7.5.4