X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fread_body.php;h=8d9bfb149b49038408000cab95f0519346a68940;hp=59bd30020d1b4dd7265fb0056641680657032b4d;hb=a798d8b2a36f3f7d30e58f350df31e31f9fefaf8;hpb=82d6de254a3af0b73d7cbd39fd941bf8a954a87a diff --git a/src/read_body.php b/src/read_body.php index 59bd3002..8d9bfb14 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -964,6 +964,14 @@ if (isset($passed_ent_id) && $passed_ent_id) { } $header = $message->header; +// gmail does not mark messages as read when retrieving the message body +// even though RFC 3501, section 6.4.5 (FETCH Command) says: +// "The \Seen flag is implicitly set; if this causes the flags to change, +// they SHOULD be included as part of the FETCH responses." +// +if ($imap_server_type == 'gmail') { + sqimap_toggle_flag($imapConnection, $passed_id, '\\Seen', true, true); +} /****************************************/ /* Block for handling incoming url vars */