Article View: news.software.readers
Article #172756Re: [Dialog] Please help with script
From: Marcus Mönnig
Date: Sun, 04 Sep 2005 09:06
Date: Sun, 04 Sep 2005 09:06
45 lines
2768 bytes
2768 bytes
*Jarrod Cifer*, 4 Sep. 05, 10:01:
> Nice! Do you mind if I put this in the script library?
If you do, please use this slightly modified version which fixes a problem
with emails without a subject header, works with "Re: ..." is a bit more
optimized.
program OnBeforeSavingMessage;
const NameofList = '['+'Type the Name of the List Here'+']';
procedure OnBeforeSavingMessage(var Message: TStringlist;
Servername: string;
IsEmail: boolean);
var
i,p: integer;
Soggetto: string;
begin
if IsEmail then begin
for i:=0 to message.count-1 do begin
if copy (message[i], 1, 9)='Subject: ' then begin
p := pos (NameofList, message[i]);
if p > 0 then begin
Soggetto := message[i];
delete (Soggetto, p, Length(NameofList));
message[i]:=Soggetto;
end;
break;
end
else if message[i]='' then break;
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:
<g3xm2xzwovub$.lfv2honlyspl.dlg@40tude.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.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mailReferences:
<70z8yhn3xtl5$.dlg@40tude.net> <de303fad33a37574afc343cb322610f4%ghost@Lem98.here> <megxhxzv8oc2$.dlg@jcifer.my-fqdn.de>Show Full Headers
Complete Article Headers
Message-ID: <g3xm2xzwovub$.lfv2honlyspl.dlg@40tude.net>
Subject: Re: [Dialog] Please help with script
Date: Sun, 4 Sep 2005 11:06:04 +0200
From: Marcus Mönnig <usenet-apr05@40tude.com>
References: <70z8yhn3xtl5$.dlg@40tude.net> <de303fad33a37574afc343cb322610f4%ghost@Lem98.here> <megxhxzv8oc2$.dlg@jcifer.my-fqdn.de>
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.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail
Newsgroups: news.software.readers
Organization: 1&1 Internet AG
Lines: 45
NNTP-Posting-Host: p508fb44a.dip0.t-ipconnect.de
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: online.de 1125824775 10973 80.143.180.74 (4 Sep 2005 09:06:15 GMT)
X-Complaints-To: abuse@einsundeins.com
NNTP-Posting-Date: Sun, 4 Sep 2005 09:06:15 +0000 (UTC)
X-Now-Playing: nothing
User-Agent: 40tude_Dialog/2.0.15.64 (e6e657c7.489.116)
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