Article View: news.software.readers
Article #189776Re: [Dialog] Rewriting subject lines?
From: Korbinian Abenthum
Date: Wed, 23 Aug 2006 08:53
Date: Wed, 23 Aug 2006 08:53
46 lines
2612 bytes
2612 bytes
foxidrive wrote:
> On Tue, 22 Aug 2006 21:02:58 -0400, Jay Levitt wrote:
>> Is there a way to rewrite the subject line, removing the prefix, so that
>> Dialog will detect the thread properly?
> I use this script to remove "[MFC] " sans quotes from emails.
> You'll need somebody clever to change the 'IsEmail' to work for a newsgroup
> and of course alter the text that you want removed.
Change line 12 from
| if IsEmail then begin
to
| if NOT IsEmail then begin
-----8<------
program OnBeforeSavingMessage;
const NameofList = '[Rails] ';
procedure OnBeforeSavingMessage(var Message: TStringlist;
Servername: string;
IsEmail: boolean);
var
i,p: integer;
Soggetto: string;
begin
if NOT 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.
Technical Details
Message-ID:
<230806.105324.nsr.131@news.abenthum.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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.m-online.net!not-for-mailReferences:
<xzs9foinnu3b.dlg@jay.fm> <6tja8jli3pcz.ub875qie6oee.dlg@40tude.net>Show Full Headers
Complete Article Headers
Message-ID: <230806.105324.nsr.131@news.abenthum.de>
Subject: Re: [Dialog] Rewriting subject lines?
Date: Wed, 23 Aug 2006 10:53:24 +0200
From: Korbinian Abenthum <korbinian@gmx.de>
References: <xzs9foinnu3b.dlg@jay.fm> <6tja8jli3pcz.ub875qie6oee.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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.m-online.net!not-for-mail
Newsgroups: news.software.readers
Organization: (posted via) M-net Telekommunikations GmbH
Lines: 46
NNTP-Posting-Host: ppp-82-135-94-100.dynamic.mnet-online.de
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: svr7.m-online.net 1156323350 7918 82.135.94.100 (23 Aug 2006 08:55:50
GMT)
X-Complaints-To: abuse@m-online.net
NNTP-Posting-Date: Wed, 23 Aug 2006 08:55:50 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.15.35de Hamster/2.1.0.11
X-Face: &[gF$*:|'M7pwKut]{LOz!&65BT96:Wn\M"V6Qa#q%~9^z8XhJfmh?.)VB{,
p]Z`6q@e()!g1ghrG7.atG.DXfzulkKE%u~|D7?e6^-yN4GvZJuvz%$LZBA6`dJTo,
MYUO%I*0us[.v/AT,