* Added "instant expunge" and "allow spoofing" site config options.
[citadel.git] / citadel / imap_store.c
index 0c40e430d6c915f7897295a2d726d23986ef1e5b..49784cc13dadd0092cb7f0180f917cf516b41d99 100644 (file)
@@ -163,14 +163,13 @@ void imap_do_store(int num_items, char **itemlist) {
                }
        }
 
-#ifdef INSTANT_EXPUNGE
        /*
-        * The following two commands implement "instant expunge"
-        * which is experimental.
+        * The following two commands implement "instant expunge" if enabled.
         */
-       imap_do_expunge();
-       imap_rescan_msgids();
-#endif /* INSTANT_EXPUNGE */
+       if (config.c_instant_expunge) {
+               imap_do_expunge();
+               imap_rescan_msgids();
+       }
 
 }