From 00891e687b97b6eac7317970aeb0d49826d05d42 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 11 Oct 2012 10:00:44 +0200 Subject: Support flags and date arguments in APPEND command --- program/include/rcube_imap.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'program/include/rcube_imap.php') 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); } } -- cgit v1.2.3