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) ...@@ -576,6 +576,10 @@ _mh_message_save (struct _mh_data *mhd, struct _mh_message *mhm, int expunge)
576 while (isspace (*p)) 576 while (isspace (*p))
577 p++; 577 p++;
578 fprintf (fp, "%s: %s", MU_HEADER_ENV_DATE, p); 578 fprintf (fp, "%s: %s", MU_HEADER_ENV_DATE, p);
579
580 if (*p && p[strlen (p) - 1] != '\n')
581 fprintf (fp, "\n");
582
579 nlines++; 583 nlines++;
580 } 584 }
581 585
......