(_mh_message_save): Check if the envelope date has a newline.
Showing
1 changed file
with
4 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment