* messages.c: Msg->MsgBody->msgnum = msgnum;
authorArt Cancro <ajc@citadel.org>
Sun, 11 Jan 2009 05:23:33 +0000 (05:23 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 11 Jan 2009 05:23:33 +0000 (05:23 +0000)
  This needs review by dothebart to see if there are any side effects

webcit/messages.c

index 3fce730f34356a3d1a5063045030cdf6b02fa608..06a69f7b7992b6c6fba9f112f98369e5e16ddeea 100644 (file)
@@ -88,6 +88,7 @@ int read_message(StrBuf *Target, const char *tmpl, long tmpllen, long msgnum, in
        Msg->PartNum = PartNum;
        Msg->MsgBody =  (wc_mime_attachment*) malloc(sizeof(wc_mime_attachment));
        memset(Msg->MsgBody, 0, sizeof(wc_mime_attachment));
+       Msg->MsgBody->msgnum = msgnum;
        FoundCharset = NewStrBuf();
        while ((StrBuf_ServGetln(Buf)>=0) && !Done) {
                if ( (StrLength(Buf)==3) &&