Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Platforms
PCXboxPlayStationNintendo
Games
ActionStrategyRole Playing GamesSimulatorsSport Games

Game Forum / Role Playing Games / Diablo 2 / March 2008

Tip: Looking for answers? Try searching our database.

Filter expressions in Agent

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
noneofyourbusiness - 29 Mar 2008 10:01 GMT
(Agent 4.0)

Help!

I thought I had crossposts filtered with the following:
newsgroups: ({\,.+\,.+\,} and alt.games.diablo2)
But all of the recent crap has been getting through :/

Coulda sworn I got this right from the Agent help file.

Anyone know the best way to do this?

TIA

...
Graz - 29 Mar 2008 12:17 GMT
>(Agent 4.0)
>
[quoted text clipped - 9 lines]
>
>TIA

It won't help you much.  In time, agd2 will become as unreadable as
agd.
Ashen Shugar - 29 Mar 2008 13:27 GMT
I think it was graz@googlemail.com (Graz) that wrote something like...

>>(Agent 4.0)
>>
[quoted text clipped - 12 lines]
>It won't help you much.  In time, agd2 will become as unreadable as
>agd.  

*shrug*
I never stopped reading AGD personally.

Ashen Shugar
Signature

The lions sing and the hills take flight.
The moon by day, and the sun by night.
Blind woman, deaf man, jackdaw fool.
Let the Lord of Chaos rule!

~misfit~ - 30 Mar 2008 10:25 GMT
Somewhere on teh intarweb "Ashen Shugar" typed:
> I think it was graz@googlemail.com (Graz) that wrote something like...
>
[quoted text clipped - 17 lines]
> *shrug*
> I never stopped reading AGD personally.

Same for me.
Signature

Shaun.

freemont - 29 Mar 2008 14:59 GMT
>>I thought I had crossposts filtered with the following:
>>newsgroups: ({\,.+\,.+\,} and alt.games.diablo2)
>>But all of the recent crap has been getting through :/

> It won't help you much.  In time, agd2 will become as unreadable as
> agd.

Not true. Both groups are very readable to me. I don't see the vast
majority of the junk.

OP - best to ask in news.software.readers. Those guys know all about
scoring in different newsreaders.

Signature

