From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: Gnus Agent and From address of email Date: Tue, 23 Feb 2016 12:58:18 +0000 Message-ID: <87h9gz4m8l.fsf@russet.org.uk> References: <8760xgw6m4.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456232336 2411 80.91.229.3 (23 Feb 2016 12:58:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 12:58:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 13:58:47 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aYCY7-0008B8-TX for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 13:58:44 +0100 Original-Received: from localhost ([::1]:56776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYCY7-0006nd-1S for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 07:58:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYCXo-0006hZ-W6 for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 07:58:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYCXk-0003b2-Tv for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 07:58:24 -0500 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:43394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYCXk-0003aT-Nb for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 07:58:20 -0500 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1aYCXi-0004uR-FG; Tue, 23 Feb 2016 12:58:18 +0000 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1aYCXi-0005Vm-Ih; Tue, 23 Feb 2016 12:58:18 +0000 In-Reply-To: <8760xgw6m4.fsf@gnus.org> (Lars Magne Ingebrigtsen's message of "Tue, 23 Feb 2016 12:36:03 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109270 Archived-At: Lars Magne Ingebrigtsen writes: > phillip.lord@russet.org.uk (Phillip Lord) writes: > >> I change the "from" address for my email a lot. One problem is that when >> using gnus agent, this does not appear to work -- that is the from field >> is set to whatever user-mail-address is configured to at the time that >> the queue is sent, NOT at the time that the email was sent (to the >> queue). This makes offline email less useful as I can only send email >> messages with one from field at a time. > > Hm... looking at the code, I can't see any place where it removes From: > headers when sending the Agent queue, but I haven't actually tested it, > so I may be missing something. > > Could you try `M-x debug-on-entry RET message-send-and-exit', try to > send something, and then go to the sending buffer to see what's in that? I've done this, and the from field appears to be set correctly both inside and outside of the agent. So I've checked the behaviour again with the agent. It looks like I may have been confused by the log messages from msmtp, and that gnus is actually doing the right thing. Oops, sorry for time waste! Phil