Msg text filters out FIDO kludge lines
This commit is contained in:
parent
6c7547f92f
commit
2c285004f8
|
@ -452,6 +452,7 @@ Var
|
||||||
ArticleNum : LongInt = 0;
|
ArticleNum : LongInt = 0;
|
||||||
Found : Boolean = False;
|
Found : Boolean = False;
|
||||||
MsgBase : PMsgBaseABS;
|
MsgBase : PMsgBaseABS;
|
||||||
|
Str : String;
|
||||||
Begin
|
Begin
|
||||||
If Not LoggedIn Then Begin
|
If Not LoggedIn Then Begin
|
||||||
ClientWriteLine(re_AuthReq);
|
ClientWriteLine(re_AuthReq);
|
||||||
|
@ -500,7 +501,8 @@ Begin
|
||||||
|
|
||||||
MsgBase^.MsgTxtStartUp;
|
MsgBase^.MsgTxtStartUp;
|
||||||
|
|
||||||
Client.WriteLine('220 0 ' + strI2S(ArticleNum));
|
ClientWriteLine ('220 ' + strI2S(ArticleNum) + ' <0> article retrieved - head and body follow');
|
||||||
|
// ClientWriteLine('220 0 ' + strI2S(ArticleNum));
|
||||||
|
|
||||||
Client.WriteLine('From: ' + MsgBase^.GetFrom);
|
Client.WriteLine('From: ' + MsgBase^.GetFrom);
|
||||||
Client.WriteLine('Newsgroups: ' + MBase.NewsName);
|
Client.WriteLine('Newsgroups: ' + MBase.NewsName);
|
||||||
|
@ -508,8 +510,13 @@ Begin
|
||||||
Client.WriteLine('Date: ' + MsgBase^.GetDate);
|
Client.WriteLine('Date: ' + MsgBase^.GetDate);
|
||||||
Client.WriteLine('');
|
Client.WriteLine('');
|
||||||
|
|
||||||
While Not MsgBase^.EOM Do
|
While Not MsgBase^.EOM Do Begin
|
||||||
Client.WriteLine(MsgBase^.GetString(79));
|
Str := MsgBase^.GetString(79);
|
||||||
|
|
||||||
|
If Str[1] = ^A Then Continue;
|
||||||
|
|
||||||
|
Client.WriteLine(Str);
|
||||||
|
End;
|
||||||
|
|
||||||
Client.WriteLine ('.');
|
Client.WriteLine ('.');
|
||||||
|
|
||||||
|
@ -523,6 +530,7 @@ Var
|
||||||
Found : Boolean = False;
|
Found : Boolean = False;
|
||||||
MsgBase : PMsgBaseABS;
|
MsgBase : PMsgBaseABS;
|
||||||
MsgText : TStringList;
|
MsgText : TStringList;
|
||||||
|
Str : String;
|
||||||
Begin
|
Begin
|
||||||
If Not LoggedIn Then Begin
|
If Not LoggedIn Then Begin
|
||||||
ClientWriteLine(re_AuthReq);
|
ClientWriteLine(re_AuthReq);
|
||||||
|
@ -575,8 +583,13 @@ Begin
|
||||||
|
|
||||||
MsgText.Clear;
|
MsgText.Clear;
|
||||||
|
|
||||||
While Not MsgBase^.EOM Do
|
While Not MsgBase^.EOM Do Begin
|
||||||
MsgText.Add(MsgBase^.GetString(79));
|
Str := MsgBase^.GetString(79);
|
||||||
|
|
||||||
|
If Str[1] = ^A Then Continue;
|
||||||
|
|
||||||
|
MsgText.Add(Str);
|
||||||
|
End;
|
||||||
|
|
||||||
Client.WriteStr(strI2S(MsgBase^.GetMsgNum) + #9);
|
Client.WriteStr(strI2S(MsgBase^.GetMsgNum) + #9);
|
||||||
Client.WriteStr(MsgBase^.GetSubj + #9);
|
Client.WriteStr(MsgBase^.GetSubj + #9);
|
||||||
|
|
Loading…
Reference in New Issue