🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #188321

Re: [Dialog] Action based on body content ?

#188321
From: Oliver Cromm
Date: Fri, 21 Jul 2006 21:57
33 lines
2641 bytes
* Len Philpot wrote:

> I'm using Dialog 2.0.15.1 and have a couple of questions :
> 
> Is there any way to trigger an action (say, delete) based on a regex
> match within the /body/ of an article?

There is a script to do that.
<http://www.40tude.com/dialog/wiki/index.php/ScriptXBody>

It adds one or more custom X-headers to a message, when the body matches
your patterns, and then you can score (or perform actions) on those
headers. 

But it is one of the most complex scripts around and needs one or more
include files, see
<http://www.40tude.com/dialog/wiki/index.php/Script_Library>.

It would be good to have experience with Dialog scripts or at least with
programming in general.

> Where can I find information, example, etc. of implementing a bozo bin /
> killfile or equivalent? I can add them manually, e.g.,
>    [x.y.z]
>    !delete From "Joe Annoying"
> but I've seen no way to do this automatically with a keypress or mouse
> click.

It has been mentioned, you can also assign your favorite key to any menu
action in the settings menu ("configure buttons/shortcuts" or what the
English version is).
-- 
Smith & Wesson--the original point and click interface
Technical Details
Message-ID: <10icjqrjglutc.dlg@ocromm.my-fqdn.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!statler.nntpserver.com!news-out.octanews.net!indigo.octanews.net!auth.brown.octanews.com.POSTED!not-for-mail
References: <1flwx15zxqkqj.bvaqz0b8a6h6$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <10icjqrjglutc.dlg@ocromm.my-fqdn.de>
Subject: Re: [Dialog] Action based on body content ?
Date: Fri, 21 Jul 2006 17:57:35 -0400
From: Oliver Cromm <lispamateur@internet.uqam.ca>
References: <1flwx15zxqkqj.bvaqz0b8a6h6$.dlg@40tude.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!statler.nntpserver.com!news-out.octanews.net!indigo.octanews.net!auth.brown.octanews.com.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.1de
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Organization: École Nationale Supérieure de la Bananologie
X-Face: .f:ZE>c\~9oJ+1nK#>ntSHOQS~4x"Qx2m(<D<@p$G"tzb1lgWLUGY.zApKa@VL_?d$r(8=?VjrD9=uY:x!+H=hvj58Uw7)Y9<:KMYD.+^~#qMpeg2rvt`{#2a~7YoyFaFaBEdo4.TJzBqgtCZZ:mku4J|hey}DE}_"z(rl0N)\Pxh*0$"3B2mr\01&YPY7WJ:2kSe'I#PqiTxs1s49!S#W85'\zMXy*wRgD,,k.=4:3M{(P"i6S;
 \az~ut3z`; ?*Y;
 &]11<(EPF-SN`|3PhyL%~AuZpoFjjE_oM1`znHPq_?uib2WXwE+q@m),cLq~B$r^5uO]u6?CEecn=%xsDXNVa(1DX.)O(
Lines: 33
NNTP-Posting-Date: 21 Jul 2006 16:57:32 CDT
X-Complaints-To: abuse@octanews.net