HUGE PATCH. This moves all of mime_parser.c and all
[citadel.git] / citadel / citmail.c
index bc3fb95d070ef6f6c39cce8e6393db20df2f176c..f47d8f2ab3f43de5def3748793f3984b72acbf62 100644 (file)
@@ -22,8 +22,8 @@
 #include <errno.h>
 #include <stdarg.h>
 #include <limits.h>
+#include <libcitadel.h>
 #include "citadel.h"
-#include "tools.h"
 #ifndef HAVE_SNPRINTF
 #include "snprintf.h"
 #endif
@@ -184,6 +184,8 @@ int main(int argc, char **argv) {
        int read_recipients_from_headers = 0;
        char *add_these_recipients = NULL;
 
+       CtdlInitBase64Table();
+
        for (i=1; i<argc; ++i) {
                if (!strcmp(argv[i], "-d")) {
                        debug = 1;
@@ -199,7 +201,7 @@ int main(int argc, char **argv) {
        }
               
        /* TODO: should we be able to calculate relative dirs? */
-       calc_dirs_n_files(relh, home, relhome, ctdldir);
+       calc_dirs_n_files(relh, home, relhome, ctdldir, 0);
 
        pw = getpwuid(getuid());