Thread View: news.software.readers
19 messages
19 total messages
Started by Bill
Thu, 02 Dec 2010 18:44
[Dialog 40tude] Filter doing more than I intended
Author: Bill
Date: Thu, 02 Dec 2010 18:44
Date: Thu, 02 Dec 2010 18:44
19 lines
2163 bytes
2163 bytes
I'm using Dialog 2.0.15.84 (betat 38). I'm experiencing some uninteded consequences from a filter rule: !setcolor(red;white) From "Ed" This not only triggers on "Ed" but also when senders have "ed" as a substring in senders name or email domain. Someone@here.edu for example -- when that address is not *Ed's* email address. I really wasn't expecting dialog to match on substings (in this case) like I would if this was a Regex expression. I must be overlooking something very basic but I can't see it. My understanding of this rule was that it should activate on "Ed", but not "Fred", "Eddy" or ME@school.edu. Where have I gone wrong with this rule? Thanks, Bill -- Email address is a Spam trap.
Re: [Dialog 40tude] Filter doing more than I intended
Author: Gene E. Bloch
Date: Thu, 02 Dec 2010 19:13
Date: Thu, 02 Dec 2010 19:13
27 lines
2547 bytes
2547 bytes
On Thu, 2 Dec 2010 13:44:34 -0500, Bill wrote: > I'm using Dialog 2.0.15.84 (betat 38). I'm experiencing some uninteded > consequences from a filter rule: > > !setcolor(red;white) From "Ed" > > This not only triggers on "Ed" but also when senders have "ed" as a > substring in senders name or email domain. Someone@here.edu for example > -- when that address is not *Ed's* email address. > > I really wasn't expecting dialog to match on substings (in this case) > like I would if this was a Regex expression. I must be overlooking > something very basic but I can't see it. My understanding of this rule > was that it should activate on "Ed", but not "Fred", "Eddy" or > ME@school.edu. Where have I gone wrong with this rule? > > Thanks, > Bill You might try the metacharacters for word boundaries or for non-alphameric characters on either side of Ed, and you might try the test button (I never have done that, so I have no idea whether it's useful). -- Gene E. Bloch (Stumbling Bloch)
Re: [Dialog 40tude] Filter doing more than I intended
Author: Bill
Date: Thu, 02 Dec 2010 21:31
Date: Thu, 02 Dec 2010 21:31
32 lines
2775 bytes
2775 bytes
On Thu, 2 Dec 2010 11:13:19 -0800, Gene E. Bloch wrote: >> On Thu, 2 Dec 2010 13:44:34 -0500, Bill wrote: >> I'm using Dialog 2.0.15.84 (betat 38). I'm experiencing some uninteded >> consequences from a filter rule: <snipped> > You might try the metacharacters for word boundaries or for > non-alphameric characters on either side of Ed, and you might try the > test button (I never have done that, so I have no idea whether it's > useful). Thanks Gene. Good ideas. The test button(in the scoring and actions window) just checks for syntax - it doesn't detect any errors. Either I'm misunderstanding something basic - or something's not right. My main concern isn't so much about fixing this specific rule so it behaves as intended; but I want to understand what's going with dialog so any rule I make will behave closer to what's expected. Taking an example from dialgs scoring syntax reference: =+9999 From "Joe Average" What this is supposed to do seems perfectly clear. If the docs warn of needing to be careful of matching substrings in larger strings such as: "I am Joe Average", "I am not Joe Average" - and other (not far fetched) permutations -- I'm not "getting" that meaning from them. Bill -- Email address is a Spam trap.
Re: [Dialog 40tude] Filter doing more than I intended
Author: Mike Dee
Date: Fri, 03 Dec 2010 00:29
Date: Fri, 03 Dec 2010 00:29
25 lines
2789 bytes
2789 bytes
Bill wrote: > !setcolor(red;white) From "Ed" > > This not only triggers on "Ed" but also when senders have "ed" > as a substring in senders name or email domain. Someone@here.edu > for example -- when that address is not *Ed's* email address. > > I really wasn't expecting dialog to match on substings (in this > case) like I would if this was a Regex expression. I must be > overlooking something very basic but I can't see it. My > understanding of this rule was that it should activate on "Ed", > but not "Fred", "Eddy" or ME@school.edu. Where have I gone > wrong with this rule? Not sure about Dialog's rules, but with regex in Xnews (and slrn and Pan) I'd need to escape "Ed" with the word boundaries "\b" as in \bed\b (case insensitive), otherwise it would also trap unwanted "Fred", "Eddy" or ME@school.edu. etc; etc; too. If you're not running this rule as a regex, perhaps it still requires the word boundaries anyway. -- dee
Re: [Dialog 40tude] Filter doing more than I intended
Author: Gene E. Bloch
Date: Fri, 03 Dec 2010 00:51
Date: Fri, 03 Dec 2010 00:51
48 lines
3577 bytes
3577 bytes
On Thu, 2 Dec 2010 16:31:35 -0500, Bill wrote: > On Thu, 2 Dec 2010 11:13:19 -0800, Gene E. Bloch wrote: > >>> On Thu, 2 Dec 2010 13:44:34 -0500, Bill wrote: > >>> I'm using Dialog 2.0.15.84 (betat 38). I'm experiencing some uninteded >>> consequences from a filter rule: <snipped> > >> You might try the metacharacters for word boundaries or for >> non-alphameric characters on either side of Ed, and you might try the >> test button (I never have done that, so I have no idea whether it's >> useful). > > Thanks Gene. Good ideas. The test button(in the scoring and actions > window) just checks for syntax - it doesn't detect any errors. Either > I'm misunderstanding something basic - or something's not right. > > My main concern isn't so much about fixing this specific rule so it > behaves as intended; but I want to understand what's going with dialog > so any rule I make will behave closer to what's expected. > > Taking an example from dialgs scoring syntax reference: > > =+9999 From "Joe Average" > > What this is supposed to do seems perfectly clear. If the docs warn of > needing to be careful of matching substrings in larger strings such as: > "I am Joe Average", "I am not Joe Average" - and other (not far fetched) > permutations -- I'm not "getting" that meaning from them. > > Bill And I'm not getting anything from my test :-) I set up a test with word delimiters to match (I thought) a name in a post in the header pane in this NG, and then I chose Groups - Apply scoring...and got nothing. I added another simpler test against another name I could see in the header pane and still nothing. I wonder if Apply... doesn't work, and I have to screen against incoming headers. BTW, my old tests do work - on incoming posts, at least. Naturally, I can't tell if they work on Apply...because the posts are already marked. -- Gene E. Bloch (Stumbling Bloch)
Re: [Dialog 40tude] Filter doing more than I intended
Author: Bill
Date: Fri, 03 Dec 2010 02:28
Date: Fri, 03 Dec 2010 02:28
37 lines
3212 bytes
3212 bytes
On Fri, 3 Dec 2010 00:29:46 +0000 (UTC), Mike Dee wrote:
> Not sure about Dialog's rules, but with regex in Xnews (and slrn and
> Pan) I'd need to escape "Ed" with the word boundaries "\b" as in \bed\b
> (case insensitive), otherwise it would also trap unwanted "Fred",
> "Eddy" or ME@school.edu. etc; etc; too.
>
> If you're not running this rule as a regex, perhaps it still requires
> the word boundaries anyway.
In my brief tests:
"\bEd\b" failed to match "Ed" at all, or match any substrings with "ed"
in them. The really interesting thing is that it also failed to match
the literal string "\bEd\b" . That actually surprised me. I thought it
would match if dialogs syntax worked the way I thougt. The rule passed
dialog's "test" button in scoring and actions.
I tried the same rule that expressly used a regular expression.
Using {\bEd\b} matched "Ed" correctly, and eliminated unwanted matching
with the cases with the sequence "ed" in a character string. This
syntax matches the regex examples in dialog. This rule would need a
tweek to not match something like "Ed the 8th" - but that's not that
hard.
I still don't understand what dialog's doing - but there seem to be
several workable options: The easiest for filtering on the From header
seems to be to use the senders email address - as in: From
"email@here.com". The next would be to craft a regex that fits the
circumstances. (I wonder why dialogs "add Plonk filter" option doesn't
use the email? Seems like the email would have a better chance of being
unique)
The lesson seems to be: avoid using "add plonk rule" in favor of
creating a more precise rule manually.
--
Email address is a Spam trap.
Re: [Dialog 40tude] Filter doing more than I intended
Author: Bill
Date: Fri, 03 Dec 2010 03:48
Date: Fri, 03 Dec 2010 03:48
29 lines
3120 bytes
3120 bytes
On Thu, 2 Dec 2010 16:51:39 -0800, Gene E. Bloch wrote:
> I set up a test with word delimiters to match (I thought) a name in a
> post in the header pane in this NG, and then I chose Groups - Apply
> scoring...and got nothing. I added another simpler test against another
> name I could see in the header pane and still nothing.
>
> I wonder if Apply... doesn't work, and I have to screen against incoming
> headers.
>
> BTW, my old tests do work - on incoming posts, at least. Naturally, I
> can't tell if they work on Apply...because the posts are already marked.
I've only tested on incoming headers.
The solution I've settled on (for now) to avoid the situation I
encountered is to not rely upon Dialgo's "add plonk filter" method for
creating filter rules. At least for those cases where the senders alias
consists of a very short string that's a common sequence of characters
(as with "ed") . Looks like my best option is to filter on the
sender's email -the a longer string would permit more precision.
I'm still confused by dialogs filtering syntax. I've been operating on
the assumption that for non-regex filter rules: "a literal string"
goes between double quotes, and for a regex based rule: {a regular
expression} is placed between curly braces.
--
Email address is a Spam trap.
Re: [Dialog 40tude] Filter doing more than I intended
Author: Gene E. Bloch
Date: Fri, 03 Dec 2010 05:05
Date: Fri, 03 Dec 2010 05:05
48 lines
3698 bytes
3698 bytes
On Thu, 2 Dec 2010 22:48:50 -0500, Bill wrote:
> On Thu, 2 Dec 2010 16:51:39 -0800, Gene E. Bloch wrote:
>
>> I set up a test with word delimiters to match (I thought) a name in a
>> post in the header pane in this NG, and then I chose Groups - Apply
>> scoring...and got nothing. I added another simpler test against another
>> name I could see in the header pane and still nothing.
>>
>> I wonder if Apply... doesn't work, and I have to screen against incoming
>> headers.
>>
>> BTW, my old tests do work - on incoming posts, at least. Naturally, I
>> can't tell if they work on Apply...because the posts are already marked.
>
> I've only tested on incoming headers.
>
> The solution I've settled on (for now) to avoid the situation I
> encountered is to not rely upon Dialgo's "add plonk filter" method for
> creating filter rules. At least for those cases where the senders alias
> consists of a very short string that's a common sequence of characters
> (as with "ed") . Looks like my best option is to filter on the
> sender's email -the a longer string would permit more precision.
>
> I'm still confused by dialogs filtering syntax. I've been operating on
> the assumption that for non-regex filter rules: "a literal string"
> goes between double quotes, and for a regex based rule: {a regular
> expression} is placed between curly braces.
Maybe that's why my tests failed :-)
No. I had a test on Bill in quotes that failed on updating headers - but
looking at the scorefile I see that I actually had Bill*. Oops. The
other test was a regex, and it was in quotes, not braces, but there was
no new traffic on that one. I'll use my middle initial this time...I'll
fix that filter now.
I did that and then I ran Apply Scoring. I am now scoring you, but not
me yet.
OK, I commented out the other filter on my name, and now the regex
works. I guess the order of filters matters. I'll RTFM one of these days
:-)
Note that I'm applying the scorefile without refreshing the headers...
--
Gene E. Bloch (Stumbling Bloch)
Re: [Dialog 40tude] Filter doing more than I intended
Author: Gene E. Bloch
Date: Fri, 03 Dec 2010 05:25
Date: Fri, 03 Dec 2010 05:25
73 lines
4514 bytes
4514 bytes
On Thu, 2 Dec 2010 21:05:32 -0800, Gene E. Bloch wrote:
> On Thu, 2 Dec 2010 22:48:50 -0500, Bill wrote:
>
>> On Thu, 2 Dec 2010 16:51:39 -0800, Gene E. Bloch wrote:
>>
>>> I set up a test with word delimiters to match (I thought) a name in a
>>> post in the header pane in this NG, and then I chose Groups - Apply
>>> scoring...and got nothing. I added another simpler test against another
>>> name I could see in the header pane and still nothing.
>>>
>>> I wonder if Apply... doesn't work, and I have to screen against incoming
>>> headers.
>>>
>>> BTW, my old tests do work - on incoming posts, at least. Naturally, I
>>> can't tell if they work on Apply...because the posts are already marked.
>>
>> I've only tested on incoming headers.
>>
>> The solution I've settled on (for now) to avoid the situation I
>> encountered is to not rely upon Dialgo's "add plonk filter" method for
>> creating filter rules. At least for those cases where the senders alias
>> consists of a very short string that's a common sequence of characters
>> (as with "ed") . Looks like my best option is to filter on the
>> sender's email -the a longer string would permit more precision.
>>
>> I'm still confused by dialogs filtering syntax. I've been operating on
>> the assumption that for non-regex filter rules: "a literal string"
>> goes between double quotes, and for a regex based rule: {a regular
>> expression} is placed between curly braces.
>
> Maybe that's why my tests failed :-)
>
> No. I had a test on Bill in quotes that failed on updating headers - but
> looking at the scorefile I see that I actually had Bill*. Oops. The
> other test was a regex, and it was in quotes, not braces, but there was
> no new traffic on that one. I'll use my middle initial this time...I'll
> fix that filter now.
>
> I did that and then I ran Apply Scoring. I am now scoring you, but not
> me yet.
>
> OK, I commented out the other filter on my name, and now the regex
> works. I guess the order of filters matters. I'll RTFM one of these days
> :-)
>
> Note that I'm applying the scorefile without refreshing the headers...
And reading new headers seems to work OK too - no surprise and no
surprises.
I was able to score anything with an isolated E, as well as my original
test, an isolated B. Actually B. and E., but the delimiter I used was
\b, and . qualifies (. in the sender line, not in the regex).
BUT - my regex was more complicated than it needed to be, probably:
+1111 From {.*\bE\b.*}
I probably didn't need the two .*, so I will test that.
Correct -
+1111 From {\bE\b}
works the same.
OK, I've now set my filters back to normal, and I'll sign off.
But note these:
Lesson 1: Read the manual.
Lesson 2: Get new bifocals - I'm talking about "Bill*" here :-)
--
Gene E. Bloch (Stumbling Bloch)
Re: [Dialog 40tude] Filter doing more than I intended
Author: Bill
Date: Fri, 03 Dec 2010 08:01
Date: Fri, 03 Dec 2010 08:01
10 lines
2175 bytes
2175 bytes
On Thu, 2 Dec 2010 21:25:08 -0800, Gene E. Bloch wrote: > Lesson 2: Get new bifocals - I'm talking about "Bill*" here :-) Getting old ain't for wussies. I *hate* my bifocals (they're progressives). I have to turn my head (like an owl would look at things) to minimize the effect of the distortions/warping of straight lines that progressive lenses cause. -- Email address is a Spam trap.
Re: [Dialog 40tude] Filter doing more than I intended
Author: Mike Dee
Date: Fri, 03 Dec 2010 11:18
Date: Fri, 03 Dec 2010 11:18
10 lines
1816 bytes
1816 bytes
Bill wrote: > In my brief tests: > > "\bEd\b" failed to match "Ed" at all Then run it as a regex then ;-) -- dee
Re: [Dialog 40tude] Filter doing more than I intended
Author: Mike Yetto
Date: Fri, 03 Dec 2010 13:07
Date: Fri, 03 Dec 2010 13:07
14 lines
2303 bytes
2303 bytes
Bill <2k7508@gmail.com> writes and having writ moves on. >Getting old ain't for wussies. I *hate* my bifocals (they're >progressives). I have to turn my head (like an owl would look at >things) to minimize the effect of the distortions/warping of straight >lines that progressive lenses cause. Try using prismatic progressive lenses to correct for diplopia (double vision). Lots of fun optical experiments going on in front of me. Mike "Louie Louie Nye, anyone?" Yetto -- In theory, theory and practice are the same. In practice they are not.
Re: [Dialog 40tude] Filter doing more than I intended
Author: Bill
Date: Fri, 03 Dec 2010 15:15
Date: Fri, 03 Dec 2010 15:15
14 lines
1994 bytes
1994 bytes
On Fri, 3 Dec 2010 11:18:10 +0000 (UTC), Mike Dee wrote: > Bill wrote: > >> In my brief tests: >> >> "\bEd\b" failed to match "Ed" at all > > Then run it as a regex then ;-) Direct hit :-) -- Email address is a Spam trap.
Re: [Dialog 40tude] Filter doing more than I intended
Author: Gene E. Bloch
Date: Fri, 03 Dec 2010 19:00
Date: Fri, 03 Dec 2010 19:00
18 lines
2418 bytes
2418 bytes
On Fri, 3 Dec 2010 03:01:29 -0500, Bill wrote: > On Thu, 2 Dec 2010 21:25:08 -0800, Gene E. Bloch wrote: > >> Lesson 2: Get new bifocals - I'm talking about "Bill*" here :-) > > Getting old ain't for wussies. I *hate* my bifocals (they're > progressives). I have to turn my head (like an owl would look at > things) to minimize the effect of the distortions/warping of straight > lines that progressive lenses cause. I tried progressives and hated them, so I went back to bifocals. However, for the computer I have single-vision lenses cut for my usual distance from the monitor. No more stiff necks - yay! :-) -- Gene E. Bloch (Stumbling Bloch)
Re: [Dialog 40tude] Filter doing more than I intended
Author: Gene E. Bloch
Date: Fri, 03 Dec 2010 19:01
Date: Fri, 03 Dec 2010 19:01
14 lines
1774 bytes
1774 bytes
On Fri, 3 Dec 2010 11:18:10 +0000 (UTC), Mike Dee wrote: > Bill wrote: > >> In my brief tests: >> >> "\bEd\b" failed to match "Ed" at all > > Then run it as a regex then ;-) Yeah. I screwed that one up too (see earlier posts). -- Gene E. Bloch (Stumbling Bloch)
Re: [Dialog 40tude] Filter doing more than I intended
Author: Whiskers
Date: Fri, 03 Dec 2010 19:42
Date: Fri, 03 Dec 2010 19:42
34 lines
3300 bytes
3300 bytes
On 2010-12-03, Gene E. Bloch <not-me@other.invalid> wrote: > On Fri, 3 Dec 2010 03:01:29 -0500, Bill wrote: > >> On Thu, 2 Dec 2010 21:25:08 -0800, Gene E. Bloch wrote: >> >>> Lesson 2: Get new bifocals - I'm talking about "Bill*" here :-) >> >> Getting old ain't for wussies. I *hate* my bifocals (they're >> progressives). I have to turn my head (like an owl would look at >> things) to minimize the effect of the distortions/warping of straight >> lines that progressive lenses cause. > > I tried progressives and hated them, so I went back to bifocals. > > However, for the computer I have single-vision lenses cut for my usual > distance from the monitor. No more stiff necks - yay! :-) I'll add my vote against 'varifocals'. I had to shop around a bit, but I managed to find a place that had heard of 'trifocals' and was able to get them; my general-purpose specs have a 'middle-distance' portion that is placed for comfortable use of my laptop screen on a table, and is also well placed for things like notice-boards and name-badges. The 'near' portion is OK for reading books etc, and the 'distance' portion is just big enough for driving - but I prefer bifocals with 'distant' and 'middle' for that. But opticians seem to be geared up to sell everyone varifocals, and take a lot of convincing that one might really and truly be better off with the 'old fashioned' alternatives. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: [Dialog 40tude] Filter doing more than I intended
Author: Frank Slootweg
Date: Fri, 03 Dec 2010 20:41
Date: Fri, 03 Dec 2010 20:41
31 lines
2701 bytes
2701 bytes
Bill <2k7508@gmail.com> wrote: > On Thu, 2 Dec 2010 21:25:08 -0800, Gene E. Bloch wrote: > > > Lesson 2: Get new bifocals - I'm talking about "Bill*" here :-) > > Getting old ain't for wussies. I *hate* my bifocals (they're > progressives). They're bifocals *or* progressives. Progressives [1], better termed varifocals or multifocals, are by definition not "bi". > I have to turn my head (like an owl would look at > things) to minimize the effect of the distortions/warping of straight > lines that progressive lenses cause. There are very good varifocals, and you need a (very) good optician/ optometrist to figure out what exactly you need, but then the result can be very, very good. But they're no cheap, mine (Varilux [2]) cost some US$ 1300, without frames. See for example the Varilux article at Wikipedia [3]. It shows that varifocal lenses are available in a very wide range of sophistication. So while I'm sure you hate your *current* varifocals, it's very likely that there's a very good solution for you as well, at a price. [1] <http://en.wikipedia.org/wiki/Progressive_lens> [2] I don't have my prescription handy, so I can't tell which type of Varilux I have. I think it's the Varilux Physio [3] <http://en.wikipedia.org/wiki/Varilux>
Re: [Dialog 40tude] Filter doing more than I intended
Author: Rom
Date: Mon, 06 Dec 2010 22:04
Date: Mon, 06 Dec 2010 22:04
28 lines
2370 bytes
2370 bytes
On Thu, 2 Dec 2010 22:48:50 -0500, Bill wrote: > The solution I've settled on (for now) to avoid the situation I > encountered is to not rely upon Dialgo's "add plonk filter" method for > creating filter rules. At least for those cases where the senders alias > consists of a very short string that's a common sequence of characters > (as with "ed") . Looks like my best option is to filter on the > sender's email -the a longer string would permit more precision. There's a PlonkWithAddress script that adds the email address to the name, and can still check and/or edit the rule in the Scoring and actions window. You can add a button and shortcut then add the button to the toolbar. <http://fido.altervista.org/Dialog/script/PlonkWithAddress.html> The script (with notes) was originally posted in this group by MLC: Newsgroups: news.software.readers Subject: [Dialog] PlonkWithAddress script Date: Wed, 26 Jan 2005 13:44:23 +0100 Message-ID: <17rrajgqkqzah.dlg@maluc.it> Btw, you can also change the default action for Plonk in the [Scoring] section of settings.ini, e.g. DefPlonk=!ignore,markread -- Rom
Re: [Dialog 40tude] Filter doing more than I intended
Author: Bill
Date: Thu, 09 Dec 2010 07:15
Date: Thu, 09 Dec 2010 07:15
23 lines
2486 bytes
2486 bytes
On Tue, 7 Dec 2010 09:04:43 +1100, Rom wrote: > There's a PlonkWithAddress script that adds the email address to the > name, and can still check and/or edit the rule in the Scoring and > actions window. You can add a button and shortcut then add the button > to the toolbar. > > <http://fido.altervista.org/Dialog/script/PlonkWithAddress.html> > > The script (with notes) was originally posted in this group by MLC: > Newsgroups: news.software.readers > Subject: [Dialog] PlonkWithAddress script > Date: Wed, 26 Jan 2005 13:44:23 +0100 > Message-ID: <17rrajgqkqzah.dlg@maluc.it> > > Btw, you can also change the default action for Plonk in the [Scoring] > section of settings.ini, e.g. > DefPlonk=!ignore,markread Thanks! (Also thanks to MLC). Bill -- Email address is a Spam trap.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads