procmail
[Top] [All Lists]

Re: .forward and parameter passing

1997-10-14 12:24:22

| My actual timezone varies as I travel, and I wish to have my mail forwarded
| based on the time of day.

If you travel and need to have TZ match the timezone of your current
location, that's a pain no matter what.

| I have no trouble accessing the server and changing a parameter or file
| setting, either in .procmailrc or in .forward.

If you don't mind changing your .procmailrc when you change time zones, then
you could use a variable assigned earlier in the rcfile.

In fact, I don't understand why just setting TZ doesn't work.  But I'd set
it in the .procmailrc rather than the .forward

I just had to work on a script (not procmail) that had

export TZ=GMT
<do something with 'date'>
export TZ=EST5

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