"Because all you of Earth are idiots!"
¯`·.¸¸.·´¯`·-> freemont© <-·´¯`·.¸¸.·´¯

Ulandx@hotmail.com - 29 Mar 2008 23:34 GMT
>>(Agent 4.0)
>>
[quoted text clipped - 12 lines]
>It won't help you much.  In time, agd2 will become as unreadable as
>agd.  

agd2 is very readable for me,my provider somehow pre filters most of
the crap,what goes through got done by filtering with my newsreader.

Btw,do you try to terrorize entire neighbourhoods in rl too if you
just have problems with a single person ?
Ever thought of joining Al-Kaida or such,you would fit nice with such
scum?
Graz - 30 Mar 2008 06:40 GMT
>>>(Agent 4.0)
>>>
[quoted text clipped - 15 lines]
>agd2 is very readable for me,my provider somehow pre filters most of
>the crap,what goes through got done by filtering with my newsreader.

In time, the readership will dissipate.  Just like it did in agd.
You'll end up with a handful of posts a week.

>Btw,do you try to terrorize entire neighbourhoods in rl too if you
>just have problems with a single person ?

This is rl.

>Ever thought of joining Al-Kaida or such,you would fit nice with such
>scum?

You have scum right here in agd2.  It's called Micky Mouth.  You
obviously fit right in.
Don Bruder - 29 Mar 2008 15:27 GMT
> (Agent 4.0)
>
[quoted text clipped - 11 lines]
>
> ...

I don't know Agent (I run a Mac) but if it uses regular expressions, as
it appears from your kill formula, you want to use "*" rather than "+".

With my newsreader, I'm set up so that the filter only operates on AGD2
(although I find it useful in a couple other groups, too, so I've got a
copy installed on those) and wipes out anything cross-posted:

kill if Newsgroups matches the regular expression ".*,.*"

Or more generically, "kill if the Newsgroups: header contains a comma
anywhere", since comma is the standard-specified method of separating
the newsgroups to be posted to.

Of course, one can get more selective:

".*,.*,.*" to kill if it's crossed to more than 2 groups
".*,.*,.*,.*" to kill if crossed to more than 3 groups, etc...

Signature

Don Bruder - dakidd@sonic.net - If your "From:" address isn't on my whitelist,
or the subject of the message doesn't contain the exact text "PopperAndShadow"
somewhere, any message sent to this address will go in the garbage without my
ever knowing it arrived. Sorry... <http://www.sonic.net/~dakidd> for more info

noneofyourbusiness - 29 Mar 2008 20:34 GMT
>> (Agent 4.0)
>>
[quoted text clipped - 29 lines]
>".*,.*,.*" to kill if it's crossed to more than 2 groups
>".*,.*,.*,.*" to kill if crossed to more than 3 groups, etc...

OK, after re-reading the Agent help file, I made some progress.

The expression I was using would only work on messages with FIVE or
more groups! (Plus, Agent can only filter on the newsgroup field when
it first retrieves messages (headers??)

I changed it and now no longer see messages crossposted to 2 or more
groups. One more try and I'll hopefully get rid of ALL the crap ;-)

I just need to figure out how to KEEP AGD from getting filtered.

FYI: In the expressions, "\," is a litteral comma, and ".+" means one
or more of any character ("." = any character, "+" = one or more).
Now, WHY the string should begin with a comma I have no idea. Will
test in a minute ;-)

...
Don Bruder - 29 Mar 2008 21:54 GMT
> >> (Agent 4.0)
> >>
[quoted text clipped - 47 lines]
>
> ...

Then Agent apparently isn't using "real" regular expressions - In "real"
regular expressions, "." = "any character", and "*" means "zero or more
occurrences of the preceding character", so that the construct ".*"
means "zero or more occurrences of any character". (With regular
expressions, you can also follow the "." with "?" (meaning one or more
occurrences of the preceding character) and "<numeric value>" (meaning
<numeric value> occurrences)  Escaping (using the backslash in front of)
a comma is optional on most regular expression implementations.

As for why the string should start with a comma, it shouldn't - ".*,.*"
("Any number of any character followed by a literal comma followed by
any number of any character") is the right format. Or, in your case,
".+,.+" since apparently Agent uses "+" instead of the standard "*" in
its flavor of regular expression handler.

A message posted to only one group won't have a comma, so no match.

A cross-posted message will have a newsgroup name POSSIBLY followed by
one or more spaces (which will match the ".*" or ".+" regardless of the
spaces) then a comma that we match as a literal, then POSSIBLY followed
by one or more spaces, then another newsgroup name to match the second
".*"/".+" part. It doesn't matter how many more spaces, commas or
newsgroups follow the comma - the second ".*"/".+" will match the entire
string of them, however long it happens to be.

To kill on "more than X number of newsgroups", you just extend the
sequence until you have one more ",.*" than the number of cross-posts
you deem acceptable - ".*,.*" for "only one newsgroup is OK", ".*,.*,.*"
for "two newsgroups OK", ".*,.*,.*,.*" for "three is OK", and so on.

Signature

Don Bruder - dakidd@sonic.net - If your "From:" address isn't on my whitelist,
or the subject of the message doesn't contain the exact text "PopperAndShadow"
somewhere, any message sent to this address will go in the garbage without my
ever knowing it arrived. Sorry... <http://www.sonic.net/~dakidd> for more info

Ashen Shugar - 30 Mar 2008 00:39 GMT
I think it was Don Bruder <dakidd@sonic.net> that wrote something
like...

>> >> (Agent 4.0)
>> >>
[quoted text clipped - 62 lines]
>".+,.+" since apparently Agent uses "+" instead of the standard "*" in
>its flavor of regular expression handler.

I dunno where you're getting your regular expressions from, but in
Perl at least, both * and + are used.  * for 0 or more occurrences and
+ for 1 or more occurrences.

Ashen Shugar
Signature

The lions sing and the hills take flight.
The moon by day, and the sun by night.
Blind woman, deaf man, jackdaw fool.
Let the Lord of Chaos rule!

Don Bruder - 30 Mar 2008 01:42 GMT
> I think it was Don Bruder <dakidd@sonic.net> that wrote something
> like...
[quoted text clipped - 71 lines]
>
> Ashen Shugar

Everywhere I've used them, it's been "*" for zero or more, and "?" for
one or more. I'll admit that Perl isn't one of the places I've used them
- I've successfully avoided that unreadable mess for years, thanks.

Yeah, I know - It has its uses. Fortunately, I've not had any need to
use it for anything. I prefer a language that can actually be read. If I
want cryptic, I'll try to teach myself "BrainF*ck" (Yes, its an actual
programming language, although last time I looked, there was still a
debate raging over whether the name was properly spelled with a "u" or a
"*" - at last look, the "*" folks seemed to be winning the debate, but
these days, who knows?)

Signature

Don Bruder - dakidd@sonic.net - If your "From:" address isn't on my whitelist,
or the subject of the message doesn't contain the exact text "PopperAndShadow"
somewhere, any message sent to this address will go in the garbage without my
ever knowing it arrived. Sorry... <http://www.sonic.net/~dakidd> for more info

Ashen Shugar - 30 Mar 2008 03:01 GMT
I think it was Don Bruder <dakidd@sonic.net> that wrote something
like...

>> I think it was Don Bruder <dakidd@sonic.net> that wrote something
>> like...
[quoted text clipped - 75 lines]
>one or more. I'll admit that Perl isn't one of the places I've used them
>- I've successfully avoided that unreadable mess for years, thanks.

? is for 0 or 1 in perl.
Where have you been using them?

>Yeah, I know - It has its uses. Fortunately, I've not had any need to
>use it for anything. I prefer a language that can actually be read. If I
[quoted text clipped - 3 lines]
>"*" - at last look, the "*" folks seemed to be winning the debate, but
>these days, who knows?)

Sound interesting.  ; )
Ashen Shugar
Signature

The lions sing and the hills take flight.
The moon by day, and the sun by night.
Blind woman, deaf man, jackdaw fool.
Let the Lord of Chaos rule!

noneofyourbusiness - 30 Mar 2008 09:18 GMT
[snip]

>Then Agent apparently isn't using "real" regular expressions - In "real"
>regular expressions, "." = "any character", and "*" means "zero or more
[quoted text clipped - 25 lines]
>you deem acceptable - ".*,.*" for "only one newsgroup is OK", ".*,.*,.*"
>for "two newsgroups OK", ".*,.*,.*,.*" for "three is OK", and so on.

I dertermined that a preceeding comma wasn't required.

Also, Agent IS using "*" for zero or more, but the filter example used
"+" to apply ONE OR MORE for the rule (one or more of any character
followed by a comma).

I posted my "solution" (such as it is) in another thread.
Thanks for the input.

...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.