Discussion:
Can you filter by number of lines? - zero lines.PNG (0/1)
(too old to reply)
Jesus Quintana
2023-12-04 16:31:46 UTC
Permalink
Looking for a way to filter by number of lines to kill posts with zero
lines like the attached.

Or another way if it exists.

In the example, the author is the same for this small sampling but the
author varies so not a good candidate for the killfilter.



Thanks
--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
Ralph Fox
2023-12-04 19:24:35 UTC
Permalink
Post by Jesus Quintana
Looking for a way to filter by number of lines to kill posts with zero
lines like the attached.
I do not receive binaries in text newsgroups like this.

If you want to post a picture, upload it to some place like
<http://www.imagetitan.com/> or <https://imgur.com/>
and post a link here.
Post by Jesus Quintana
Or another way if it exists.
In the example, the author is the same for this small sampling but the
author varies so not a good candidate for the killfilter.
Thanks
User-Agent: ForteAgent/8.00.32.1272
See the filtering section in the help file for how to filter on number
of lines

Help >> Index >> Filters, Message Filters >> Agent's Expression Language >> Other Operators

But be warned. Many legitimate headers will appear to have zero lines,
simply because the news server has not put the actual number of lines
in the headers that are sent to Agent. It is your problem, not mine,
if your filter makes you lose legitimate posts this way.
--
Kind regards
Ralph Fox
🦊

A lean agreement is better then a fat sentence.
Jesus Quintana
2023-12-05 16:14:47 UTC
Permalink
Post by Ralph Fox
Post by Jesus Quintana
Looking for a way to filter by number of lines to kill posts with zero
lines like the attached.
I do not receive binaries in text newsgroups like this.
If you want to post a picture, upload it to some place like
<http://www.imagetitan.com/> or <https://imgur.com/>
and post a link here.
Post by Jesus Quintana
Or another way if it exists.
In the example, the author is the same for this small sampling but the
author varies so not a good candidate for the killfilter.
Thanks
User-Agent: ForteAgent/8.00.32.1272
See the filtering section in the help file for how to filter on number
of lines
Help >> Index >> Filters, Message Filters >> Agent's Expression Language >> Other Operators
But be warned. Many legitimate headers will appear to have zero lines,
simply because the news server has not put the actual number of lines
in the headers that are sent to Agent. It is your problem, not mine,
if your filter makes you lose legitimate posts this way.
--
Kind regards
Ralph Fox
?
A lean agreement is better then a fat sentence.
In the future, will do on the pic post. Thanks Ralph
--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
IBM User
2023-12-07 23:09:04 UTC
Permalink
Post by Ralph Fox
Post by Jesus Quintana
Looking for a way to filter by number of lines to kill posts with zero
lines like the attached.
I do not receive binaries in text newsgroups like this.
If you want to post a picture, upload it to some place like
<http://www.imagetitan.com/> or <https://imgur.com/>
and post a link here.
Post by Jesus Quintana
Or another way if it exists.
In the example, the author is the same for this small sampling but the
author varies so not a good candidate for the killfilter.
Thanks
User-Agent: ForteAgent/8.00.32.1272
See the filtering section in the help file for how to filter on number
of lines
Help >> Index >> Filters, Message Filters >> Agent's Expression Language >> Other Operators
But be warned. Many legitimate headers will appear to have zero lines,
Not very many. I have never seen a zero line post that was legit.
Post by Ralph Fox
simply because the news server has not put the actual number of lines
in the headers that are sent to Agent. It is your problem, not mine,
if your filter makes you lose legitimate posts this way.
Ralph Fox
2023-12-08 05:34:56 UTC
Permalink
Post by IBM User
Post by Ralph Fox
Post by Jesus Quintana
Looking for a way to filter by number of lines to kill posts with zero
lines like the attached.
See the filtering section in the help file for how to filter on number
of lines
Help >> Index >> Filters, Message Filters >> Agent's Expression Language >> Other Operators
But be warned. Many legitimate headers will appear to have zero lines,
Not very many. I have never seen a zero line post that was legit.
Hello, new poster "IBM User".

John's post in this thread showed 0 lines here before the body is
downloaded.

screen-shot: <Loading Image...>

For filtering, what is important is the number of lines showing *before*
the body is downloaded. Filtering happens before the body is downloaded.

That is one of four posters in this thread showing 0 lines here at the
time filtering happens. IMO one cannot call that "not very many", and
certainly one cannot call it "never".

Agent will update/correct the number of lines when it downloads the body,
but that happens too late for filtering.
Post by IBM User
Post by Ralph Fox
simply because the news server has not put the actual number of lines
in the headers that are sent to Agent. It is your problem, not mine,
if your filter makes you lose legitimate posts this way.
When filtering happens, the body has not yet been downloaded and
Agent does not yet know the actual number of lines in the message.
Agent has to rely on whatever number the server has put in the
headers. Sometimes the actual number of lines is not put in the
headers.
--
Kind regards
Ralph Fox
🦊

