Only responses that contain "CAPABILITY" and "FETCH", respectively,
will be sent to their response handler.
switch(imapc->state) {
/* States which are interested in untagged responses */
case IMAP_CAPABILITY:
+ if(!imap_matchresp(line, len, "CAPABILITY"))
+ return FALSE;
+ break;
+
case IMAP_FETCH:
- *resp = '*';
+ if(!imap_matchresp(line, len, "FETCH"))
+ return FALSE;
break;
/* Ignore other untagged responses */
return FALSE;
}
+ *resp = '*';
return TRUE;
}