fix bad parsing of message when re-editing/viewing a
authorLuke Plant <L.Plant.98@cantab.net>
Tue, 4 Nov 2003 01:18:57 +0000 (01:18 +0000)
committerLuke Plant <L.Plant.98@cantab.net>
Tue, 4 Nov 2003 01:18:57 +0000 (01:18 +0000)
message saved to the drafts folder

src/procmime.c

index 6ac5a5a..0172a87 100644 (file)
@@ -195,7 +195,8 @@ MimeInfo *procmime_scan_message(MsgInfo *msginfo)
        filename = procmsg_get_message_file(msginfo);
        if(!filename)
                return NULL;
-       if (msginfo->folder->stype != F_QUEUE)
+       if (msginfo->folder->stype != F_QUEUE && 
+           msginfo->folder->stype != F_DRAFT)
                mimeinfo = procmime_scan_file(filename);
        else
                mimeinfo = procmime_scan_queue_file(filename);