Nothing most be done hastily but killing of fleas.
IBM User
2023-12-07 23:07:54 UTC
Permalink
Post by Jesus Quintana
Looking for a way to filter by number of lines to kill posts with zero
lines like the attached.
Or another way if it exists.
In the example, the author is the same for this small sampling but the
author varies so not a good candidate for the killfilter.
Thanks
Yes, use {0,0] to filter the junk.

But that won't get everything.

Also use {^\{}

Neither needs to be preceeded by Subject: or Author:

They may get some things you would otherwise want, but more than
likely not, and not very much.

Test them by marking the entire group unread, then filter and choose
Mark Read instead of Delete, and you'll get a feel for how they work
for you.
John
2023-12-08 00:37:43 UTC
Permalink
Post by IBM User
Post by Jesus Quintana
Looking for a way to filter by number of lines to kill posts with zero
lines like the attached.
Or another way if it exists.
In the example, the author is the same for this small sampling but the
author varies so not a good candidate for the killfilter.
Thanks
Yes, use {0,0] to filter the junk.
That last ] should be a } or Agent weeps tears of "missing last }"
type warning.
Post by IBM User
But that won't get everything.
Also use {^\{}
This one needs a second "}" curly to top it off or Agent will sulk.
Post by IBM User
They may get some things you would otherwise want, but more than
likely not, and not very much.
Test them by marking the entire group unread, then filter and choose
Mark Read instead of Delete, and you'll get a feel for how they work
for you.
Other than the typographical oopsies, those seem to work fine in
Agent 4-ish.

Also, that last bit is *good* advice. Always test things in ways that
do revocable things.

Sometimes it ain't easy to fix the irrevocable. :)

Thank you, IBM, Happy New Year and Merry Christmas.

J.
IBM User
2023-12-08 03:53:07 UTC
Permalink
Post by John
Post by IBM User
Post by Jesus Quintana
Looking for a way to filter by number of lines to kill posts with zero
lines like the attached.
Or another way if it exists.
In the example, the author is the same for this small sampling but the
author varies so not a good candidate for the killfilter.
Thanks
Yes, use {0,0] to filter the junk.
That last ] should be a } or Agent weeps tears of "missing last }"
type warning.
Actually the { at the beginning should be a [. Dunno how I did that,
as I was copying and pasting, but it should be [0,0].
Post by John
Post by IBM User
But that won't get everything.
Also use {^\{}
This one needs a second "}" curly to top it off or Agent will sulk.
No, actually, that one is fine.
Post by John
Post by IBM User
They may get some things you would otherwise want, but more than
likely not, and not very much.
Test them by marking the entire group unread, then filter and choose
Mark Read instead of Delete, and you'll get a feel for how they work
for you.
Other than the typographical oopsies, those seem to work fine in
Agent 4-ish.
Also, that last bit is *good* advice. Always test things in ways that
do revocable things.
Sometimes it ain't easy to fix the irrevocable. :)
Thank you, IBM, Happy New Year and Merry Christmas.
J.
And to you as well!
John
2023-12-08 12:27:36 UTC
Permalink
Post by IBM User
Post by John
Post by IBM User
Post by Jesus Quintana
Looking for a way to filter by number of lines to kill posts with zero
lines like the attached.
Or another way if it exists.
In the example, the author is the same for this small sampling but the
author varies so not a good candidate for the killfilter.
Thanks
Yes, use {0,0] to filter the junk.
That last ] should be a } or Agent weeps tears of "missing last }"
type warning.
Actually the { at the beginning should be a [. Dunno how I did that,
as I was copying and pasting, but it should be [0,0].
Really? Okay, thank you.

However, my Agent 4 *did* complain a bit about the unbalanced
curlies. As one would expect. Unbalanced curlies are naughty.
Post by IBM User
Post by John
Post by IBM User
But that won't get everything.
Also use {^\{}
This one needs a second "}" curly to top it off or Agent will sulk.
No, actually, that one is fine.
Oh?

So the last close-curly is *not* connected to the second open-curly,
it is closing the first one and the second one is escaped? That's so
cool.

Thanks.

But what does my version do? The one with four curlies? Anything?
Agent didn't complain about it.
Post by IBM User
Post by John
Post by IBM User
They may get some things you would otherwise want, but more than
likely not, and not very much.
Test them by marking the entire group unread, then filter and choose
Mark Read instead of Delete, and you'll get a feel for how they work
for you.
Other than the typographical oopsies, those seem to work fine in
Agent 4-ish.
Also, that last bit is *good* advice. Always test things in ways that
do revocable things.
Sometimes it ain't easy to fix the irrevocable. :)
Thank you, IBM, Happy New Year and Merry Christmas.
J.
And to you as well!
Thank you. And best wishes to everyone.

J.
Phoenix
2023-12-09 15:41:44 UTC
Permalink
Post by John
Sometimes it ain't easy to fix the irrevocable. :)
For those deleted articles, you can get them from the server again.
Online > Sample by number or by days (days is typically slower than by
number).

s|b
2023-12-08 21:28:08 UTC
Permalink
Post by Jesus Quintana
In the example, the author is the same for this small sampling but the
author varies so not a good candidate for the killfilter.
This is a non-binary newsgroup. Most newsservers won't even show your
attachment.
Post by Jesus Quintana
--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
Please disable this spam.
--
s|b
Loading...