ietf-mta-filters
[Top] [All Lists]

Re: variables draft (draft-homme-sieve-variables-00.txt)

2003-04-08 06:37:57

Kjetil Torgrim Homme wrote:
[ned(_dot_)freed(_at_)mrochek(_dot_)com]:

actually, with ${timezone} available, the fallback can be implemented
by the user.  we simply need to mandate that the time offset syntax is
supported as a valid "time zone".

    setdate "US-Eastern";
    if not string "${timezone}" "US-Eastern" {
        setdate "-0500";
    }

Isn't "X/Y", as in "US/Eastern", the accepted format for compound timezone names?


Question:

Should the date variables ALWAYS be preset without executing the setdate command?

Other languages have benefitted from namespaces. It might be worthwhile exploring that concept, particularly if there are preset variables. For example, instead of the preset variable name ${year}, you'd instead have ${time.year}. Thoughts?

        Tony Hansen
        tony(_at_)att(_dot_)com


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