📜 ⬆️ ⬇️

Sophisticated filters in GMail

I use GMail long and hard. I got myself Google Apps for domain and transferred all my mail there. Like. There are, however, minor inconveniences ... One of these is working with filters (drawing up rules for assigning letters to labels or other actions with letters).

Maybe I was looking badly, but “officially” for each simple rule you need to create your own filter. As a result, for example, the rules assigning the label "Mailings" or "Notifications" I had a screen and a half or two. Impractical, not aesthetically pleasing ... and it’s not very convenient to handle so many rules. It is not possible to directly enter 2 addresses into the From condition. At the same time, work with “composite” filters (combining conditions through OR) GMail supports ... In general, I will not spread.

Perhaps someone will benefit from such a decision. I collected all the rules for one label in one line (not only from:, you can use subject:, and list:, and other signs to use - the main thing is to be first from , if we use the From: field). It turns out something like:
')
from:(e@mail1) OR from:(e@mail2) OR from:(e@mail3) OR subject:(:) OR list:"<news.citycat.subscribe.ru>" OR subject:(Google alert) OR subject:( ) OR subject:( ) OR subject:( )

(I thoroughly shortened my list, but left some examples). GMail when creating a filter (if you use the From: field for a condition) adds the first from: with a bracket and a closing bracket. Those. we just need to remove the first from: ( and at the end the last parenthesis ... The resulting rule for the filter is inserted into From when creating the filter. Everything worked for me. Of course, the question is controversial how much more practical and aesthetic it has become ... But at least so filters much less, and all the conditions for each label or action are collected in one place, and not scattered across two pages.

PS I haven't tried it myself yet ... but if you need to create a filter for letters both incoming and outgoing, you can make this construction:
... OR (from: (e @ mail2) OR to: (e @ mail2)) ... although does it make sense?

Source: https://habr.com/ru/post/71110/


All Articles