unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* smtpmail.el feature request: envelope-sender from From:
@ 2006-09-30 13:06 Justus-bulk
  2006-09-30 17:56 ` Glenn Morris
  2006-10-01  0:04 ` Richard Stallman
  0 siblings, 2 replies; 5+ messages in thread
From: Justus-bulk @ 2006-09-30 13:06 UTC (permalink / raw


Hi -

I'd like the envelope-sender to be taken from the From: field.

This is handy if you have several e-mail addresses, some of which are
aliases and have no associated mail server, and you want to send to
members-only mailing lists that check list membership by
envelope-sender/Return-Path.

This is possible by letting (smtpmail-mail-address (mail-fetch-field
"from")) in smtpmail-send-it, which I use for now with a hacked
version of smtpmail.el.

Of course, this should be configurable, as message.el allows it with
sendmail, see message-sendmail-envelope-from. The same mechanism
should be fairly easily implemented for smtpmail, by replacing my
quick hack by a few more lines of code, perhaps by using
mail-envelope-from in the same way as message-sendmail-envelope-from
(with a 'header value), or by using message-sendmail-envelope-from.

Would this be reasonable?

Besides, why are there two separate variables (mail-envelope-from and
message-sendmail-envelope-from) for seemingly identical purposes?

Cheers,
Justus

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: smtpmail.el feature request: envelope-sender from From:
  2006-09-30 13:06 smtpmail.el feature request: envelope-sender from From: Justus-bulk
@ 2006-09-30 17:56 ` Glenn Morris
  2006-09-30 18:24   ` Justus-bulk
  2006-10-01  0:04 ` Richard Stallman
  1 sibling, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2006-09-30 17:56 UTC (permalink / raw
  Cc: emacs-devel

Justus-bulk@Piater.name wrote:

> I'd like the envelope-sender to be taken from the From: field.
[...]
> The same mechanism should be fairly easily implemented for smtpmail,
> by replacing my quick hack by a few more lines of code, perhaps by
> using mail-envelope-from in the same way as
> message-sendmail-envelope-from (with a 'header value), or by using
> message-sendmail-envelope-from.

Umm, isn't this already implemented in exactly this way in CVS?

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: smtpmail.el feature request: envelope-sender from From:
  2006-09-30 17:56 ` Glenn Morris
@ 2006-09-30 18:24   ` Justus-bulk
  2006-09-30 18:28     ` Chong Yidong
  0 siblings, 1 reply; 5+ messages in thread
From: Justus-bulk @ 2006-09-30 18:24 UTC (permalink / raw


Glenn Morris <rgm@gnu.org> wrote on Sat, 30 Sep 2006 13:56:11 -0400:

> Umm, isn't this already implemented in exactly this way in CVS?

Looks like it in fact. Glad I asked. It seems that this functionality
has been pushed into sendmail.el, and that it is used by
smtpmail.el. I'll hold my breath until the next version of emacs comes
out.

Thanks,
Justus

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: smtpmail.el feature request: envelope-sender from From:
  2006-09-30 18:24   ` Justus-bulk
@ 2006-09-30 18:28     ` Chong Yidong
  0 siblings, 0 replies; 5+ messages in thread
From: Chong Yidong @ 2006-09-30 18:28 UTC (permalink / raw
  Cc: emacs-devel

Justus-bulk@Piater.name writes:

> I'll hold my breath until the next version of emacs comes out.

That would be fatal.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: smtpmail.el feature request: envelope-sender from From:
  2006-09-30 13:06 smtpmail.el feature request: envelope-sender from From: Justus-bulk
  2006-09-30 17:56 ` Glenn Morris
@ 2006-10-01  0:04 ` Richard Stallman
  1 sibling, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2006-10-01  0:04 UTC (permalink / raw
  Cc: emacs-devel

    I'd like the envelope-sender to be taken from the From: field.

We don't need to put options into Emacs itself for everything everyone
might want to do.  If this preference is a peculiar quirk of yours,
you can get what you want by editing the code.

Is there some reason why this is in general the right thing to do?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-10-01  0:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-30 13:06 smtpmail.el feature request: envelope-sender from From: Justus-bulk
2006-09-30 17:56 ` Glenn Morris
2006-09-30 18:24   ` Justus-bulk
2006-09-30 18:28     ` Chong Yidong
2006-10-01  0:04 ` Richard Stallman

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).