Get the MAIL FROM from the From: header if no domain is configured
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 9 Feb 2012 22:42:12 +0000 (23:42 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 9 Feb 2012 22:42:12 +0000 (23:42 +0100)
commit4c7e65bf4f3fb9d24ec23f68047486c3c182ff65
treeb84674d1a59e99e203e6c8747b9b63ff2a60614f
parentf3934f6fef7316982750c311b27961bd31109baa
Get the MAIL FROM from the From: header if no domain is configured

* mail/smtpmail.el (smtpmail-user-mail-address): New function.
(smtpmail-via-smtp): Use it, or fall back on the From address.
(smtpmail-send-it): Ditto.
lisp/ChangeLog
lisp/mail/smtpmail.el