🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #1820

Re: Correcting/Augmenting Mail Headers (was: User setting From: address in sendmail input)

#1820
From: Piet van Oostrum
Date: Tue, 02 Jul 1991 08:34
39 lines
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')
Technical Details
Message-ID: <1991Jul02.083417.18809@cs.ruu.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.headers.mbox.zip!gmdzi!unido!mcsun!hp4nl!alchemy!piet
References: <FWP1.91Jun19183837@Jester.CC.MsState.Edu> <1991Jun20.022606.1680@shaman.com> <BARNETT.91Jun21093917@grymoire.crd.ge.com> <6634@trantor.harris-atd.com>

Show Full Headers
Complete Article Headers
Message-ID: <1991Jul02.083417.18809@cs.ruu.nl>
Subject: Re: Correcting/Augmenting Mail Headers (was: User setting From: address in sendmail input)
Date: Tue, 02 Jul 1991 08:34:17 +0000
From: piet@cs.ruu.nl (Piet van Oostrum)
References: <FWP1.91Jun19183837@Jester.CC.MsState.Edu> <1991Jun20.022606.1680@shaman.com> <BARNETT.91Jun21093917@grymoire.crd.ge.com> <6634@trantor.harris-atd.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.headers.mbox.zip!gmdzi!unido!mcsun!hp4nl!alchemy!piet
Newsgroups: comp.mail.sendmail,comp.mail,comp.mail.headers,comp.mail.misc,gnu.emacs.help,gnu.emacs.vm.bug,gnu.emacs.vm.info,news.software.nn
Sender: piet@cs.ruu.nl (Piet van Oostrum)
Reply-To: piet@cs.ruu.nl (Piet van Oostrum)
Followup-To: comp.mail.sendmail
Organization: Dept of Computer Science, Utrecht University, The Netherlands
Lines: 38
In-Reply-To: mwills@x102a (wills ms 01309)