Thread View: news.software.nn
4 messages
4 total messages
Started by wills ms 01309
Sat, 29 Jun 1991 17:25
Re: Correcting/Augmenting Mail Headers (was: User setting From: address in sendmail input)
Author: wills ms 01309
Date: Sat, 29 Jun 1991 17:25
Date: Sat, 29 Jun 1991 17:25
41 lines
3328 bytes
3328 bytes
barnett@grymoire.crd.ge.com (Bruce Barnett) writes:
>In article <1991Jun20.022606.1680@shaman.com> jiro@shaman.com (Jiro Nakamura) writes:
>> In article <FWP1.91Jun19183837@Jester.CC.MsState.Edu> fwp1@CC.MsState.Edu
>> (Frank Peters) writes:
>>> I realize how easy it is to spoof via smtp. But I would have thought this
>> Great security hazard.
>We use this bug to work around another bug when sending
>mail inside GNU emacs. But since it doesn't *add* any additional security
^^^^^^^^^---- NN and GNU emacs mail users, please read on.
At my site, it is necessary to override the default Reply-To: field
because my mailhost does not add the domain part. It just sends
user@host (i.e. not user@host.harris.ess.com). The fellow who
suggested that I correct this manually (via nn "mail-headers" and
"new-headers" variables) also pointed out an optional (?)
Return-receipt-to: field which automatically sends an end-to-end
acknowledgement when the mail is delivered (or perhaps when it is
read?). Is this supported by all smtp servers?
Although I recognize the spoofing potential, the Reply-to: and
Return-receipt-to: fields are extremely valuable when used correctly.
I also realize that proper system configuration would take care of
this, but in the absence of a sendmail literate sysadmin, I must do
this myself.
My question is this: How can I enable these features (Reply-to: header
and end-to-end ack) in all my mail, rather than just mail and postings
sent from inside "nn" (e.g. GNU emacs rmail and vm)? Is there a
comp.mail.headers FAQ or internet RFC which describes other header
options available to the user?
--
- Scott
------------------------------------------------------------------------------
M. Scott Wills, Mail Stop: 102-4844 INTERNET: mwills@x102a.ess.harris.com
Harris Corporation UUCP: uunet!x102a!mwills
Government Aerospace Systems Division CCMail: harris.mwills01
P.O. Box 94000 FAX: 407-729-3211
Melbourne, Florida 32902 Voice: 407-729-3283
------------------------------------------------------------------------------
Re: Correcting/Augmenting Mail Headers (was: User setting From: address in sendmail input)
Author: Mike J. Fuller
Date: Mon, 01 Jul 1991 17:23
Date: Mon, 01 Jul 1991 17:23
55 lines
3550 bytes
3550 bytes
>>>>> On 29 Jun 91 17:25:02 GMT, mwills@x102a (wills ms 01309) said:
(stuff deleted)
wills> My question is this: How can I enable these features (Reply-to: header
wills> and end-to-end ack) in all my mail, rather than just mail and postings
wills> sent from inside "nn" (e.g. GNU emacs rmail and vm)? Is there a
wills> comp.mail.headers FAQ or internet RFC which describes other header
wills> options available to the user?
As far as getting the Reply-to: header, this stuff which I hacked out of my
.emacs should do the trick for rmail, vm, etc.:
(setq my-mailhost "sarah.lerc.nasa.gov")
(setq my-mail-address (concat (user-login-name) "@" my-mailhost))
(setq mail-default-reply-to my-mail-address)
I don't know what the "best" way to implement other headers is. I got the
feedmail package that was posted to gnu.emacs.sources a few months ago and did
the following:
(setq my-organization
"Computational Materials Laboratory, NASA Lewis Research Center")
(setq feedmail-last-chance-hook
'(lambda ()
(interactive)
(save-excursion
(set-buffer feedmail-prepped-text-buffer)
(if (and (file-exists-p "~/.sig")
(y-or-n-p "Append ~/.sig? "))
(progn
(goto-char (point-max))
(insert "\n")
(insert-file-contents "~/.sig")))
(goto-char (point-min))
(re-search-forward "^\n")
(backward-char 1)
(if (y-or-n-p "Return receipt? ")
(insert "Return-receipt-to: " my-mail-address "\n"))
(insert "X-Mailer: GNU Emacs " emacs-version)
(insert (if (boundp 'vm-version)
(concat ", VM " vm-version "\n")
"\n"))
(insert "X-Organization: " my-organization "\n")
)))
Also, the RFC which I believe you are interested in is RFC #822, "STANDARD FOR
THE FORMAT OF ARPA INTERNET TEXT MESSAGES".
/-----------------------------------------------------------------------------\
| Mike J. Fuller | Internet: mikef@sarah.lerc.nasa.gov | "I hate |
|----------------| mikef@zippysun.math.uakron.edu | quotations." |
|/\/\/\/\/\/\/\/\| Bitnet: r3mjf1@akronvm | -- R.W. Emerson |
\-----------------------------------------------------------------------------/
Re: Correcting/Augmenting Mail Headers (was: User setting From: address in sendmail input)
Author: Mike J. Fuller
Date: Mon, 01 Jul 1991 17:23
Date: Mon, 01 Jul 1991 17:23
55 lines
3631 bytes
3631 bytes
>>>>> On 29 Jun 91 17:25:02 GMT, mwills@x102a (wills ms 01309) said:
(stuff deleted)
wills> My question is this: How can I enable these features (Reply-to: header
wills> and end-to-end ack) in all my mail, rather than just mail and postings
wills> sent from inside "nn" (e.g. GNU emacs rmail and vm)? Is there a
wills> comp.mail.headers FAQ or internet RFC which describes other header
wills> options available to the user?
As far as getting the Reply-to: header, this stuff which I hacked out of my
.emacs should do the trick for rmail, vm, etc.:
(setq my-mailhost "sarah.lerc.nasa.gov")
(setq my-mail-address (concat (user-login-name) "@" my-mailhost))
(setq mail-default-reply-to my-mail-address)
I don't know what the "best" way to implement other headers is. I got the
feedmail package that was posted to gnu.emacs.sources a few months ago and did
the following:
(setq my-organization
"Computational Materials Laboratory, NASA Lewis Research Center")
(setq feedmail-last-chance-hook
'(lambda ()
(interactive)
(save-excursion
(set-buffer feedmail-prepped-text-buffer)
(if (and (file-exists-p "~/.sig")
(y-or-n-p "Append ~/.sig? "))
(progn
(goto-char (point-max))
(insert "\n")
(insert-file-contents "~/.sig")))
(goto-char (point-min))
(re-search-forward "^\n")
(backward-char 1)
(if (y-or-n-p "Return receipt? ")
(insert "Return-receipt-to: " my-mail-address "\n"))
(insert "X-Mailer: GNU Emacs " emacs-version)
(insert (if (boundp 'vm-version)
(concat ", VM " vm-version "\n")
"\n"))
(insert "X-Organization: " my-organization "\n")
)))
Also, the RFC which I believe you are interested in is RFC #822, "STANDARD FOR
THE FORMAT OF ARPA INTERNET TEXT MESSAGES".
/-----------------------------------------------------------------------------\
| Mike J. Fuller | Internet: mikef@sarah.lerc.nasa.gov | "I hate |
|----------------| mikef@zippysun.math.uakron.edu | quotations." |
|/\/\/\/\/\/\/\/\| Bitnet: r3mjf1@akronvm | -- R.W. Emerson |
\-----------------------------------------------------------------------------/
Re: Correcting/Augmenting Mail Headers (was: User setting From: address in sendmail input)
Author: Piet van Oostrum
Date: Tue, 02 Jul 1991 08:34
Date: Tue, 02 Jul 1991 08:34
39 lines
2624 bytes
2624 bytes
>>>>> mwills@x102a (wills ms 01309) (MSW) writes:
MSW> My question is this: How can I enable these features (Reply-to: header
MSW> and end-to-end ack) in all my mail, rather than just mail and postings
MSW> sent from inside "nn" (e.g. GNU emacs rmail and vm)?
Personally, I have bound a key in mail-mode to do the return-receipt-to
field. I would get sick if this was done automatically.
I have this in my .emacs:
(setq mail-mode-hook
'(lambda ()
(require 'mail-abbrevs)
(use-local-map mail-mode-map)
(abbrev-mode 1)
(define-key mail-mode-map "\C-c\C-f\C-r" 'mail-return-receipt-to)
(define-key mail-mode-map "\C-c\C-l" 'vm-attribution-translate)
(define-key mail-mode-map "\C-c\C-z" 'vm-strip-forward-headers)
))
(defun mail-return-receipt-to ()
"Create a Return-Receipt-To field if it does not yet exist"
(interactive)
(save-excursion
(if (mail-position-on-field "return-receipt-to" t)
nil
(or (mail-position-on-field "Sender" t)
(mail-position-on-field "From" t)
(mail-position-on-field "To" t))
(forward-line 1)
(insert "Return-Receipt-To: " (user-real-login-name) "\n")
)))
--
Piet* van Oostrum, Dept of Computer Science, Utrecht University,
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31 30 531806 Uucp: uunet!mcsun!ruuinf!piet
Telefax: +31 30 513791 Internet: piet@cs.ruu.nl (*`Pete')
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads