diff options
author | alecpl <alec@alec.pl> | 2012-01-05 11:25:42 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2012-01-05 11:25:42 +0000 |
commit | 1c4f23d6e58e12f93d8de2c3ae416df575e8ad85 (patch) | |
tree | db507bbdd32724fac52ca38208cf4f7d1f8bde71 /program/steps/mail/viewsource.inc | |
parent | c21d7fa7876d2160c3771e892be4a6e06cc143e3 (diff) |
- Exclude MIME functionality from rcube_imap class into rcube_mime class
Diffstat (limited to 'program/steps/mail/viewsource.inc')
-rw-r--r-- | program/steps/mail/viewsource.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/mail/viewsource.inc b/program/steps/mail/viewsource.inc index d951fbead..e2b4e1b61 100644 --- a/program/steps/mail/viewsource.inc +++ b/program/steps/mail/viewsource.inc @@ -29,7 +29,8 @@ if ($uid = get_input_value('_uid', RCUBE_INPUT_GET)) header("Content-Type: text/plain; charset={$charset}"); if (!empty($_GET['_save'])) { - $filename = ($headers->subject ? $RCMAIL->imap->decode_header($headers->subject) : 'roundcube') . '.eml'; + $subject = rcube_mime::decode_header($headers->subject, $headers->charset); + $filename = ($subject ? $subject : $RCMAIL->config->get('product_name', 'email')) . '.eml'; $browser = $RCMAIL->output->browser; if ($browser->ie && $browser->ver < 7) |