Confirmation email

Gert Doering (gert@greenie.muc.de)
Sat, 19 Dec 1998 01:16:19 +0100


Hi,

I'd use a wrapper script (instead of execmail) that will do nothing more
than:

#!/bin/sh
( echo "Date: `date +..."  # output date in the desired format 
  cat -                    # pass through input data
) | /usr/lib/mail/execmail $@

and specify that script als "MAILER".

gert


On Fri, Dec 18, 1998 at 09:25:48AM -0800, Devin Redlich wrote:
> Sorry if this isn't a specific mgetty question, but it's become quite
> irritating.  I've defined MAILER in policy.h to be /usr/lib/mail/execmail
> (on SCO OS5).  When a fax is sent or received, a confirmation email is sent
> using execmail.  The problem is that the Date: header on the email is in
> GMT, and I want it to be in my local time (PST).  The TZ env variable is
> set properly, and email sent using the mail(C) utility has the correct time
> on it.
> 
> I could hack both faxrec.c and faxrunqd to insert the Date: themselves, but
> then I'd have to do this for every new version that comes out.  I'd rather
> fix execmail if possible.
> 
> Thx.
> 
> __
> Devin Redlich
> devin@pctc.com

-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de