Re: using imclient

2005-03-21 Thread Patrick Radtke
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: " << inms

Re: using imclient

2005-03-21 Thread Patrick Radtke
On Mar 17, 2005, at 1:21 PM, Patrick Welche wrote: On Wed, Mar 16, 2005 at 04:04:48PM -0500, Patrick Radtke wrote: I'll add a little code sample // server returns NO on an error imclient_addcallback(imclient, "NO", CALLBACK_NOLITERAL, callback_error,

Re: using imclient

2005-03-17 Thread Patrick Welche
On Wed, Mar 16, 2005 at 04:04:48PM -0500, Patrick Radtke wrote: > I'll add a little code sample > > // server returns NO on an error > imclient_addcallback(imclient, "NO", > CALLBACK_NOLITERAL, > callback_error, > &error_string, >

Re: using imclient

2005-03-16 Thread Patrick Radtke
to return 'NO Mailbox already exists'. So I add a callback on the keyword 'NO', but it never gets called. Are there other settings I need to use on the callback? The 'nc' and 'end_command' stuff is how things were done in 'man imclient'. than

using imclient

2005-03-16 Thread Patrick Radtke
Hi, I am trying to write a program using imclient. I am not sure how to detect errors when I use send. For example when I send 'create user/phr2101' I am unsure how to get the error message from the action (since the account already exists). Does anyone know? or have sample code usin