From 9549758e955d0ea3ec4f223aa5f3993513ba60b5 Mon Sep 17 00:00:00 2001 From: stekkel Date: Mon, 24 Feb 2003 20:33:25 +0000 Subject: [PATCH] fixed mdn message generation, now it can handle encoded strings (subjects and to address) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4550 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/read_body.php b/src/read_body.php index f1662978..7355c489 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -163,7 +163,7 @@ function SendMDN ( $mailbox, $passed_id, $sender, $message, $imapConnection) { } $rfc822_header->content_type = $content_type; $rfc822_header->to[] = $header->dnt; - $rfc822_header->subject = _("Read:") . ' ' . $header->subject; + $rfc822_header->subject = _("Read:") . ' ' . decodeHeader($header->subject); $reply_to = ''; @@ -200,8 +200,8 @@ function SendMDN ( $mailbox, $passed_id, $sender, $message, $imapConnection) { $now = getLongDateString( time() ); set_my_charset(); $body = _("Your message") . "\r\n\r\n" . - "\t" . _("To:") . ' ' . $to . "\r\n" . - "\t" . _("Subject:") . ' ' . $header->subject . "\r\n" . + "\t" . _("To:") . ' ' . decodeHeader($to) . "\r\n" . + "\t" . _("Subject:") . ' ' . decodeHeader($header->subject) . "\r\n" . "\t" . _("Sent:") . ' ' . $senton . "\r\n" . "\r\n" . sprintf( _("Was displayed on %s"), $now ); -- 2.25.1