]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/imap/imap_store.c
preserve stringlengths when outputting stuff in the imap module
[citadel.git] / citadel / modules / imap / imap_store.c
index dceefbbbe18a911b10cab9bc6a43579e24e41227..8c4188bdbb93118c01f8b881662f4342ff3457f1 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 2001-2009 by the citadel.org team
  *
- * This program is free software; you can redistribute it and/or modify
+ * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
@@ -53,6 +53,7 @@
 #include "config.h"
 #include "user_ops.h"
 #include "database.h"
+#include "room_ops.h"
 #include "msgbase.h"
 #include "internet_addressing.h"
 #include "serv_imap.h"
@@ -195,14 +196,8 @@ void imap_do_store(citimap_command *Cmd) {
        }
 
        free(ss_msglist);
-
-       /*
-        * The following two commands implement "instant expunge" if enabled.
-        */
-       if (config.c_instant_expunge) {
-               imap_do_expunge();
-               imap_rescan_msgids();
-       }
+       imap_do_expunge();              // Citadel always expunges immediately.
+       imap_rescan_msgids();
 }