 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Wild Sam Guest
|
Posted: Sun Nov 14, 2004 6:40 pm Post subject: Indy 10 MappedPOP3 not send greetings |
|
|
Hello.
I have this problem: MappedPOP3 (Indy 10, just drop TIdMappePOP3 and nothing
else) not send greetings to local client after connect (as Indy 9 same
component do), so that mail client freeze on 'Connected...'. I add following
line:
AContext.Connection.IOHandler.writeln(Pop3Proxy.Greeting.Text.Text);
to BeforeConnect() handler. Now mail client recieve greeting, but some
another bug present and delivery not works anyway...
Any solutions?
Thank you very much.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sun Nov 14, 2004 7:37 pm Post subject: Re: Indy 10 MappedPOP3 not send greetings |
|
|
"Wild Sam" <general (AT) laconicsoftware (DOT) com> wrote
| Quote: | MappedPOP3 (Indy 10, just drop TIdMappePOP3 and nothing
else) not send greetings to local client after connect
|
The Greeting is not automatically sent. You have to send it yourself
manually.
| Quote: | as Indy 9 same component do
|
The class hierachy is very different in Indy 10 than it was in Indy 9. The
code in Indy 9 that automated the sending of the Greeting no longer applies
in Indy 10's code.
Please download the latest development snapshot of Indy 10. I just added
some code to send the Greeting in TIdMappedPOP3.
Gambit
|
|
| Back to top |
|
 |
Wild Sam Guest
|
Posted: Sun Nov 14, 2004 9:53 pm Post subject: Re: Indy 10 MappedPOP3 not send greetings |
|
|
Gambit, thanks. I download latest Indy.
Now, I have error in:
if Length(TIdTcpClient(FOutboundClient).Host)<1 then begin
raise EIdException.Create(RSEmptyHost);
end;
FOutboundClient.IOHandler.ConnectTimeout :=
FConnectTimeOut;<====here====
TIdTcpClient(FOutboundClient).Connect;
FNetData := FOutboundClient.IOHandler.ReadLn;//Read Pop3 Banner for
OnOutboundClientConnect
I not understand Indy mechnizm yet, but maybe, this line must be after next
(FOutbondClient.Connect), because FOutbondClient.IOHandler=nil yet?
Thank you very much.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Nov 15, 2004 7:33 pm Post subject: Re: Indy 10 MappedPOP3 not send greetings |
|
|
"Wild Sam" <general (AT) laconicsoftware (DOT) com> wrote
| Quote: | Now, I have error in:
|
Please be more specific. What is the actual error?
| Quote: | I not understand Indy mechnizm yet, but maybe, this
line must be after next (FOutbondClient.Connect)
|
No, otherwise there is no reason to set the ConnectTimeout after the
connection is already established.
Please download the latest snapshot again, I have corrected the code.
Gambit
|
|
| Back to top |
|
 |
Wild Sam Guest
|
Posted: Mon Nov 15, 2004 9:22 pm Post subject: Re: Indy 10 MappedPOP3 not send greetings |
|
|
Now all works fine.
Remy, thank you very much.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|