Thread View: news.software.readers
3 messages
3 total messages
Started by Anders Eriksson
Fri, 14 Nov 2003 10:55
Script for Follow-up Warning
Author: Anders Eriksson
Date: Fri, 14 Nov 2003 10:55
Date: Fri, 14 Nov 2003 10:55
6 lines
1648 bytes
1648 bytes
Hello! Are there anyone that has created a script that inserts a warning/info in the message when a follow-up has been set when crossposting? // Anders
Re: Script for Follow-up Warning
Author: Enrico Bauer
Date: Fri, 14 Nov 2003 12:08
Date: Fri, 14 Nov 2003 12:08
89 lines
3712 bytes
3712 bytes
14.11.2003 11:55:44, *Anders Eriksson*:
> Are there anyone that has created a script that inserts a warning/info in
> the message when a follow-up has been set when crossposting?
author: Lars Biskupek
AFAICS it's in the testing phase yet. So don't complain! ;-)
// ---------------------------------------------------------------------
program OnBeforeSendingMessage;
// ** Introduction for XPost/Fup2-Message
// ** change message as you want to
const
MessageXPost = 'X'+#39+'Posted to:';
MessageFup2 = 'F'+#39+'up2:';
// ** Begin of code
Procedure XPost_and_FUp2_Information (var Message: TStringlist;
Servername: string; IsEmail: boolean);
var
FUP2,
XPost,
Header: boolean;
i,
SigLine: integer;
s,
Fup2Group,
XPostGroups: string;
begin
if IsEmail=true then exit;
FUP2:=false;
XPost:=false;
Header:=true;
SigLine:=0;
for i:=0 to Message.count-1 do
begin;
s:= message.strings[i];
if s='' then header:=false;
if header=true then
begin;
if Pos('Followup-To:',s)>0 then
begin;
FUP2:=true;
Fup2Group:=copy(s,13,length(s)-12);
// WriteToLog(MessageFup2+Fup2Group,1);
end;
if Pos('Newsgroups:',s)>0 then
if Pos(',',s)>0 then
begin;
XPost:=true;
XPostGroups:=copy(s,12,length(s)-11);
// WriteToLog(MessageXPost+XPostGroups,1);
end;
end
else
if s='-- ' then
SigLine:=i;
// WriteToLog('Analysierte Zeile: '+s,1);
end;
if FUP2=true then
if Sigline=0 then
Message.Add(MessageFup2+Fup2Group)
else
Message.Insert(Sigline,MessageFup2+Fup2Group);
if XPost=true then
if Sigline=0 then
Message.Add(MessageXPost+XPostGroups)
else
Message.Insert(Sigline,MessageXPost+XPostGroups);
if (FUP2=true) or (XPost=true) then
if Sigline=0 then
Message.Add('')
else
Message.Insert(SigLine,'');
end;
function OnBeforeSendingMessage(var Message: TStringlist; Servername:
string; IsEmail: boolean):boolean;
begin;
result:=true;
XPost_and_FUp2_Information (Message, Servername, IsEmail);
end;
begin
end.
// ---------------------------------------------------------------------
Enrico B.
[Dialog] Script for Follow-up Warning
Author: Antonio 'Gandalf' Favata
Date: Fri, 14 Nov 2003 22:42
Date: Fri, 14 Nov 2003 22:42
13 lines
2158 bytes
2158 bytes
news.software.readers ~ 14/11/2003 13.08 ~ Enrico Bauer:
>> Are there anyone that has created a script that inserts a warning/info in
>> the message when a follow-up has been set when crossposting?
> author: Lars Biskupek
> AFAICS it's in the testing phase yet. So don't complain! ;-)
IME works greatly, just what I wanted! Thanks Lars and thanks Enrico :)
--
Fare Well! | Stop with OE: 40tude Dialog 2.0.8.1 http://snurl.com/dialog
G | Advice: Multilingual dictionary http://www.foreignword.com
14/11/2003 23.12.58
Trespassers will be shot. Survivors will be shot again.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads