A much more performant way would be matching UTF code points with regex:
https://regex101.com/r/yF7gV6/2


[image: Sender] Edgar Vaitkevičius, founder / CEO
ed...@sender.net




On Thu, Jun 20, 2024 at 12:53 PM Atro Tossavainen via mailop <
mailop@mailop.org> wrote:

> On Thu, Jun 20, 2024 at 05:33:47PM +0800, Jeff Peng via mailop wrote:
> > BTW, What’s the good way to block messages based on languages?
>
> Analyzing messages for language content first, then being able to
> decide based on results. There are multiple libraries for multiple
> programming languages that will do this.
>
> See for example
>
> https://medium.com/@monigrancharov/text-language-detection-with-python-beb49d9667b3
>
>
>
> >
> > On 2024-06-20 15:49, Stuart Henderson via mailop wrote:
> > >On 2024/06/20 10:13, Jeff Pang via mailop wrote:
> > >>Hello
> > >>
> > >>Recently i got a lot of spams like this one:
> > >>https://cloud.hostcache.com/spam.eml
> > >>
> > >>They have two features:
> > >>1. arabic language
> > >>2. from google groups (though i never joined those groups)
> > >
> > >I've reported a bunch of these over the years, never any response.
> > >google don't seem to care.
> > >
> > >>how can i stop them effectively? (block arabic and google groups?)
> > >
> > >Yes that's probably the way. Or just block all of google groups if you
> > >don't need it.
> > >
> > >_______________________________________________
> > >mailop mailing list
> > >mailop@mailop.org
> > >https://list.mailop.org/listinfo/mailop
> > _______________________________________________
> > mailop mailing list
> > mailop@mailop.org
> > https://list.mailop.org/listinfo/mailop
>
> --
> Atro Tossavainen, Founder, Partner
> Koli-Lõks OÜ (reg. no. 12815457, VAT ID EE101811635)
> Tallinn, Estonia
> tel. +372-5883-4269, https://www.koliloks.eu/
> _______________________________________________
> mailop mailing list
> mailop@mailop.org
> https://list.mailop.org/listinfo/mailop
>
_______________________________________________
mailop mailing list
mailop@mailop.org
https://list.mailop.org/listinfo/mailop

Reply via email to