summaryrefslogtreecommitdiffstats
path: root/sqwebmail/newmsg_newdraft.c
diff options
context:
space:
mode:
Diffstat (limited to 'sqwebmail/newmsg_newdraft.c')
-rw-r--r--sqwebmail/newmsg_newdraft.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sqwebmail/newmsg_newdraft.c b/sqwebmail/newmsg_newdraft.c
index 6eb4a9b..8158d40 100644
--- a/sqwebmail/newmsg_newdraft.c
+++ b/sqwebmail/newmsg_newdraft.c
@@ -105,7 +105,8 @@ int x;
rfc2045_mimeinfo(rfc2045partp, &content_type,
&dummy, &dummy);
- if (!content_type || strcmp(content_type, "message/rfc822"))
+ if (!content_type ||
+ !rfc2045_message_content_type(content_type))
rfc2045partp=0;
else
rfc2045partp=rfc2045partp->firstpart;