procmail
[Top] [All Lists]

Re: time zones

1999-05-27 12:31:40
"David W. Tamkin" <dattier(_at_)Mcs(_dot_)Net> writes:
...
Oh well.  Putting it after 'exec' didn't work either, because exec needs to be
followed by the name of an executable (or the basename of one found in $PATH).

Nor does specifying TZ=whatever among procmail's arguments, because it seems
the timestamp update of -f- is done first.  (One cannot do that with IFS,
even if it worked with TZ, because the IFS setting is necessary for inter-
preting the shell commands in .forward.)

One could leave out "exec" and have an extra process waiting around for
procmail to finish.  That's what I'm doing for now.  The alternative is
something like this in the rcfile after TZ is set:
...

How about:

        "|IFS=' '; TZ=EST5EDT; export TZ; exec /usr/local/nuglops/bin/procmail 
-tf- HOME=prod || exit 75"

That should keep the shell from hanging around.  Actually, if you know
the server(s) is running sendmail version 8, you can drop the
assignment to IFS, as sendmail 8 strips the environment of everything
but:

        AGENT=sendmail
        TZ                      # depending on the TimeZoneSpec option
        ISP & SYSTYPE           # on Apollo systems
        SOCK                    # on QNX systems
        anything else configured via "E" lines in the sendmail.cf

The "AGENT=sendmail" assignment is always done to guarantee that the
environment isn't empty, as that chokes many programs and libraries.


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>