Article View: news.software.readers
Article #262940Re: [Dialog] What is the procedure for a basic plonk killfile in 40tude dialog?
From: VanguardLH
Date: Thu, 27 Sep 2018 01:06
Date: Thu, 27 Sep 2018 01:06
171 lines
9617 bytes
9617 bytes
Doyun Jahng wrote:
> Bernd Rose
>
>> Worked for me on a test. The best way to avoid typos when plonking is
>> hitting <Ctrl+m>.
>
> I am ready to give up on dialog as it just will not plonk.
>
> For example, you unfortunately assume that I know _when_ you hit <Ctrl+m>.
> I hit <Ctrl+m> in the Header pane on your header & nothing happened.
> I hit <Ctrl+m> in "Scoring and Actions" & all it did was add a blank line.
>
> Whatever <Ctrl+m> does must be extremely context sensitive since it does
> nothing useful in those two-most-relevant contexts.
In Dialog's help regarding keyboard shortcuts, I did not see Ctrl+M
mentioned. When I searched on "plonk", the help mentions to use the
menu: Message -> Scoring and actions and dragged the "Add plonk rule"
button to a toolbar.
I suspect Bernd added his own keyboard shortcut of Ctrl+M. Go to
Settings -> Configure buttons & shortcuts, select the Message category,
and scroll down to the "Add plonk rule" button. You can optionally drag
that button to a toolbar (to use a button or key combo). For the "Add
plonk rule" object, click the mouse inside the Shortcut field. Hit the
key combo you want to use as a keyboard shortcut, like "Ctrl" (press and
hold) and "M" to specify Ctrl+M as that object's shortcut key.
I've never bothered to modify the "Add plonk rule" button/object. When
I went to the above menu nav path, the shortcut field was blank; that
is, no key shortcut was assigned to that object. Help's list of default
key shortcuts doesn't list Ctrl+M. A search on "plonk" in Help only
returns the menu nav path method. I think Bernd added the Ctrl+M
shortcut key combo.
>> This is /nearly/ equal to menu (and right mouse menu)
>> function <Scoring and Actions...><Add Plonk Rule...>, but always adds
>> the plonk to [*] instead of a section of the currently selected group.
>> (The shortcut can be changed via <Settings><Configure buttons/shortcuts>.)
And if you wanted your auto-added rule to be global, the complaint would
be that Dialog is adding the rule only under the current newsgroup.
Rules can be global, specific to one newsgroup, or applied to multiple
newsgroups. That's why I don't use the menus of shortcut keys to use
the inbuilt wizards in Dialog. I usually copy the headers of a post,
paste them into Notepad where I edit on what I will test for a new rule,
and open the "Scoring and actions" dialog to enter the rule under the
newsgroup(s) where I want it to be applicable. The menus and buttons
(to which you can assign shortcut keys even if the buttons aren't added
to a toolbar; i.e., hidden buttons) really cannot figure out how you
intend to define a rule or where it applies. Assumptions must be made.
> I noticed when looking at that settings.ini file that there are
> [Identity0], [Identity1], [Identity2], [Identity3], sections.
>
> Maybe that's why none of the dialog plonking rules ever seem to work?
> Is there a "global" identity?
>
> Or do I need to add this to every identity section?
I have never bothered to create more than one identity (profile) in
Dialog because I want to always present the same Usenet identity in my
posts. In my settings.ini file, there is only the [Identity0] block.
No other identity blocks exist. For you to have multiples of them means
you created more identities. I suspect the only data recorded in each
identity block is what you see under Settings -> Servers, Identities,
Signatures -> Identities. That's what gets switched in what Dialog uses
when you switch between identities.
I believe rules are applied across all identities. There is only one
rules file (filters.dat) used by all identities. There is no field
within an identity that specifies which rules file to use for that
identity.
> It's not regex that is foiling me - I know regex rather well.
> It's that none of the plonk rules work in dialog no matter what I do.
You might want to use the setcolor(fg;bg) operator in your rules to see
if they ever fired. It's possible, for example, to have a later rule
that undoes a prior rule. For example, you could have:
[*]
<rule1>
....
[group1]
<rule2>
....
[*]
<rule3>
If, for example, rule1 set the Ignore flag on a post and rule2 colorized
another post but rule3 used 'unset' which clears the watch/ignore flags
along with using setcolor(default,default) then it undoes your first two
rules.
Also, Dialog does 2 passes through the rules. As I recall (Bernd might
correct me), the first pass exercises those rules that apply on just the
overview headers. Pass 2 applies the remaining unexercised rules. For
example, I delete or flag a post in a rule whose conditions specify
testing on the overview headers (From, References, Message-ID, etc). On
the 2nd pass, the other rules don't need to get exercised against that
post because it has already been deleted or flagged. That's why if I
have multiple filters against the same poster or content, I list them in
order of 1st-pass (test on overview headers) and then 2nd-pass filters.
If the 1st-pass filter fires, Dialog will not waste time on the 2nd-pass
filters hence speeding up applying the filters.
Ah, finally found the info in Dialog's help file which says:
Reference -> Scoring/Actions Syntax
Processing
Usenet articles are scored twice in Dialog. When you get headers in a
group the scoring rules are applied to the available, limited number of
headers, however when you retrieve the complete body of the message, the
message is scored again and this time all headers can be scored.
I have Dialog configured to retrieve headers+body. That way I can test
on all headers, not just the overview headers. When multiple filters
are defined against the same poster or unwanted content (by Subject), I
list the filters that test on the overview headers (1st pass) before the
filters that test on the non-overview headers (2nd pass), like:
!delete From <poster>
!delete Message-ID {<ltoken@rtoken>}
!delete Header {(?-s)^Path: <injectionnode>$}
The first 2 rules are on overview headers, so I list them first to fire
in the 1st pass. The 3rd rule doesn't apply if one of the first 2
filters already fired on a message, so it gets skipped. Only if the
first 2 filters missed a post would the 3rd rule get exercised.
How big is your rules set? If you only have a couple rules, you could
post what you have so far to let others analyze if you wrote them up
correctly and not interfere, conflict, or contradict each other.
> As noted I never want to have an arbitrary score. All I want is what
> everyone would want, which is so simple it should be its own button.
As mentioned, you can customize the toolbar(s) to drag the "Add plonk
rule" button; however, you get the effect of how this object was coded
in Dialog which may not create the rule you want (it makes very simple
filters, like testing on just the From header, and trolls nymshift all
the time) or put the rule in the group block you want (* versus some
group name).
Pretty much the "Add plonk rule" is working the same as how plonking
works in most other NNTP clients: add the poster based on the From
header to a blacklist; however, Dialog lets you specify under which or
all groups a filter will apply versus other clients where all filters
are global.
> When I see a header from a troll, I just want to plonk it forever.
> Never again in any group, from any identity, do I want to see
> anything from that troll.
Look at the headers for the troll's post. Copy them here. We can then
see if the filter you have for that poster is defined correctly. I
know, for example, that Dialog will not test correctly on UTF-encoded
Subject headers. Looking in raw mode, you'll see the Subject header's
value starts with "UTF-8?..." which means it is encoded, not plain text.
If you test on the rendered string, Dialog's filter fails. If you try
to test on "UTF-8?..." string, Dialog still fails. It is also possible
to encode the From header, so Dialog may be having problems testing the
specified string (which you enter as plain text) against the encoded
value of the string.
Knowing what is in the headers of the troll post and what rule you have
created would let others analyze if the filter will work on the post.
If you don't want to copy the headers of the post to show here, give the
Message-ID of the troll post. That can be used to lookup the post.
Technical Details
Message-ID:
<1jj47zufvzt68$.dlg@v.nguard.lh>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mailReferences:
<po1oib$2nbu$1@adenine.netfront.net> <3ztpm0g3eprq.dlg@v.nguard.lh> <po2no7$48s$1@adenine.netfront.net> <woa6m33isfx1.dlg@b.rose.tmpbox.news.arcor.de> <poh1nj$18c0$1@adenine.netfront.net>Show Full Headers
Complete Article Headers
Message-ID: <1jj47zufvzt68$.dlg@v.nguard.lh> Subject: Re: [Dialog] What is the procedure for a basic plonk killfile in 40tude dialog? Date: Wed, 26 Sep 2018 20:06:25 -0500 From: VanguardLH <V@nguard.LH> References: <po1oib$2nbu$1@adenine.netfront.net> <3ztpm0g3eprq.dlg@v.nguard.lh> <po2no7$48s$1@adenine.netfront.net> <woa6m33isfx1.dlg@b.rose.tmpbox.news.arcor.de> <poh1nj$18c0$1@adenine.netfront.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers Organization: Usenet Elder Lines: 171 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net YDsbtFxMtyMg8iVGiBWvBQCV8aOnYRhF+FS863cxEM0vQiJTCs Keywords: VanguardLH VLH811 Cancel-Lock: sha1:QTxwFNDmIsbQwebEujO6r/qf7yY= User-Agent: 40tude_Dialog/2.0.15.41 X-Received-Bytes: 9504 X-Received-Body-CRC: 3401312810