]> code.citadel.org Git - citadel.git/blobdiff - citadel/imap_store.c
* Added "instant expunge" and "allow spoofing" site config options.
[citadel.git] / citadel / imap_store.c
index b9fc5fdfe1144d51a6a52aeb3a0f713fbff3b235..49784cc13dadd0092cb7f0180f917cf516b41d99 100644 (file)
@@ -162,6 +162,15 @@ void imap_do_store(int num_items, char **itemlist) {
                        }
                }
        }
+
+       /*
+        * The following two commands implement "instant expunge" if enabled.
+        */
+       if (config.c_instant_expunge) {
+               imap_do_expunge();
+               imap_rescan_msgids();
+       }
+
 }
 
 
@@ -227,7 +236,6 @@ void imap_uidstore(int num_parms, char *parms[]) {
 
        strcpy(items, "");
        for (i=4; i<num_parms; ++i) {
-               lprintf(9, "item %d: %s\n", i, parms[i]);
                strcat(items, parms[i]);
                if (i < (num_parms-1)) strcat(items, " ");
        }