Author | Topic: Problems with :getMessageSize() [and :GetMessage() ] | |
---|---|---|
Roland | Problems with :getMessageSize() [and :GetMessage() ] on Wed, 16 Oct 2002 13:18:03 +0200 Hello! I have two problems with method :GetMessageSize() for pop3Client() object: (1.) How come that method :GetMessageSize() returns empty array, although the log shows correct reply from pop3 server? eg.: aSize := oPop3:GetMessageSize() returns empty array --> {} log shows: --- Info: Sending: LIST Info: Server response: +OK 4 messages 1 1932 2 1932 3 1932 4 3288 Bytes read: 3 --- (2.) I could live with the first, but the second is a bit more annoying: The program never returns from GetMessageSize() method...! Ther app hangs while executing it! the log shows: --- Info: Sending: STAT Info: Server response: +OK 1 6202 Info: Sending: LIST Info: Server response: +OK POP3 clients that break here, they violate STD53. 1 6202 . --- and that's it; program stops reponding! **By the way what is "STD53" ? Also: Why does it take "forever" to get mimeMessage() object (with pop3 server from example-1) when executing: oMime := oPop3:GetMessage( nMsg ) and the log shows: --- Error: No response from server... Error: No response from server... Error: No response from server... ... --- but I do get the message... after 5 minutes . How come? This e-mail box works well when accessing from any other e-mail program: Outlook Ex., Netscape Comm. or any other command-line tool I've teseted! Are there any settings that need to be made, beside connecting to pop3 server? I assume, I'm doing something wrong, but cannot figure out what. Any ideas? --Roland | |
Roland | Re: Problems with :getMessageSize() [and :GetMessage() ] on Wed, 16 Oct 2002 13:40:27 +0200 The pop3 servers for first (1) and second (2) example are different! I tried removing Norton Antivirus, but no luck... --Roland **Well I looked it up: STD53 is actually one of the many Internet Standards (STD) and it is a pop3 protocol standard... ) | |
Roland | Re: Problems with :getMessageSize() [and :GetMessage() ] on Thu, 17 Oct 2002 12:14:10 +0200 Hello, again! It's very quiet here... Seems that nobody experienced similar problems [or nobody reads this NG anymore ] Since nobody seems to have this kind of problems, I would appreciate if somebody would, please, try the attached example and report back, if it works with no problems (also does LIST command work?, that is does :GetMessageSize() method work as expected?)... **Just place files in separate folder and type "GO" in ms-dos prompt. Thanks in advance! --Roland go.bat i.prg x.prg | |
Gogo Koenig [Alaska Software] | Re: Problems with :getMessageSize() [and :GetMessage() ] on Thu, 17 Oct 2002 12:48:04 +0200 Roland, I do not know what is going on on your side, but I have not been able to reproduce any of your observations when running your attached sample. :GetMessageSize() returns an array filled with values that seems to mak sense. The application works fine from the beginning to the end, no hang up. How can I help you any further ? With best regards Gogo Koenig Technical Support Alaska Software -------------------------------------------- Technical Support EMEA: support@de.alaska-software.com Technical Support APRA: support@us.alaska-software.com News Server: nntp://news.alaska-software.com Homepage: www.alaska-software.com WebKnowledgeBase: www.alaska-software.com/kb !!! -------------------------------------------- "Roland" <roland@softic.si> schrieb im Newsbeitrag news:3dae8e4b@asgcom.alaska-software.com... > Hello, again! > > It's very quiet here... Seems that nobody experienced similar problems [or > nobody reads this NG anymore ] > > Since nobody seems to have this kind of problems, I would appreciate if > somebody would, please, try the attached example and report back, if it > works with no problems (also does LIST command work?, that is does > :GetMessageSize() method work as expected?)... > > **Just place files in separate folder and type "GO" in ms-dos prompt. > > Thanks in advance! > > --Roland > > > > > | |
Roland | Re: Problems with :getMessageSize() [and :GetMessage() ] on Thu, 17 Oct 2002 13:46:09 +0200 Frans, Thank you very much for the quick response and testing my test app! Please see the reply to Gogo (**above), because it includes reply to you, too! --Roland | |
Frans Vermeulen | Re: Problems with :getMessageSize() [and :GetMessage() ] on Thu, 17 Oct 2002 13:05:16 +0200 Roland, No problems here either, I don't know if you have tried the following yet: (you must know the commands by head, by now) Open telnet (Via execute in the startmenu) Connect to your mailserver port 110 using "ansi" it will respond with: +OK mymailserver ready or something like that Now type blind: USER your emailadress it will return with: +OK blabla same trick: PASS your pass etc... Enter all commands you see passing in your debug screen after sending maybe this gives a clue... HTH, Frans Vermeulen PS. Ending is done with the command QUIT | |
Roland | Re: Problems with :getMessageSize() [and :GetMessage() ] on Thu, 17 Oct 2002 13:47:13 +0200 Gogo, Frans! Firstly, thanks for the quick response! > I do not know what is going on on your side, but I have not > been able to reproduce any of your observations when running > your attached sample. > :GetMessageSize() returns an array filled with values that seems to mak > sense. > The application works fine from the beginning to the end, no hang up. Hmmm.... now I'm even more confused! > > How can I help you any further ? Bits me... At least now I know that problem is here. Does OS have something to do with this (I stil have Win95)? I was suspicious about Norton Antivirus, which can be quite "agressive" but I removed it and it didn't help. Frans suggested testing it with Telnet; and I did that. In Telnet everything works fine. Every command I sent there was executed properly on both pop3 servers... The error on their side would be impossible, as one of them is the biggest inet provider in the country, but at least now I'm 100% sure. (On Telnet LIST command works fine on the pop3 server which causes app halt in xbase++; and RETR also works fine there on the other server which causes halt in xbase++ app --> so I guess the error is in the code; or my computer) Now I really don't know what to do, anymore. I'll try the example on some other computer with different OS... --Roland | |
Roland | Re: Problems with :getMessageSize() [and :GetMessage() ] on Thu, 17 Oct 2002 14:01:22 +0200 I tried it on Win98SE --> same results What to do next?... --Roland ps.I mixed the replies, before, sorry... | |
Roland | Re: Problems with :getMessageSize() [and :GetMessage() ] on Thu, 17 Oct 2002 14:25:48 +0200 Tried it on third different pop3 server - same things happened (system halts). If it helps: It seems that if :GetMessageSize() doesn't work (hangs up app) on specific mail box then the messages can easily be read by :GetMessage(<n>) method; On the other hand if :GetMessageSize() works (well... it returns emtpy array, but at least it doesn't hang up the app), that is returns from Pop3Client() class / method code then the :GetMessage(<n>) call causes an app halt. (as described before). This is just a wild guess, but the mail boxes tested behave in this maner... --Roland |