+2003-07-08 [alfons] 0.9.0claws90
+
+ * src/procmsg.c
+ if queued message has an invalid Message-Id, don't try to
+ find message it refers to (fixes #209 "crash when processing
+ in folder")
+
2003-07-08 [paul] 0.9.0claws89
* sync with 0.9.3cvs2
else
tokens = g_strsplit(fwdmessageid, "\x7f", 0);
item = folder_find_item_from_identifier(tokens[0]);
- if (item != NULL) {
+
+ /* check if queued message has valid folder and message id */
+ if (item != NULL && tokens[2] != NULL) {
MsgInfo *msginfo;
msginfo = folder_item_get_msginfo(item, atoi(tokens[1]));
-
- /*!< note that if the message has no msgid (maybe it was invalid),
- * we also refuse to do something with the reply to flag */
+
+ /* check if referring message exists and has a message id */
if ((msginfo != NULL) &&
(msginfo->msgid != NULL) &&
(strcmp(msginfo->msgid, tokens[2]) != 0)) {