/* followup_gpob: fixes argv[2] based on the IDs currently there and the
* type in argv[1]. Then completes the upcall to the user.
*
- * argv[2] is of the form "123:234" where the first integer is the machine
- * ID if it is a pop box, and the second is the string ID if it is an SMTP
- * box. argv[1] should be "POP", "SMTP", or "NONE". Boxes of type NONE
- * are skipped.
+ * argv[2] is of the form "123:234" where the first integer is the
+ * machine ID if it is a pop box or filesys ID if it is an imap box,
+ * and the second is the string ID if it is an SMTP box. argv[1]
+ * should be "POP", "SMTP", "IMAP", or "NONE". Boxes of type NONE are
+ * skipped.
*/
int followup_gpob(struct query *q, struct save_queue *sq, struct validate *v,
if (status == MR_NO_MATCH)
return MR_STRING;
}
+ else if (!strcmp(ptype, "IMAP"))
+ {
+ status = id_to_name(mid, FILESYS_TABLE, &argv[2]);
+ if (status == MR_NO_MATCH)
+ return MR_FILESYS;
+ }
else /* ptype == "NONE" */
goto skip;
if (status)