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

Re: variables: open issue c) NOTIFY compatibility

2003-05-02 05:31:14

I liked the rest of your comments, but this one I disagree with:

On Fri, May 02, 2003 at 01:46:17AM +0200, Kjetil Torgrim Homme wrote:
the one thing missing from variables is the ability to
truncate string values, which is done in NOTIFY using the syntax
$var[n]$.  in variables, you can simulate it using regex:

  require ["variables", "regex"];
  if header "Subject" :regex "^(.{,200})" {
    set "short" "${1}";
  }

this does seem a bit hackish.  we could instead do something like

  if header "Subject" :matches "*" {
    set :maxlength 200 "short" "${1}";
  }

I'd be happier to just use the existing regex mechanism.

It's what someone familiar with regular expressions would
turn to naturally and already remembers from other languages;
the new mechanism would be unfamiliar to all.

Jutta

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