๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #146444

Re: [Dialog] Stop an outgoing message

#146444
From: Enrico C
Date: Fri, 16 Apr 2004 09:53
37 lines
2454 bytes
Marcus Mรถnnig | news.software.readers
in <news:1x19iptm2rghn$.dlg@40tude.com>

>> How can I stop an outgoing message after the Send command, but before
>> it is actually sent, in an OnBeforeSendingMessage script? 
>> 
>> I tried Ado('StopAllTasks'), but the outgoing message is sent anyway.
>> 
>> Of course, the halt would apply only to certain messages.
> 
> Just return false as the function result:

Thanks a lot! :)

> function OnBeforeSendingMessage(var Message: TStringlist; Servername:
> string; IsEmail: boolean):boolean;
> begin
>   result := false;
> end;

> This will stop sending of all messages, so you will want to make this
> dependant on something.

In my case, now it's something like  

||    function OnBeforeSendingMessage(var Message: TStringlist; Servername:  string; IsEmail: boolean):boolean;
||   begin;  
||   result:=true;
||   My_Procedure (Message, Servername, IsEmail); 
||   if My_StopIt_Var_From_an_Input_Window = True then result:=false;  
||   end;


-- 
Le FAQ italiane del newsreader 40tude Dialog
http://fido.altervista.org/Dialog/faq.html
http://www.lillathedog.net/dialog/faq.html
Technical Details
Message-ID: <hu269zjn9qkj$.dlg@news.lillathedog.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.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!irazu.switch.ch!switch.ch!newsfeed.nextoneserver.com!news.newsland.it!x-privat.org!not-for-mail
References: <1mcy1ddk7xq8t.dlg@news.lillathedog.net> <1x19iptm2rghn$.dlg@40tude.com>

Show Full Headers
Complete Article Headers
Message-ID: <hu269zjn9qkj$.dlg@news.lillathedog.net>
Subject: Re: [Dialog] Stop an outgoing message
Date: Fri, 16 Apr 2004 09:53:59 +0000
From: Enrico C <use_replyto_address@despammed.com>
References: <1mcy1ddk7xq8t.dlg@news.lillathedog.net> <1x19iptm2rghn$.dlg@40tude.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.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!irazu.switch.ch!switch.ch!newsfeed.nextoneserver.com!news.newsland.it!x-privat.org!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.10.155 (6f3a8fa6.411.100) Hamster/2.0.4.0
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Reply-To: enrico.c@people.it
Organization: LillaTheDog.net
X-Face: "r6; _Y:euflWQIf$5%P0Fc%TyS(t/+D6fCCS2W;
 0Rk)BBVCt|z#ERoPCI%0QA`vmEi&(y'; 5Th{Li4G1HXItb0_)&PWr
NNTP-Posting-Host: 213.203.156.37
X-Trace: x-privat.org 1082109239 213.203.156.37 (16 Apr 2004 11:53:59 +0200)
Lines: 37
X-Complaints-To: abuse@x-privat.org