using imclient

Patrick Radtke phr2101 at
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;

now when I do

   nc =1;
   imclient_send(imclient,end_command,(void*) &nc,"CREATE 

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.


Cyrus Home Page:
Cyrus Wiki/FAQ:
List Archives/Info:

More information about the Info-cyrus mailing list