Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c1a1fd60
Commit
c1a1fd60
authored
Jul 06, 2001
by
Gerd Moellmann
Browse files
(mail-specify-envelope-from): Doc fix.
(mail-envelope-from): New user option. (sendmail-send-it): Use it.
parent
68372be1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/mail/sendmail.el
lisp/mail/sendmail.el
+14
-5
No files found.
lisp/ChangeLog
View file @
c1a1fd60
2001-07-06 Simon Josefsson <jas@extundo.com>
* mail/sendmail.el (mail-specify-envelope-from): Doc fix.
(mail-envelope-from): New user option.
(sendmail-send-it): Use it.
2001-07-06 Vinicius Jose Latorre <vinicius@cpqd.com.br>
* ps-print.el: Use locale dependant date to print date in header. Doc
...
...
lisp/mail/sendmail.el
View file @
c1a1fd60
...
...
@@ -67,7 +67,8 @@ controlled by a separate variable, `mail-specify-envelope-from'."
;;;###autoload
(defcustom mail-specify-envelope-from nil
"
*If
non-nil,
specify
the
envelope-from
address
when
sending
mail.
The
value
used
to
specify
it
is
whatever
is
found
in
`
user-mail-address
'.
The
value
used
to
specify
it
is
whatever
is
found
in
`
mail-envelope-from
',
with
`
user-mail-address
'
as
fallback.
On
most
systems,
specifying
the
envelope-from
address
is
a
privileged
operation.
"
...
...
@@ -75,6 +76,14 @@ is a privileged operation."
:type 'boolean
:group 'sendmail)
(defcustom mail-envelope-from nil
"
*If
non-nil,
designate
the
envelope-from
address
when
sending
mail.
If
this
is
nil
while
`
mail-specify-envelope-from
'
is
non-nil,
the
content
of
`
user-mail-address
'
is
used.
"
:version "
21.1
"
:type 'boolean
:group 'sendmail)
;;;###autoload
(defcustom mail-self-blind nil "
\
*Non-nil
means
insert
BCC
to
self
in
messages
to
be
sent.
...
...
@@ -801,8 +810,7 @@ external program defined by `sendmail-program'."
(
mailbuf
(
current-buffer
))
(
program
(
if
(
boundp
'sendmail-program
)
sendmail-program
"/usr/lib/sendmail"
))
(
originator
user-mail-address
))
"/usr/lib/sendmail"
)))
(
unwind-protect
(
save-excursion
(
set-buffer
tembuf
)
...
...
@@ -968,8 +976,9 @@ external program defined by `sendmail-program'."
(append (list (point-min) (point-max)
program
nil errbuf nil "-oi")
(and mail-specify-envelope-from
(list "-f" originator))
(and mail-specify-envelope-from
(list "-f" (or mail-envelope-from
user-mail-address)))
;;; ;; Don't say "from root" if running under su.
;;; (and (equal (user-real-login-name) "root")
;;; (list "-f" (user-login-name)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment