refs = g_mime_object_get_header (GMIME_OBJECT (message), "references");
+ if (refs == NULL)
+ return;
+
while (*refs) {
while (*refs && isspace (*refs))
refs++;
/* Skip signatures */
/* XXX: Should only do this if "near" the end of the message. */
- if (strncmp (body_line, "-- ", 3) == 0)
+ if (strncmp (body_line, "-- ", 3) == 0 ||
+ strncmp (body_line, "----------", 10) == 0 ||
+ strncmp (body_line, "__________", 10) == 0)
break;
gen_terms (term_gen, "body", body_line);