[comp.mail.sendmail] Getting a Return-receipt: line within mail headers

lee@gdc.portal.com (Seng-Poh Lee, Gen DataComm, +1 203 758-1811) (02/20/91)

Does anyone know how to include a "Return-receipt: " line in the header
of a mail message? Xenix mail allows you to do this, but most mail systems
on SYSV and BSD systems don't have this header. Is there any way to force
this line within the headers, short of editing the D.* files in the spool
directory?

----
Seng-Poh Lee				Work:	lee@gdc.portal.com
General DataComm Ind. Inc			...!uunet!portal!gdc!lee
					Home:	lee%splee.uucp@hsi.com

rickert@mp.cs.niu.edu (Neil Rickert) (02/20/91)

In article <4902@gdc.portal.com> lee@gdc.portal.com (Seng-Poh Lee, Gen DataComm, +1 203 758-1811) writes:
>Does anyone know how to include a "Return-receipt: " line in the header
>of a mail message? Xenix mail allows you to do this, but most mail systems
>on SYSV and BSD systems don't have this header. Is there any way to force
>this line within the headers, short of editing the D.* files in the spool
>directory?

 There is a common misconception that the builtin 'mail' command is the
only way of creating mail.  It is possible to create a mail message with
an editor.  Edit 'file' containing:

-------
To: address
Subject: Subject line as needed
Return-Receipt-To: address
	(empty line - not even a single blank or tab)
 Message contents.
-------------

 You can put in various other headers as needed.

 Then type:
	/usr/lib/sendmail -t < file

and the mail will be sent off with the headers you have given, plus any
added by 'sendmail'.

 Other software, such as /bin/mail may also accept messages with prebuilt
headers.

 You don't have to go and edit the UUCP spool files.

jerry@ora.com (Jerry Peek) (02/20/91)

In article <4902@gdc.portal.com> lee@gdc.portal.com (Seng-Poh Lee, Gen DataComm, +1 203 758-1811) writes:
> Does anyone know how to include a "Return-receipt: " line in the header
> of a mail message?

MH (and xmh and other MH "front-ends") will let you put anything you want
in the mail header.  You can make a default template file for all new
messages that has either empty components (for you to fill in) or complete
components (included in all mail messages automatically).  Also, as you
compose a message, MH lets you edit *all* of it, both header and body...
no ~h command needed.

--Jerry Peek, O'Reilly & Associates, jerry@ora.com or uunet!ora!jerry

rudolf@curano.imp.com (Rudolf Kuenzli) (02/21/91)

In <4902@gdc.portal.com> lee@gdc.portal.com (Seng-Poh Lee, Gen DataComm, +1 203 758-1811) writes:

>Does anyone know how to include a "Return-receipt: " line in the header
>....

You may use ELM 2.3 which allows you to define a User line during mail
or where you may set up a file 'elmheaders' which will contain	  
any additional line to your mail headers, like: 		 

Return-Receipt-To: lee@gdc.portal.com

In that case, all your mail would have this line added in the mail
headers.

Hope this will help! There a lot of ftp sites with ELM source... 

-- 
Don Curano The Magician 		  In real life: Rudolf Kuenzli
Mail Address: rudolf@curano.imp.com	  
Employer: What's that good for? 	  Occupation: Any need for?

jdeitch@jadpc.cts.com (Jim Deitch) (02/21/91)

In article <1991Feb20.005232.13673@mp.cs.niu.edu> rickert@mp.cs.niu.edu (Neil Rickert) writes:
>In article <4902@gdc.portal.com> lee@gdc.portal.com (Seng-Poh Lee, Gen DataComm, +1 203 758-1811) writes:
>>Does anyone know how to include a "Return-receipt: " line in the header
>>of a mail message? Xenix mail allows you to do this, but most mail systems
>>on SYSV and BSD systems don't have this header. Is there any way to force
>>this line within the headers, short of editing the D.* files in the spool
>>directory?
>
> There is a common misconception that the builtin 'mail' command is the
>only way of creating mail.  It is possible to create a mail message with
>an editor.  Edit 'file' containing:
>
>-------
>To: address
>Subject: Subject line as needed
>Return-Receipt-To: address
>	(empty line - not even a single blank or tab)
> Message contents.
>-------------
>
> You can put in various other headers as needed.
>
> Then type:
>	/usr/lib/sendmail -t < file
>
>and the mail will be sent off with the headers you have given, plus any
>added by 'sendmail'.
>
> Other software, such as /bin/mail may also accept messages with prebuilt
>headers.
>
> You don't have to go and edit the UUCP spool files.

Or get a mail program that allows you to do such things.  Elm comes to
mind and so does Mush.

Jim

-- 
ARPANET:    jadpc!jdeitch@nosc.mil
INTERNET:   jdeitch@jadpc.cts.com
UUCP:	    nosc!jadpc!jdeitch