wc_mime_attachment *mime;
StrBuf *Buf;
void *vMimeRenderer;
+ int IsSubSub;
mime = (wc_mime_attachment*) malloc(sizeof(wc_mime_attachment));
memset(mime, 0, sizeof(wc_mime_attachment));
mime->PartNum = NewStrBuf();
StrBufExtract_token(mime->PartNum, HdrLine, 2, '|');
+ IsSubSub = (strchr(ChrPtr(mime->PartNum), '.') != NULL);
mime->Disposition = NewStrBuf();
StrBufExtract_token(mime->Disposition, HdrLine, 3, '|');
Msg->AllAttach = NewHash(1,NULL);
Put(Msg->AllAttach, SKEY(mime->PartNum), mime, DestroyMime);
+ if (IsSubSub){
+ FreeStrBuf(&Buf);
+ return;
+ }
if (GetHash(MimeRenderHandler, SKEY(mime->ContentType), &vMimeRenderer) &&
vMimeRenderer != NULL)