summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
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);
}
}