SUMMARY: Mail customization of Reply-To field ?

From: Ole Holm Nielsen (
Date: Wed Nov 13 1991 - 11:55:16 CST

Dear fellow sun managers,

My original question:

>When we deliver mail (by the regular SunOS sendmail), it is frequently
>desirable to customize the "Reply-To:" field on a user basis, i.e.,
>a user should be able to specify in the .mailrc file that he wants
>any replies to be sent to an address different from the default generated
>by sendmail.
>I have looked through the documentation on mail, sendmail and mailtool
>without finding any solution. Can anyone help ?

Several people responded: don't use sendmail use {mh,xmh,elm,mm},
others pointed to the OpenWindows mailtool having "Custom headers"
(where you have to type in the reply-to every time :-(( ). Some
suggested hacking, but this seems not to have the desired

The hack that wins the price is due to Dave Mitchell

In $HOME/.mailrc you can specify an alternative script to be used in
stead of /usr/lib/sendmail, like this:

set sendmail=.sendmail

(assuming that the script is the executable $HOME/.sendmail). The script
contains the following:

# From: Dave Mitchell <>
# add a Reply-to line before forwarding mail to /usr/lib/sendmail.
# add also a signature automatically.

echo "Reply-to: Ole Holm Nielsen <>"
cat -
echo " "
echo "Ole Holm Nielsen"
echo "Laboratory of Applied Physics, Building 307"
echo "Technical University of Denmark, DK-2800 Lyngby, Denmark"
echo "E-mail:"
echo "Telephone: \(+45\) 42 88 24 88 ext. 3187"
echo "Telefax: \(+45\) 45 93 23 99"
) | /usr/lib/sendmail $*


A note for those that are interested:

The mm mailer can be got from Columbia University:

MM is currently just out of Beta Test and is actively worked on. If
you wish to hear about new versions and patches, please send mail to (Internet) (Bitnet)
   ...rutgers!columbia!info-mm-request (Usenet)

and we'll add you to our list of people involved in MM.

MM is currently available via anonymous ftp from (, in the mm subdirectory.

Thanks to:
Dan Transue (Axel Eble)
Dave Mitchell <>
Jeff Nieusma <nieusma@cs.Colorado.EDU> (Ron Vasey)
Melissa Metz <> (Kevin Quinlan)

With best regards,
Ole Holm Nielsen
Laboratory of Applied Physics, Building 307
Technical University of Denmark, DK-2800 Lyngby, Denmark
Telephone: \(+45\) 42 88 24 88 ext. 3187
Telefax: \(+45\) 45 93 23 99

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:17 CDT