Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: Getting untagged response from server after comman
User131

Posts: 5
Member Since: 03/25/02
posted March 27, 2002 5:52 AM

Hi,
How do I get the untagged response from the server after sending a command directly using imap.command? The second argument of the method is used to indicate only the tagged response. Here is an example:
command -->     C: A654 FETCH 2:4 (FLAGS BODY[HEADER.FIELDS (DATE FROM)])
        l  S: * 2 FETCH ....
  UNTAGGED  l--> S: * 3 FETCH ....
   RESPONSESl  S: * 4 FETCH ....
tagged response --> S: A654 OK FETCH completed
-------------------------
C - Client  S - Server
I use the non-blocking method.
Thanks in advance,
Dimo
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 27, 2002 4:48 PM


Hi Dimo,
I just created a simple non-blocking sample that uses the Command method to send this line, and my Reply contained the entire response from the server. 
Is it possible you are specifying the second parameter as "Reply" in the Command call? This would cause problems if you are making the call in the Progress Event, as the event also has a Reply parameter.
-ken

K M Drake
Dart Tech Support
User131

Posts: 5
Member Since: 03/25/02
posted March 28, 2002 4:41 AM

Hi,
Could you send me this sample. I use the following:
cmdreply : OleVariant;
imap.command('SELECT INBOX', cmdreply);
showmessage(inttostr(cmdreply));
It seems that the cmdreply variable is from type integer, because it raises exception when i use it as a string or string array. Is there something I am missing with these OleVariant types (which are relatively confusing for me :) )
Thanks,
Dimo
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 28, 2002 4:58 PM


Hi,
I believe you have to initialize it as a string:
cmdreply := '';
The sample was in VB. Would you still like it?
-ken

K M Drake
Dart Tech Support
User131

Posts: 5
Member Since: 03/25/02
posted April 2, 2002 2:13 AM

Thanks,
It worked :)
Dimo
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX