🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #127561

Re: [Dialog] Customising Posts

#127561
From: Alain GUERIN
Date: Wed, 02 Jul 2003 19:50
39 lines
2342 bytes
Hello,
On Wed, 2 Jul 2003 21:40:37 +0200, Alain GUERIN wrote:

Oups ! bad version.

> 
> 
> function OnBeforeSendingMessage(var Message: TStringlist; Servername:
> string; IsEmail: boolean):boolean;
> 
> var
>    HeaderCount : INTEGER;
>    InsertionPlace : INTEGER;
>    InsertionContent : String;
>    Language : TLanguage;
>    TimePeriod : TDayTime;
> 
> begin
> //Your code goes here
> //Return false to prevent sending the passed message
>    IF NOT IsEMail THEN
>    BEGIN
>       HeaderCount := 0;
>       WHILE (HeaderCount < Message.count) AND (pos('Newsgroups:',
> Message.Strings[HeaderCount]) <> 1) DO
>          HeaderCount:=HeaderCount+1;
>       IF HeaderCount < Message.count THEN

this line with begin must be deleted

>       BEGIN


>          Language := SelectLanguage(Message.Strings[HeaderCount]);
>       HeaderCount := 0;

Sorry
-- 
A.G.
Technical Details
Message-ID: <3f03379a$0$5443$626a54ce@news.free.fr>
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!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!mephistopheles.news.clara.net!news.clara.net!proxad.net!feeder2-1.proxad.net!news3-2.free.fr!not-for-mail
References: <3f03353e$0$5400$626a54ce@news.free.fr>

Show Full Headers
Complete Article Headers
Message-ID: <3f03379a$0$5443$626a54ce@news.free.fr>
Subject: Re: [Dialog] Customising Posts
Date: Wed, 2 Jul 2003 21:50:40 +0200
From: Alain GUERIN <news40@spamout-alain-guerin.com.invalid>
References: <3f03353e$0$5400$626a54ce@news.free.fr>
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!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!mephistopheles.news.clara.net!news.clara.net!proxad.net!feeder2-1.proxad.net!news3-2.free.fr!not-for-mail
Newsgroups: news.software.readers
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Reply-To: news40@alain-guerin.com
Organization: NA
X-Face: GOI#J$,onz-'Uz6us^h!d&!=/wSO@@FxWc?}1i_p@/E%ViONg.TD9>V7VA4(S/j%&mb%4uD
 ,=8(bmy`{t`AM[~^Y#8*]ZJ;
 {y2%EU,B'%$9[qEDa)B{/P4+eTD5E4{Un+XE$|RWd(=aNN%(,yP,cG
 =k=7dqQ"euLbBTVKLCV-Ql@aFEdzF1F6GU4b}qG%JPDjL'~T2;
 -03s=7s5[QUH@>GQ!CLJ@S{%K[m1
 $j`EsD+M&'5>>&-'tfiB0p',<4e0SN,4NDZ:f._qI9vVW0[r\~yk7{.GmY^cN*&/=5qjcH&Q; $
User-Agent: 40tude_Dialog/2.0.5.1
Lines: 39
NNTP-Posting-Date: 02 Jul 2003 21:50:50 MEST
NNTP-Posting-Host: 81.57.20.30
X-Trace: 1057175450 news3-2.free.fr 5443 81.57.20.30:1910
X-Complaints-To: abuse@proxad.net