load_message(Msg, FoundCharset, &Error);
+ FreeStrBuf(&FoundCharset);
/* look up the vcard... */
it = GetNewHashPos(Msg->AllAttach, 0);
while (GetNextHashPos(Msg->AllAttach, it, &len, &Key, &vMime) &&
wprintf("</td></tr></table>\n");
do_template("endbox", NULL);
wDumpContent(1);
- DestroyMessageSummary(Msg);
+ if (Msg != NULL)
+ DestroyMessageSummary(Msg);
}
const char *contentType;
wcsession *WCC = WC;
- msgnum = StrTol(WCC->UrlFragment2);
+ msgnum = StrBufExtract_long(WCC->Hdr->ReqLine, 0, '/');
vcard = load_mimepart(msgnum,"1");
v = VCardLoad(vcard);