Re: [twsocket] I keep tripping the same POP3 Client Exception

2009-10-02 Thread Arno Garrels
Pete Williams wrote:
 Hi
 
 In response to a 'Stat' command, TPOP3Cli sometimes raises this
 exception: 

The exception message is rather useful. Your are calling an invalid
method in current context.

--
Arno Garrels


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] I keep tripping the same POP3 Client Exception

2009-10-01 Thread Pete Williams

Hi

In response to a 'Stat' command, TPOP3Cli sometimes raises this exception:

procedure TCustomPop3Cli.StartTransaction(
OpCode  : String;
Params  : String;
RqType  : TPop3Request;
NextState   : TPop3ProtocolState;  { Next protocol state in case of success}
DoneTrans   : TPop3NextProc);  { What to do when done  }
var
Cmd : String;
begin
if FProtocolState  pop3Transaction then begin
FErrorMessage := '-ERR ' + OpCode + ' command invalid now';
Display(FErrorMessage);
raise Pop3Exception.Create(FErrorMessage);
end;

On the whole, things work OK, and this may be a timing issue, or I'm not 
handling an error correctly.

How can I check it is safe to issue the Stat command?

Thanks

  
_
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be