There is a limitation that you can not have a rule with both and and or 
conditions. The pseudo solution around this would be either to create separate 
rules as you mentioned or to break the rule into two rules.

Rule 1 mark all messages matching any of the following conditions:
sender is apple 
sender is gmail 

flag messages as "Green"

Rule 2
operate on messages matching all of the conditions 
flag is green 
amailbox is inbox 
message sent > 30 days 
action delete message

I generally do things like this with a smart mailbox. Smart mailboxes also have 
the limitation that you cannot mix and/or conditions directly. 

If you want more flexibility then you can revert to AppleScript.
I wrote an AppleScript about 5 years ago to take all attachments from 
nfbnewsline and put them into a finder folder so they could easily be 
downloaded to my Victor Stream. 

                Best wishes,

Jonathan Cohn



> On Dec 29, 2017, at 4:53 PM, William Windels <william.wind...@gmail.com> 
> wrote:
> 
> Hello all,
> To clean up my mailbox , I use the macmail rueles in mac os 10.13 high sierra.
> 
> It seems I can’t make conditional rules with and/or operators.
> e.g. I cant say that all mails from @facebook.com or @twitter.com  or @ 
> applevis.com or @apple.com should be removed if they are received 30 days ago.
> If I should say the the rule is true if one or more of the conditions are 
> true, I should see that all conditions seperately are true.
> If I should say that the rule-evaluation is valid if all conditions are true, 
> I shouldn’t have any result since apple mail can’t handle more than 1 
> from-address.
> 
> There is also a option in the conditionlist of a mailrule  named “edit 
> headerlist.
> There, I could type and/or/… but this isn’t working.
> 
> And I could make also different rules for each from-address separately but 
> then , I have su much rules….
> 
> All hints are very welcome!
> 
> Kind regards,
> William Windels
> ----------------------------------------------------------------------------------------------------
> 
> William Windels 
> Kleine Kerkstraat 28 - 9050 Ledeberg
> Vast: 09 324 79 92 - GSM: 0477 88 42 76 
> E-mail: williamwind...@gmail.com 
> 
> 
> 
> -- 
> The following information is important for all members of the Mac Visionaries 
> list.
> 
> If you have any questions or concerns about the running of this list, or if 
> you feel that a member's post is inappropriate, please contact the owners or 
> moderators directly rather than posting on the list itself.
> 
> Your Mac Visionaries list moderator is Mark Taylor.  You can reach mark at:  
> macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn - you 
> can reach Cara at caraqu...@caraquinn.com
> 
> The archives for this list can be searched at:
> http://www.mail-archive.com/macvisionaries@googlegroups.com/
> --- 
> You received this message because you are subscribed to the Google Groups 
> "MacVisionaries" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to macvisionaries+unsubscr...@googlegroups.com.
> To post to this group, send email to macvisionaries@googlegroups.com.
> Visit this group at https://groups.google.com/group/macvisionaries.
> For more options, visit https://groups.google.com/d/optout.

-- 
The following information is important for all members of the Mac Visionaries 
list.

If you have any questions or concerns about the running of this list, or if you 
feel that a member's post is inappropriate, please contact the owners or 
moderators directly rather than posting on the list itself.

Your Mac Visionaries list moderator is Mark Taylor.  You can reach mark at:  
macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn - you 
can reach Cara at caraqu...@caraquinn.com

The archives for this list can be searched at:
http://www.mail-archive.com/macvisionaries@googlegroups.com/
--- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at https://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

Reply via email to