summaryrefslogtreecommitdiff
path: root/scripts/maildaemon.php
diff options
context:
space:
mode:
authorEric Helgeson <erichelgeson@gmail.com>2009-08-03 18:11:06 -0500
committerEric Helgeson <erichelgeson@gmail.com>2009-08-03 18:11:06 -0500
commit0853ed069bb0b323d02cc8fe533ae82c87f68de5 (patch)
tree7ef1445197a5716d15a1ba40a1da6d6dc09b720f /scripts/maildaemon.php
parent9e611b40c643af9f40b9ef84e02b859205943745 (diff)
parentff6e976d0315c57fc5b7e31845e9a3bad4f095bc (diff)
Merge commit 'origin/0.8.x' into 0.9.x
Diffstat (limited to 'scripts/maildaemon.php')
-rwxr-xr-xscripts/maildaemon.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/maildaemon.php b/scripts/maildaemon.php
index a4003b6b2..3ef4d0638 100755
--- a/scripts/maildaemon.php
+++ b/scripts/maildaemon.php
@@ -317,6 +317,9 @@ class MailerDaemon
} else if ($parsed->ctype_primary == 'text'
&& $parsed->ctype_secondary=='plain') {
$msg = $parsed->body;
+ if(strtolower($parsed->ctype_parameters['charset']) != "utf-8"){
+ $msg = utf8_encode($msg);
+ }
}else if(!empty($parsed->body)){
if(common_config('attachments', 'uploads')){
//only save attachments if uploads are enabled