* headers_euid(): print out timestamp of message too, DAV needs this.
authorWilfried Göesgens <willi@citadel.org>
Wed, 21 Apr 2010 19:20:31 +0000 (19:20 +0000)
committerWilfried Göesgens <willi@citadel.org>
Wed, 21 Apr 2010 19:20:31 +0000 (19:20 +0000)
* CtdlOutputPreLoadedMsg(): initialize pointer to silence value

citadel/msgbase.c

index 72f53627897ec4c03e367199323fe330236fc273..af3b4c6f541e3d9ce04da8f969564133bc000bb4 100644 (file)
@@ -309,7 +309,10 @@ void headers_euid(long msgnum, void *userdata)
                return;
        }
 
-       cprintf("%ld|%s|\n", msgnum, (msg->cm_fields['E'] ? msg->cm_fields['E'] : ""));
+       cprintf("%ld|%s|%ld\n", 
+               msgnum, 
+               (msg->cm_fields['E'] ? msg->cm_fields['E'] : ""),
+               msg->cm_fields['T']);
        CtdlFreeMessage(msg);
 }
 
@@ -2055,7 +2058,7 @@ int CtdlOutputPreLoadedMsg(
                int flags               /* should the bessage be exported clean? */
 ) {
        int i;
-       char *mptr;
+       char *mptr = NULL;
        const char *nl; /* newline string */
        struct ma_info ma;