Article View: news.software.readers
Article #259434Re: [Dialog] Adding Plonk Filter VIA Script
From: Sqwertz
Date: Sat, 22 Aug 2015 01:39
Date: Sat, 22 Aug 2015 01:39
39 lines
2595 bytes
2595 bytes
On Fri, 21 Aug 2015 13:52:02 -0400, Oliver Cromm wrote:
> * Sqwertz:
>
>> How do I add a GLOBAL plonk filter VIA a script?
>>
>> ado('AddPlonkFiler') adds a plonk by name filter for the current email
>> for the current newsgroup. I would like to add it to the global
>> section of the filter rules: [*]
>>
>> I'm trying to make a script/button to add the current article's author
>> to the global filter. My default action for adding a plonk rule is
>> !delete, if that matters.
>
> If you hold Ctrl while selecting the menu option, the plonk rule
> goes to the global section (likewise for the other rules).
Yeah, I'm looking for a way to do it programmatically.
> Not
> sure about the name of the corresponding script function, none is
> listed at
> <http://bertel.lundhansen.dk/?page=dialog/functionlist&m=M#Message>.
That only looks like a partial list of maybe just the menu commands
(or maybe a previous version of Dialog?). You can get a current full
list of functions by using Writeln(GetActionList);
Which lists the two plonk routines:
****
Caption: Add PLONK rule... Category: Message Name: AddPlonkFilter
Caption: Add subject PLONK rule... Category: Message Name: AddSubjectPlonkFilter
****
But I can't tell if I can pass any parameters to these or what they are.
And I don't think I can postkey() just a [CTRL] keypress before calling
the procedure (I can't even find a reference for postkey())
-sw
Technical Details
Message-ID:
<zhp6ot4xonlc.dlg@sqwertz.com>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:
<9n5luk74js3m.dlg@sqwertz.com> <5gxdor48w114.dlg@mid.crommatograph.info>Show Full Headers
Complete Article Headers
Message-ID: <zhp6ot4xonlc.dlg@sqwertz.com> Subject: Re: [Dialog] Adding Plonk Filter VIA Script Date: Fri, 21 Aug 2015 20:39:50 -0500 From: Sqwertz <swertz@cluemail.compost> References: <9n5luk74js3m.dlg@sqwertz.com> <5gxdor48w114.dlg@mid.crommatograph.info> 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: Me, Myself, and Inc. Lines: 39 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: mx02.eternal-september.org; posting-host="25267948b74595c2af949a00d0309401"; logging-data="21470"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194VuIvqE8zJ4Z7yT1QYdPY" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 Cancel-Lock: sha1:yIlt80GUlHAwgJc3VZYCZ5oc8jo= X-no-archive: yes X-Received-Bytes: 2548 X-Received-Body-CRC: 2769590202