diff src/readpst.c @ 171:6c1e75bc4cac

properly add trailing mime boundary in all modes
author Carl Byington <carl@five-ten-sg.com>
date Sun, 29 Mar 2009 08:51:13 -0700
parents c1a2fd06ffe6
children 6954d315aaa8
line wrap: on
line diff
--- a/src/readpst.c	Sun Mar 22 14:34:26 2009 -0700
+++ b/src/readpst.c	Sun Mar 29 08:51:13 2009 -0700
@@ -1367,12 +1367,7 @@
         }
     }
 
-    // end of this mail message
-    if (mode != MODE_SEPARATE) { /* do not add a boundary after the last attachment for mode_MH */
-        DEBUG_EMAIL(("Writing buffer between emails\n"));
-        fprintf(f_output, "\n--%s--\n", boundary);
-        fprintf(f_output, "\n\n");
-    }
+    fprintf(f_output, "\n--%s--\n\n\n", boundary);
     DEBUG_RET();
 }