]> andersk Git - moira.git/commitdiff
support IMAP boxes in get_pobox
authordanw <danw>
Tue, 2 Nov 1999 02:32:32 +0000 (02:32 +0000)
committerdanw <danw>
Tue, 2 Nov 1999 02:32:32 +0000 (02:32 +0000)
server/qfollow.pc

index fffec11475720b361a0d0d9983b00cd4d825ede0..faf13eeb329eacd2b122dfa55ed4b56ddcac028a 100644 (file)
@@ -564,10 +564,11 @@ int followup_uuac(struct query *q, char *argv[], client *cl)
 /* 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,
@@ -600,6 +601,12 @@ 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)
This page took 0.047552 seconds and 5 git commands to generate.