> -----Original Message-----
> From: opendkim-users-bounce_at_lists.opendkim.org [mailto:opendkim-users-bounce_at_lists.opendkim.org] On Behalf Of Ole Hansen
> Sent: Tuesday, September 06, 2011 6:50 AM
> To: opendkim-users_at_lists.opendkim.org
> Subject: Re: Signing Table Wildcard?
>
> BTW, if I understand the documentation correctly, "regular expression"
> may not be the best name for what refile: does. Does refile: support
> anything beyond simple wildcard ("*") matching? When a typical Unix
> admin hears "regular expression", he/she thinks of grep. With grep, one
> would have to write ".*_at_example\.com$", but could then also do things
> like ".*_at_example\.(com|net)$". I guess that's not the case here.
>
> Anyway, just a comment. The wildcard does the job.
The name is a holdover from a version long ago where the files were indeed lists of regular expressions. The user base (at least, back then) found it easier to use globs (i.e., standard wildcarding) instead, so I switched the code to do that, but the name stuck mostly for backward compatibility.
You're right though, the full regular expression suite isn't available. Only wildcards.
Perhaps a comment in the documentation about the misnomer would be useful? Or might it confuse people?
I've also considered the idea of a flag that changes the logic so that "refile" really does mean "refile", but have this off-by-default to maintain backward compatibility.
If anyone out there would find the use of full regular expressions useful, please open a feature request on SourceForge.
-MSK
Received on Tue Sep 06 2011 - 16:56:28 PST
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tue Sep 06 2011 - 20:50:01 PST