Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Request: provide case-insensitive example regex for internalAddressPattern

#1792

I very much like the internalAddressPattern feature. The example in the documentation could be improved to provide a case-insensitive expression for the example regular-expression.

internalAddressPattern = "(?i).*@freron\\.com";

Tested regex using MailMate Version 1.9.6 (5368), on macOS 10.12.5

The "specifying modes" was learned from Regex Tutorial - Specifying Modes

Reported by Stacey Marshall · June 30th, 2017 @ 09:05 AM

State: new
Milestone: none
Assigned to: benny benny

Activity

  1. Norman Gray
    Norman Gray

    Possibly better would be to make the matching of the internalAddressPattern case-insensitive in all cases.

    A DNS host is always matched case-insensitively, and although RFC 5321 (for example) says that ‘[t]he local-part of a mailbox must be treated as case-sensitive’, no mail admin with a functioning brain does so, and indeed the same RFC recommends strongly against case mattering.

    If you felt it necessary to make MailMate strictly conforming by default, then you could define an internalAddressMatchCaseSensitively configuration variable, which defaults to true, but which the documentation suggests should be set to false.

    October 13th, 2017 @ 09:39 AM

  2. benny
    benny
    • State changed from new to fixcommitted

    Sorry about the late update on this. I've changed it to always being case insensitive. If really needed the user can still enable case sensitivity for subparts of the expression. (I've also added a note to the manual.)

    October 13th, 2017 @ 03:44 PM

  3. benny
    benny
    • State changed from fixcommitted to fixreleased

    October 21st, 2017 @ 03:32 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.