On Mon, Mar 25, 2019 at 03:00:30PM +0100, Tobi <jahli...@gmx.ch> wrote:
> Hi
> 
> Am 25.03.19 um 13:25 schrieb Henrik K:
> >
> > Use /^https?:/ to find real uris.
> >
> 
> what if the scheme is ftp (or something else) or fully missing just the URI?

Then use /^(https?|ftp):/i? Are you expecting more, gopher perhaps? :-)

Looking at code schemeless uris with www* add http:// internally.

> Think that approach is not so much reliable ;-)

You are matching "any uri" and expect it to be "reliable"?  Perhaps consider
first what you are trying to accomplish.  Your way will match mailto: and
strings like perl.pl etc, but perhaps that's fine.

> Found this config param in the docs "parse_dkim_uris" which defaults to
> 1. But set it to 0 in local.cf does not change anything. URI is still
> taken from dkim header

No time to look into it, but probably depends on version, might be corrected
already in trunk etc..  defaults are usually for good reason, consider your
rules first.

Reply via email to