Commit 1598ce88 1598ce887b5017c567a282f9a1622a7f36fea5f6 by Sergey Poznyakoff

(_mh_message_save): Check if the envelope date has a newline.

1 parent 5ccdea07
......@@ -576,6 +576,10 @@ _mh_message_save (struct _mh_data *mhd, struct _mh_message *mhm, int expunge)
while (isspace (*p))
p++;
fprintf (fp, "%s: %s", MU_HEADER_ENV_DATE, p);
if (*p && p[strlen (p) - 1] != '\n')
fprintf (fp, "\n");
nlines++;
}
......