Article View: news.software.readers
Article #266423Re: [Dialog] Filter needed to get rid of Google Groups spam by Message-ID or by User-Agent
From: Bernd Rose
Date: Mon, 04 Dec 2023 21:01
Date: Mon, 04 Dec 2023 21:01
45 lines
3059 bytes
3059 bytes
On Sun, 3rd Dec 2023 21:34:14 -0500, rocco portelli wrote:
> I created a folder in the same directory as dialog.exe was in.
> mkdir SPAM
>
> I added this to Dialog's "Settings | Scoring & actions" & pressed OK.
> [comp.mobile.android]
> !move(SPAM) Header "User-Agent: G2/1.0"
>
> Then I opened up to that newsgroup and the SPAM folder was empty.
> But spam of the Google Groups type came in so I need to do something more.
> But what?
The "SPAM" folder in the above command does /not/ refer to a folder in the
file system, but to a Dialog internal folder. If any message was a hit when
you last checked messages for comp.mobile.android, then this folder should
have been created, automatically. It will appear in last position on the
"Subscribed" tab of the groups pane, but can be moved to any other position
and be assigned to any category you may have created.
Folder is a third container object type - alongside mailboxes and groups.
The latter two will usually be filled by receiving/loading messages from
a server. Folders are mostly filled by copy/move operations and therefore
can be used for structured (archive) storage.
That no message went to a folder SPAM in your example has a different
reason, though. The header "User-Agent" is not part of the "Overview"
received when checking for new messages. Therefore, the above filter will
only trigger when loading the bodies of the messages, as well. (Which most
likely will /not/ be your intention.)
My first suggestion for your question /will/ work on Overview headers,
though (Message-Id: <1nb97rxoqr2zn.dlg@b.rose.tmpbox.news.arcor.de>).
It therefore does /not/ require loading of bodies. You can alter it to
move suspicious messages to a SPAM folder instead of the suggested
"markread,ignore":
!move(SPAM) From gmail.com +@Message-ID: googlegroups.com
The third variant, will only will work when loading bodies, again:
!move(SPAM) Header {^(Injection-Info: [^.]*.googlegroups.com; posting-host=[0-9.]*; posting-account=)}
HTH.
Bernd
Technical Details
Message-ID:
<fz976k538fqe.dlg@b.rose.tmpbox.news.arcor.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<ukimeu$m2jo$1@paganini.bofh.team> <ukipg0$pq8$1@rasp.pasdenom.info> <ulpo4tuztr3g.dlg@b.rose.tmpbox.news.arcor.de> <ukjdr6$rqtq$1@paganini.bofh.team>Show Full Headers
Complete Article Headers
Message-ID: <fz976k538fqe.dlg@b.rose.tmpbox.news.arcor.de> Subject: Re: [Dialog] Filter needed to get rid of Google Groups spam by Message-ID or by User-Agent Date: Mon, 4 Dec 2023 22:01:40 +0100 From: Bernd Rose <b.rose.tmpbox@arcor.de> References: <ukimeu$m2jo$1@paganini.bofh.team> <ukipg0$pq8$1@rasp.pasdenom.info> <ulpo4tuztr3g.dlg@b.rose.tmpbox.news.arcor.de> <ukjdr6$rqtq$1@paganini.bofh.team> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.readers MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: solani.org; User-Agent: 40tude_Dialog/2.0.15.41 (6faad963.320.483) Cancel-Lock: sha1:eEdamGRfCAHMpOl3hKC+qZdyyoY= X-User-ID: eJwFwYEBwDAEBMCVgn9kHKT2H6F3NBefgNPB5eqNWVP5mnaqNfOSkhZaOLRXJ1ZDB585x4LwfvUa688hJZHYbUgqu978neUZWQ==