On Sat, May 14, 2022 at 04:54:01PM +0200, Michael Storz wrote: > And the last point is modifier functions, like Henrik > implemented for the HEADER tag: :addr, :name, :trim, :base64, :domain, :lc, > :uc, :pop, :first, you name it. It would be best if these modifier functions > could be registered by a plugin and then used similarly to eval functions, > which are also registered and then used.
I think you might be little bit confused about what is going on here. First of all, no such thing as "tag modifiers" similar to :addr exists as you imply. Some tags in the past have indeed been made as if they act as a "function", and take some parameter, for example: _HAMMYTOKENS(N)_ the N most significant hammy tokens (default, 5) _TESTS(,)_ tests hit separated by "," (or other separator) _HEADER(NAME)_ includes the value of a message header. value is the same as is found for header rules (see elsewhere in this doc) All the :addr :name modifiers you refer to, are specific to HEADER RULE SELECTOR ($pms->get) and have absolutely nothing to do with tags. Proposing that all tags could accept a generic modifier is a completely separate issue and the format would need to be specified.