External email warning should be configurable per account
-
benny
- State changed from new to accepted
I get the idea and it's very flexible although perhaps a bit complex, but I guess that's fine as long as a single regular expression also works (which is probably already too complicated for most users anyways).
I'll look into how hard it would be to improve.
-
nall
Are you able to switch on the type of the value? Power users could use a dictionary like I described. Non-power users could use a simple string like the current implementation.
-
benny
- State changed from accepted to fixcommitted
I could do that, but if I ever add a GUI for this feature then it wouldn't really be the ideal way to do this. I've taken a different route which is not quite as flexible as your dictionary, but it's close:
- Quit MailMate
- Edit
~/Library/Application Support/MailMate/Identities.plist -
Add key/value pairs similar to these to one or more of the identities:
internalAddressPattern = ".*@freron\\.com"; internalAddressPatternEnabled = 1;
Based on the from address MailMate finds the identity and uses the
identityAddressPatternto analyze the recipient addresses. If no pattern exists for the identity then nothing happens (except ifMmInternalRecipientsis defined which is still used as a fall back).This is going to be part of the next update which I don't have a release date for yet. Let me know how it works for you.
(This is not as flexible as your solution since you cannot define multiple patterns for the email addresses of a single account. The “system” is prepared for allowing multiple identities for a single account and this could make the solutions equal, but I don't really have any plans to add a GUI for that.)
-
benny
If you feel adventurous then here is a direct link to the latest test version: http://updates.mailmate-app.com/archives/MailMate_r4249.tbz
It might be unstable for other reasons since I've made some major changes only tested by me for a day or so.
-
nall
Benny,
Looks good, thanks!1 question: Is there any chance of turning the address in the To:/Cc: field, red like Mail.app if the internalAddressPattern doesn't match? Having that early visual heads up is nice.
-
benny
The red color of a token is only available to Apple Mail. It's not a documented feature in the API. I could use it anyways, but I prefer not to. Instead I've changed the visualization of tokens such that external addresses are prefixed with a red exclamation mark (Unicode symbol). These are updated whenever changing the from address. Seems to work quite well.
-
nall
Just tried it. Looks great. Thanks!
nall.
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.