Re: list messages with emojis in subject line? ï’©

2021-02-05 Thread Francesco Ariis
Il 05 febbraio 2021 alle 12:25 Will Yardley ha scritto:
> On Fri, Feb 05, 2021 at 11:12:32AM -0800, Aleksandr Miroslav wrote:
> > What filter can I use to only show messages that contain emojis in the
> > subject line?
> > 
> > For me, these are almost always spam, so I would like to quickly
> > filter them out.
> 
> Seems like that might be challenging - even if Mutt decodes the subject
> first, I don't think it can look for specific ranges, and also, it seems
> as if there's no specific set of ranges to filter.
> 
> https://stackoverflow.com/questions/30470079/emoji-value-range

There is an «Emoji» property in the Unicode standard, so assuming that OP
uses getmail (or procmail or similar) to fetch his mail, he could use an
external filter.
If the problem is spam, I would just train bmf [1]
—F

[1] https://jblevins.org/log/bmf


Re: list messages with emojis in subject line? ï’©

2021-02-05 Thread Will Yardley
On Fri, Feb 05, 2021 at 11:12:32AM -0800, Aleksandr Miroslav wrote:
> What filter can I use to only show messages that contain emojis in the
> subject line?
> 
> For me, these are almost always spam, so I would like to quickly
> filter them out.

Seems like that might be challenging - even if Mutt decodes the subject
first, I don't think it can look for specific ranges, and also, it seems
as if there's no specific set of ranges to filter.

https://stackoverflow.com/questions/30470079/emoji-value-range

It might be easier to make a character set of characters you do want,
and look for messages that contain at least one character that's not in
that set.

For example, for me, this seems to roughly work for most of the mail
that I see, except that it includes emails with Chinese characters in
the subject or an empty subject. But you might be able to dial that in
to something close to what you want.
!~s "[0-9a-z _! ]+"

I don't know if my system is misconfigured, but I don't actually see
emojis in the pager of mutt, though I do see them in vim if I edit a
message.

w