[Commits] [SCM] claws branch, master, updated. 4.2.0-96-gce4baa225

wwp at claws-mail.org wwp at claws-mail.org
Tue May 14 05:22:02 UTC 2024


The branch, master has been updated
       via  ce4baa225a17648a19c3806dac4f57cbd938b3ef (commit)
      from  f5379aa640cf3a80aa084611a48c3cc04b03f20c (commit)

Summary of changes:
 src/procmime.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)


- Log -----------------------------------------------------------------
commit ce4baa225a17648a19c3806dac4f57cbd938b3ef
Author: wwp <subscript at free.fr>
Date:   Tue May 14 07:21:50 2024 +0200

    Revert "Fix in-memory temporary file length"
    
    This reverts commit 34bfb629fcce5df9ad86994fff51f60ee7c0b5c7.

diff --git a/src/procmime.c b/src/procmime.c
index 45e6c11c2..75e61637c 100644
--- a/src/procmime.c
+++ b/src/procmime.c
@@ -438,10 +438,8 @@ gboolean procmime_decode_content(MimeInfo *mimeinfo)
 					err = TRUE;
 			}
 		}
-		if (tmpfp != outfp) {
-			ftruncate(fileno(tmpfp), ftell(tmpfp));
+		if (tmpfp != outfp)
 			claws_fclose(tmpfp);
-		}
 	} else if (encoding == ENC_X_UUENCODE) {
 		gchar outbuf[BUFFSIZE];
 		gint len;
@@ -477,7 +475,6 @@ gboolean procmime_decode_content(MimeInfo *mimeinfo)
 			g_warning("write error");
 	}
 
-	ftruncate(fileno(outfp), ftell(outfp));
 	claws_fclose(outfp);
 	claws_fclose(infp);
 
@@ -884,7 +881,6 @@ FILE *procmime_get_text_content(MimeInfo *mimeinfo)
 
 	err = procmime_scan_text_content(mimeinfo, scan_fputs_cb, outfp);
 
-	ftruncate(fileno(outfp), ftell(outfp));
 	rewind(outfp);
 	if (err == TRUE) {
 		claws_fclose(outfp);
@@ -926,7 +922,7 @@ FILE *procmime_get_binary_content(MimeInfo *mimeinfo)
 	if (procmime_get_part_to_stream(outfp, mimeinfo) < 0) {
 		return NULL;
 	}
-	ftruncate(fileno(outfp), ftell(outfp));
+
 	return outfp;
 }
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list