]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_imap.h
* Killed off CtdlGetDynamicSymbol() and just put all the symbols in server.h
[citadel.git] / citadel / serv_imap.h
index 0308f41cf7f428315e24ac863e96b0d0ae751fd5..b5a536129454d17a58f444ecd9bc5585722be4d0 100644 (file)
@@ -1,13 +1,12 @@
 /* $Id$ 
  */
 
-extern long SYM_IMAP;
-
 
 void imap_cleanup_function(void);
 void imap_greeting(void);
 void imap_command_loop(void);
 int imap_grabroom(char *returned_roomname, char *foldername);
+void imap_free_transmitted_message(void);
 
 
 
@@ -19,6 +18,8 @@ struct citimap {
        int num_msgs;           /* Number of messages being mapped */
        long *msgids;
        unsigned int *flags;
+       char *transmitted_message;      /* for APPEND command... */
+       size_t transmitted_length;
 };
 
 /*
@@ -46,3 +47,9 @@ enum {
 
 
 #define IMAP ((struct citimap *)CtdlGetUserData(SYM_IMAP))
+
+/*
+ * When loading arrays of message ID's into memory, increase the buffer to
+ * hold this many additional messages instead of calling realloc() each time.
+ */
+#define REALLOC_INCREMENT 100