diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-10-11 10:00:44 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-10-11 10:00:44 +0200 |
commit | 00891e687b97b6eac7317970aeb0d49826d05d42 (patch) | |
tree | e58a7cac927d121b8b0df5d6f1b6b52e927cf29d /program/include/rcube_imap.php | |
parent | 485f23b85970e8b3fb559e28a763915f41d4e0d6 (diff) |
Support flags and date arguments in APPEND command
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r-- | program/include/rcube_imap.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index ebf31d578..8a1c65bbe 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -2232,13 +2232,15 @@ class rcube_imap extends rcube_storage return false; } + $flags = array('SEEN'); + // make sure folder exists if ($this->folder_exists($folder)) { if ($is_file) { - $saved = $this->conn->appendFromFile($folder, $message, $headers); + $saved = $this->conn->appendFromFile($folder, $message, $headers, $flags); } else { - $saved = $this->conn->append($folder, $message); + $saved = $this->conn->append($folder, $message, $flags); } } |