Y
yingyigui
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TfrmMain.IdPOP3Server1STAT(ASender: TIdCommand);
begin
//这部分怎么写?ASender.Thread.Connection.Writeln('+OK 1 750');不行呀
end;
使用client
procedure TForm1.Button3Click(Sender: TObject);
var
i:integer;
begin
i:=IdPOP31.CheckMessages;
end;
接收后错误:'Login'is not a valid integer value.
察看IdPOP3Server.pas
procedure TIdPOP3Server.CommandRetr(ASender: TIdCommand);
Var
LThread: TIdPOP3ServerThread;
begin
LThread := TIdPOP3ServerThread(ASender.Thread);
If LThread.State = Trans Then
Begin
If Assigned(fCommandRetr) Then
OnRetr(ASender, StrToIntDef(Trim(ASender.Params.Text), -1))
Else
ASender.Thread.Connection.WriteLn('-ERR ' + Format(RSPOP3SVRNotHandled, ['RETR']));
End
Else
ASender.Thread.Connection.WriteLn('-ERR Please login first'); // RS
end;
看不懂,谁给讲讲吧,谢了先
begin
//这部分怎么写?ASender.Thread.Connection.Writeln('+OK 1 750');不行呀
end;
使用client
procedure TForm1.Button3Click(Sender: TObject);
var
i:integer;
begin
i:=IdPOP31.CheckMessages;
end;
接收后错误:'Login'is not a valid integer value.
察看IdPOP3Server.pas
procedure TIdPOP3Server.CommandRetr(ASender: TIdCommand);
Var
LThread: TIdPOP3ServerThread;
begin
LThread := TIdPOP3ServerThread(ASender.Thread);
If LThread.State = Trans Then
Begin
If Assigned(fCommandRetr) Then
OnRetr(ASender, StrToIntDef(Trim(ASender.Params.Text), -1))
Else
ASender.Thread.Connection.WriteLn('-ERR ' + Format(RSPOP3SVRNotHandled, ['RETR']));
End
Else
ASender.Thread.Connection.WriteLn('-ERR Please login first'); // RS
end;
看不懂,谁给讲讲吧,谢了先