| | |
| | | } |
| | | |
| | | $rcmail = rcmail::get_instance(); |
| | | $this->charset = $rcmail->config->get('zipdownload_charset', RCUBE_CHARSET); |
| | | |
| | | $this->load_config(); |
| | | $this->charset = $rcmail->config->get('zipdownload_charset', RCUBE_CHARSET); |
| | | $this->add_texts('localization'); |
| | | |
| | | if ($rcmail->config->get('zipdownload_attachments', 1) > -1 && ($rcmail->action == 'show' || $rcmail->action == 'preview')) |
| | |
| | | $disp_name = "message_rfc822.eml"; |
| | | |
| | | $disp_name = $uid . "_" . $disp_name; |
| | | |
| | | |
| | | $tmpfn = tempnam($temp_dir, 'zipmessage'); |
| | | $tmpfp = fopen($tmpfn, 'w'); |
| | | $imap->get_raw_body($uid, $tmpfp); |
| | |
| | | */ |
| | | private function _convert_filename($str, $from = RCUBE_CHARSET) |
| | | { |
| | | return strtr(rcube_charset::convert($str, $from, $this->charset), array(':'=>'', '/'=>'-')); |
| | | $str = rcube_charset::convert($str, $from == '' ? RCUBE_CHARSET : $from, $this->charset); |
| | | |
| | | return strtr($str, array(':'=>'', '/'=>'-')); |
| | | } |
| | | } |
| | | |
| | | ?> |