all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Default for the envelope From in smtpmail.el
Date: Sat, 11 Aug 2012 13:52:29 -0400	[thread overview]
Message-ID: <1usjbt9uzm.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <83zk62c56n.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 11 Aug 2012 09:29:20 +0300")

Eli Zaretskii wrote:

> Sorry, I cannot figure this out, neither the nature of the problem nor
> the details of the proposed solution.  Can you spell that out?

You are writing an email. The From: header has whatever value it has.
Either it came from user-mail-address, or you edited it in the mail
composition buffer to say what you wanted it to say.

Now you send it. The envelope from address (which is used eg for the
MAIL FROM command sent to the stmp server) should default to whatever
was in the From: header. At the moment, it effectively defaults to
user-mail-address. If this is not the same as From:, you can get
confusing failures to send the mail.

If From: is the same as user-mail-address,, then the change has no
impact on you.

> In particular, is the proposal to stop using user-mail-address, or
> stop using it in smtpmail.el only?

No.

> If the proposal is for not using it only in smtpmail.el, then we need
> to verify that there are no valid use cases without a 'From:' header
> in the current buffer.  Or maybe use 'From:' if it exists and fall
> back on the existing machinery if not.

The proposal is effectively:

(setq mail-specify-envelope-from t
      mail-envelope-from 'header)

If you look at the start of smtpmail-send-it, this would do what you
suggest.



  reply	other threads:[~2012-08-11 17:52 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-05 15:16 Default for the envelope From in smtpmail.el Lars Magne Ingebrigtsen
2011-07-05 17:16 ` Eli Zaretskii
2011-07-05 19:40   ` Juanma Barranquero
2011-07-05 20:33     ` Eli Zaretskii
2011-07-06  1:30 ` Tim Cross
2012-08-11  1:15 ` Glenn Morris
2012-08-11  6:29   ` Eli Zaretskii
2012-08-11 17:52     ` Glenn Morris [this message]
2012-08-11 18:06       ` Glenn Morris
2012-08-12  0:21         ` Rasmus
2012-08-12  0:19       ` Stephen J. Turnbull
2012-08-12  0:42         ` chad
2012-08-12  2:08           ` Glenn Morris
2012-08-12  2:15             ` Glenn Morris
2012-08-12  3:06             ` chad
2012-08-12 15:02               ` Stephen J. Turnbull
2012-08-12 17:38                 ` chad
2012-08-13  3:43                   ` Stephen J. Turnbull
2012-09-04 13:13                     ` Nix
2012-09-05  1:30                       ` Stephen J. Turnbull
2012-09-05  9:14                         ` Nix
2012-09-04 15:49       ` Lars Ingebrigtsen
2012-09-04 16:01         ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1usjbt9uzm.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.