From 8afbc8aeea10894bc97902912460cafd4681a42d Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 30 Nov 2012 05:13:43 -0500
Subject: [PATCH] Fix attachment Content-Length for in-memory files (#1488844)

---
 program/steps/mail/get.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc
index 71a5e1b..7b2f719 100644
--- a/program/steps/mail/get.inc
+++ b/program/steps/mail/get.inc
@@ -302,7 +302,7 @@
       // send part as-it-is
       else {
         if ($part->body) {
-          header("Content-Length: " . sizeof($part->body));
+          header("Content-Length: " . strlen($part->body));
           echo $part->body;
           $sent = true;
         }

--
Gitblit v1.9.1