using imclient

Patrick Radtke phr2101 at columbia.edu
Mon Mar 21 13:47:40 EST 2005


I figured out how to determine the OK,BAD  tagged response.


I modified the end_command from 'man imclient'

static void end_command (struct imclient *connection, void*
			 rock,  struct imclient_reply *inmsg) {

   cout << "in end_command " << endl;
   cout << "\tKeyword: " << inmsg->keyword << endl
        << "\tMsgno: " << inmsg->msgno << endl
        << "\tText: " << inmsg->text << endl << endl;
   (*(int*)rock)--;
}


now when I do

   nc =1;
   imclient_send(imclient,end_command,(void*) &nc,"CREATE 
%s","user/bigtestuser10");


I see this output

in end_command
         Keyword: NO
         Msgno: -1
         Text: Mailbox already exists


I had just been looking in the wrong place previously.


-Patrick

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list