procmail
[Top] [All Lists]

Re: original date (again)

2001-09-08 15:47:42
Martin McCarthy <marty(_at_)ancient-scotland(_dot_)co(_dot_)uk> writes:
...
As a side note -- the -u is to say that UTC should be used rather than a
timezone.  Not all versions of 'touch' understand that.  If yours
doesn't you could try something like:

TRAP='TZ=GMT touch -t...etc

That won't work: procmail won't know to use a shell, so it'll try to
invoke a command "TZ=GMT", which will fail, of course.  The solution is
to put a semi-colon at the end of the TRAP assignment:

        TRAP = 'TZ=UTC touch -t $TOUCHTIME $LASTFOLDER ;'

(Help stamp out the obsolete GMT abbreviation!)

(You could also put the TZ assignment in the rcfile itself, but then
it would affect procmail's log and all the other programs invoked by
procmail, so I don't recommend doing that.)


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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