🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #122224

Re: [dialog] Signature wrapping

#122224
From: Marcus Mönnig
Date: Tue, 25 Mar 2003 21:18
50 lines
2626 bytes
Jo'Asia wrote in <b5qh2m.3vv6epj.1@sloth.hell.pl>:

> It works only for a single line. But my sig is created totally outside
> newsreader (and that is a thing I will not change). So after I add the
> Wrap Override Character in front of the %file:...% line it unwraps only
> the first line of my signature and the rest is still mangled.
> 
> Do you have any other ideas?

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.


program OnBeforeSendingMessage;

function OnBeforeSendingMessage(var Message: TStringlist; Servername: string; IsEmail: boolean):boolean;
var i:integer;
    s:string;
    sl:TStringlist;
begin
result:=true;
if (message.count<3000) then
   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.

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: <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!nntp.cs.ubc.ca!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
References: <b5qh2m.3vv6epj.1@sloth.hell.pl>

Show Full Headers
Complete Article Headers
Message-ID: <1r8rp5zkgjb9m.dlg@40tude.com>
Subject: Re: [dialog] Signature wrapping
Date: Tue, 25 Mar 2003 22:18:18 +0100
From: Marcus Mönnig <usenet-mar03@40tude.com>
References: <b5qh2m.3vv6epj.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!nntp.cs.ubc.ca!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
Newsgroups: news.software.readers
Organization: T-Online
Lines: 49
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.t-online.com 1048627122 03 20785 my3tExEVSJA4Em 030325 21:18:42
X-Complaints-To: abuse@t-online.com
X-ID: XQ9C3rZBgeVmCpppCxKneT89l5bFRwcWK8PzdqlDBzjsfaj3U6yxrQ
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
User-Agent: 40tude_Dialog/2.0.3.12 (df3dae0f.337.327)