#1792 new
Stacey Marshall

Request: provide case-insensitive example regex for internalAddressPattern

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

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

Comments and changes to this ticket

  • Norman Gray

    Norman Gray October 13th, 2017 @ 09:39 AM

    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.

  • benny

    benny October 13th, 2017 @ 03:44 PM

    • 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.)

  • benny

    benny October 21st, 2017 @ 03:32 PM

    • State changed from “fixcommitted” to “fixreleased”

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Pages