-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webmail: when moving a single message out of/to the inbox, ask if use…
…r wants to create a rule to automatically do that server-side for future deliveries if the message has a list-id header, we assume this is a (mailing) list message, and we require a dkim/spf-verified domain (we prefer the shortest that is a suffix of the list-id value). the rule we would add will mark such messages as from a mailing list, changing filtering rules on incoming messages (not enforcing dmarc policies). messages will be matched on list-id header and will only match if they have the same dkim/spf-verified domain. if the message doesn't have a list-id header, we'll ask to match based on "message from" address. we don't ask the user in several cases: - if the destination/source mailbox is a special-use mailbox (e.g. trash,archive,sent,junk; inbox isn't included) - if the rule already exist (no point in adding it again). - if the user said "no, not for this list-id/from-address" in the past. - if the user said "no, not for messages moved to this mailbox" in the past. we'll add the rule if the message was moved out of the inbox. if the message was moved to the inbox, we check if there is a matching rule that we can remove. we now remember the "no" answers (for list-id, msg-from-addr and mailbox) in the account database. to implement the msgfrom rules, this adds support to rulesets for matching on message "from" address. before, we could match on smtp from address (and other fields). rulesets now also have a field for comments. webmail adds a note that it created the rule, with the date. manual editing of the rulesets is still in the webaccount page. this webmail functionality is just a convenient way to add/remove common rules.
- Loading branch information
Showing
21 changed files
with
1,027 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,24 +6,26 @@ Domains: | |
PrivateKeyFile: testsel.rsakey.pkcs8.pem | ||
Sign: | ||
- testsel | ||
other.example: nil | ||
Accounts: | ||
other: | ||
Domain: mox.example | ||
Destinations: | ||
[email protected]: nil | ||
mjl: | ||
MaxOutgoingMessagesPerDay: 30 | ||
MaxFirstTimeRecipientsPerDay: 10 | ||
Domain: mox.example | ||
Destinations: | ||
[email protected]: nil | ||
møx@mox.example: nil | ||
mox@other.example: nil | ||
mó[email protected]: nil | ||
mø[email protected]: nil | ||
RejectsMailbox: Rejects | ||
JunkFilter: | ||
Threshold: 0.95 | ||
Threshold: 0.950000 | ||
Params: | ||
Twograms: true | ||
MaxPower: 0.1 | ||
MaxPower: 0.100000 | ||
TopWords: 10 | ||
IgnoreWords: 0.1 | ||
IgnoreWords: 0.100000 | ||
MaxOutgoingMessagesPerDay: 30 | ||
MaxFirstTimeRecipientsPerDay: 10 | ||
other: | ||
Domain: mox.example | ||
Destinations: | ||
[email protected]: nil |
Oops, something went wrong.