| | |
| | | return $this->handlePartBody($mailbox, $id, $is_uid, $part); |
| | | } |
| | | |
| | | function handlePartBody($mailbox, $id, $is_uid=false, $part='', $encoding=NULL, $print=NULL, $file=NULL, $formatted=true) |
| | | function handlePartBody($mailbox, $id, $is_uid=false, $part='', $encoding=NULL, $print=NULL, $file=NULL, $formatted=false) |
| | | { |
| | | if (!$this->select($mailbox)) { |
| | | return false; |
| | |
| | | } |
| | | |
| | | if ($binary) { |
| | | // WARNING: Use $formatting argument with care, this may break binary data stream |
| | | $mode = -1; |
| | | } |
| | | |
| | |
| | | |
| | | // literal-string |
| | | return sprintf("{%d}\r\n%s", strlen($string), $string); |
| | | } |
| | | |
| | | /** |
| | | * Unescapes quoted-string |
| | | * |
| | | * @param string $string IMAP string |
| | | * |
| | | * @return string String |
| | | */ |
| | | static function unEscape($string) |
| | | { |
| | | return stripslashes($string); |
| | | } |
| | | |
| | | /** |