🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #122227

Re: [dialog] Signature wrapping

#122227
From: Jo'Asia
Date: Tue, 25 Mar 2003 22:06
54 lines
2598 bytes
Marcus M�nnig wrote in message:

> Use the script below. You'll need to change the signature inside Dialog 
> from "%file:...%" to "MyUniqueIdentifier". In the script change 
> "C:\mysignature.txt" to the correct file name of your signature file.

I think I understand that one. Almost.

> program OnBeforeSendingMessage;
> 
> function OnBeforeSendingMessage(var Message: TStringlist; Servername: string; IsEmail: boolean):boolean;
> var i:integer;
>     s:string;
>     sl:TStringlist;
> begin
> result:=true;

Except this:

> if (message.count<3000) then

Why the condition?

>    begin
>    s:=message.text;
>    i:=pos('MyUniqueIdentifier',s);
>    if i>0 then
>    	begin
> 	delete(s,i,length('MyUniqueIdentifier'));	
> 	sl:=Tstringlist.create;
> 	try
> 	sl.loadfromfile('C:\mysignature.txt');
> 	insert(sl.text,s,i);
> 	finally
> 	sl.free;	
> 	end;
>    	message.text:=s;	
>    	end;
>    end;
> end;
> 
> begin
> end.

Thank very much!

Jo'Asia

-- 
   __.-=-.        Joanna Slupek  http://bujold.fantastyka.net/         .-=-.__
    --<()>       (Add one 'l' to 'hel' when replying by e-mail)        <()>--
   .__.'|     .....................................................     |'.__. 
 With every PLONK the world becomes brighter                             (MMR)
Technical Details
Message-ID: <b5qndl.3vv7m3b.1@sloth.hell.pl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!newsfeed.tpinternet.pl!newsfeed.gazeta.pl!news.nask.pl!news.cyf-kr.edu.pl!agh.edu.pl!news.agh.edu.pl!dustpuppy.sloth.hell.pl!not-for-mail
References: <b5qh2m.3vv6epj.1@sloth.hell.pl> <1r8rp5zkgjb9m.dlg@40tude.com>

Show Full Headers
Complete Article Headers
Message-ID: <b5qndl.3vv7m3b.1@sloth.hell.pl>
Subject: Re: [dialog] Signature wrapping
Date: Tue, 25 Mar 2003 23:06:29 +0100
From: Jo'Asia <JoAsia@rassun.art.pl>
References: <b5qh2m.3vv6epj.1@sloth.hell.pl> <1r8rp5zkgjb9m.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!newsfeed.tpinternet.pl!newsfeed.gazeta.pl!news.nask.pl!news.cyf-kr.edu.pl!agh.edu.pl!news.agh.edu.pl!dustpuppy.sloth.hell.pl!not-for-mail
Newsgroups: news.software.readers
Organization: KF Rassun, SF Framling
Lines: 53
NNTP-Posting-Host: chello062179028016.chello.pl
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: galaxy.uci.agh.edu.pl 1048630010 16093 62.179.28.16 (25 Mar 2003 22:06:50 GMT)
X-Complaints-To: usenet@uci.agh.edu.pl
NNTP-Posting-Date: Tue, 25 Mar 2003 22:06:50 +0000 (UTC)
X-Newsreader: Forte Agent 1.93/32.576 English (American)
User-Agent: Hamster/2.0.0.1