diff options
Diffstat (limited to 'libsylph/pop.c')
-rw-r--r-- | libsylph/pop.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libsylph/pop.c b/libsylph/pop.c index b61eb377..ec703191 100644 --- a/libsylph/pop.c +++ b/libsylph/pop.c @@ -549,15 +549,9 @@ static gint pop3_write_msg_to_file(const gchar *file, FILE *src_fp, guint len) gint len; len = strlen(buf); - if (len > 0) { + if (len > 0) last_ch = buf[len - 1]; - if (last_ch == '\n' && len > 1 && - buf[len - 2] == '\r') { - buf[len - 2] = '\n'; - buf[len - 1] = '\0'; - } else if (last_ch == '\r') - buf[len - 1] = '\0'; - } else + else last_ch = '\0'; if ((last_ch == '\0' || last_ch == '\n') && |