summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-10-11 10:00:44 +0200
committerAleksander Machniak <alec@alec.pl>2012-10-11 10:00:44 +0200
commit00891e687b97b6eac7317970aeb0d49826d05d42 (patch)
treee58a7cac927d121b8b0df5d6f1b6b52e927cf29d /program/include/rcube_imap.php
parent485f23b85970e8b3fb559e28a763915f41d4e0d6 (diff)
Support flags and date arguments in APPEND command
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r--program/include/rcube_imap.php6
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);
}
}