| | |
| | | /** |
| | | * Abstract class for accessing mail messages storage server |
| | | * |
| | | * @package Mail |
| | | * @author Thomas Bruederli <roundcube@gmail.com> |
| | | * @author Aleksander Machniak <alec@alec.pl> |
| | | * @version 2.0 |
| | | * @package Framework |
| | | * @subpackage Storage |
| | | * @author Thomas Bruederli <roundcube@gmail.com> |
| | | * @author Aleksander Machniak <alec@alec.pl> |
| | | */ |
| | | abstract class rcube_storage |
| | | { |
| | |
| | | */ |
| | | public function set_folder($folder) |
| | | { |
| | | if ($this->folder == $folder) { |
| | | if ($this->folder === $folder) { |
| | | return; |
| | | } |
| | | |
| | |
| | | |
| | | /** |
| | | * Sends the whole message source to stdout |
| | | * |
| | | * @param int $uid Message UID |
| | | * @param bool $formatted Enables line-ending formatting |
| | | */ |
| | | abstract function print_raw_body($uid); |
| | | abstract function print_raw_body($uid, $formatted = true); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param string $message The message source string or filename |
| | | * @param string $headers Headers string if $message contains only the body |
| | | * @param boolean $is_file True if $message is a filename |
| | | * @param array $flags Message flags |
| | | * @param mixed $date Message internal date |
| | | * |
| | | * @return int|bool Appended message UID or True on success, False on error |
| | | */ |
| | | abstract function save_message($folder, &$message, $headers = '', $is_file = false); |
| | | abstract function save_message($folder, &$message, $headers = '', $is_file = false, $flags = array(), $date = null); |
| | | |
| | | |
| | | /** |