SUMMARY: Mail customization of Reply-To field ?

From: Ole Holm Nielsen (ohnielse@ltf.dth.dk)
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 sendmail.cf, but this seems not to have the desired
functionality.

The hack that wins the price is due to Dave Mitchell
<D.Mitchell@dcs.sheffield.ac.uk>:

------------------------------------------------------------------------------
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:

#!/bin/sh
# From: Dave Mitchell <D.Mitchell@dcs.sheffield.ac.uk>
# add a Reply-to line before forwarding mail to /usr/lib/sendmail.
# add also a signature automatically.

(
echo "Reply-to: Ole Holm Nielsen <Ole.Holm.Nielsen@ltf.dth.dk>"
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: Ole.Holm.Nielsen@ltf.dth.dk"
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

   info-mm-request@columbia.edu (Internet)
   info-mm-request%cunixf.cc.columbia.edu@cuvma.cc.columbia.edu (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
cunixf.cc.columbia.edu (128.59.40.130), in the mm subdirectory.
------------------------------------------------------------------------------

Thanks to:
Dan Transue odt@base.bellcore.com
Axel.Eble@imbi.uni-freiburg.de (Axel Eble)
Dave Mitchell <D.Mitchell@dcs.sheffield.ac.uk>
shipley@kizmiaz.tcs.com
Jeff Nieusma <nieusma@cs.Colorado.EDU>
vasey@mcc.com (Ron Vasey)
Melissa Metz <melissa@broccoli.cc.columbia.edu>
kquinlan@edg.cv.co.uk (Kevin Quinlan)

With best regards,
 
Ole Holm Nielsen
Laboratory of Applied Physics, Building 307
Technical University of Denmark, DK-2800 Lyngby, Denmark
E-mail: Ole.Holm.Nielsen@ltf.dth.dk
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