Article View: news.software.readers
Article #146379Re: [Dialog] Stop an outgoing message
From: Marcus Mönnig
Date: Thu, 15 Apr 2004 18:24
Date: Thu, 15 Apr 2004 18:24
27 lines
2109 bytes
2109 bytes
*Enrico C*, 15 Apr. 04, 20:16:
> To the script gurus:
>
> 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:
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.
Marcus
--
No replies in private e-mail, please, unless explicitly requested!
Please log bug reports into Mantis: http://www.40tude.com/dialog/mantis/
Please share your scripts and tips: http://www.40tude.com/dialog/wiki/
Technical Details
Message-ID:
<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!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mailReferences:
<1mcy1ddk7xq8t.dlg@news.lillathedog.net>Show Full Headers
Complete Article Headers
Message-ID: <1x19iptm2rghn$.dlg@40tude.com>
Subject: Re: [Dialog] Stop an outgoing message
Date: Thu, 15 Apr 2004 20:24:01 +0200
From: Marcus Mönnig <usenet-april04@40tude.com>
References: <1mcy1ddk7xq8t.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!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail
Newsgroups: news.software.readers
Organization: T-Online
Lines: 27
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.t-online.com 1082053499 01 24666 qgYtGQ4rnT-WmyL 040415 18:24:59
X-Complaints-To: usenet-abuse@t-online.de
X-ID: EBcAJBZegeuM-j1T8GrxouMtolVsQAquUSsERTWZQi+zmqiJhpbXUl
User-Agent: 40tude_Dialog/2.0.10.193 (077e485c.481.10)
X-Face: .k.-$2:"SOnv`$+._5GWLVbo=\AYg!R'T#G[$P`Chd0T$NtF2}68aF}1gRDrxTQi']7Ldza
n{+d:rTHS*nc<xt?o:zVx>3P$=`rx}:o1!BA'OmJn(lR=Y%mG{*T#D-B02=:Dh0138$V