summaryrefslogtreecommitdiff
path: root/program/steps/mail/func.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-07-19 19:15:40 +0000
committeralecpl <alec@alec.pl>2009-07-19 19:15:40 +0000
commit3b7e00fbdaee197e6ccd832a3f10dbb417373f4c (patch)
tree12279720836ba7097773c58d2d0b6b4075877616 /program/steps/mail/func.inc
parentd4436e78614eaf72e57427e1024b715d68df2954 (diff)
- don't call FETCH for empty (size=0) message parts
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r--program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index a942c1a44..448663519 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -987,7 +987,7 @@ function rcmail_message_body($attrib)
{
if ($part->type == 'headers')
$out .= rcmail_message_headers(sizeof($header_attrib) ? $header_attrib : NULL, $part->headers);
- else if ($part->type == 'content')
+ else if ($part->type == 'content' && $part->size)
{
if (empty($part->ctype_parameters) || empty($part->ctype_parameters['charset']))
$part->ctype_parameters['charset'] = $MESSAGE->headers->charset;