| | |
| | | |
| | | function decode_header($input) |
| | | { |
| | | return $this->decode_mime_string($input); |
| | | } |
| | | |
| | | |
| | | function decode_mime_string($input) |
| | | { |
| | | $out = ''; |
| | | |
| | | $pos = strpos($input, '=?'); |
| | |
| | | $encstr = substr($input, $pos+2, ($end_pos-$pos-2)); |
| | | $rest = substr($input, $end_pos+2); |
| | | |
| | | $out .= $this->decode_mime_string($encstr); |
| | | $out .= $this->decode_header($rest); |
| | | $out .= rcube_imap::_decode_mime_string_part($encstr); |
| | | $out .= rcube_imap::decode_mime_string($rest); |
| | | |
| | | return $out; |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | function decode_mime_string($str) |
| | | function _decode_mime_string_part($str) |
| | | { |
| | | $a = explode('?', $str); |
| | | $count = count($a); |