[MlMt] Mark an email as read based on content

Randall Gellens mailmate at randy.pensive.org
Fri Sep 20 17:59:39 EDT 2024


On 20 Sep 2024, at 10:41, Fredrik Jonsson wrote:

> leo 2024-09-20 19:34 wrote:
>
>> I have sometimes a little flood of invoice emails (HTML format) 
>> coming in. At lot of them have in their content the string 
>> “€0.00”.
>
> My solution for this is to set up a smart mailbox that collects all 
> the relevant e-mails.
>
> Then I add a rule to that smart mailbox that marks all new e-mails as 
> read (or whatever else one want to do with them).

If the messages are all arriving in the same mailbox, there's no need to 
create a smart mailbox, just create a rule in the Inbox where they 
arrive. To avoid accidentally marking other mail that happens to contain 
“€0.00”, add some other criteria. For example, if they all come 
from the same address or there's something else about them, add that as 
well.

1. Right-click on the mailbox in which they arrive (e.g., "Inbox" of the 
account) and click "Edit Rules..."

2. his opens a pane with your existing rules.

3. If you haven't yet created any rules for this mailbox, click "Create 
Rule..."

4. If you have existing rules, the pane shows a list of rules on the 
left and one of the rules on the right. Click the "+" in the lower left.

5. A form to create a new rule appears on the right.

6. In the "Description" field give the rule a name (e.g., "Mark Invoices 
Read").

7. Click the "+" under "Conditions".

8. This will add two lines. The first says "All of the following". Under 
that is a sample rule, e.g., [ From -> Name ] [ Is ] [ John Appleseed ].

9. Change "From -> Name" to whatever header field the invoices all have 
in common that other messages probably don't have, and the value box 
from "John Appleseed" to whatever value will be in that field. You may 
need to change "Is" to "Contains" or some such. E.g., if the messages 
all come from "invoice-billing at invoice.com", change the rule to 
something such as [ From -> Address ] [ Is ] [ 
invoice-billing at invoice.com" ].

10. Click the "+" at the right of the rule you just edited. This adds a 
new rule form below.

11. Set this rule to something such as [ Unquoted text ] [ Contains ] [ 
€0.00 ].

12. Click the "+" under "Actions". This creates an action form. Set this 
to [ Set Tag/Keyword ] [ Seen (Read) ].

13. Click "Commit" on the lower right.

--Randall
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20240920/5f02135c/attachment.htm>


More information about the mailmate mailing list