Ticket #1485803 (closed Bugs: fixed)
opening attachment marks message as read
| Reported by: | JohnDoh | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.2.2 |
| Component: | IMAP connection | Version: | svn-trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Hi,
If you open an attachment, say a PDF, something in the RC attachment viewer it automatically marks the message as read. Steps to recreate…
1. Get a message with a PDF attached
2. View the message in the preview pane
3. Mark the message as unread
4. Open the attachment
5. Go back to the mailbox view; here the message is still marked as unread BUT refresh the page...
6. The message is actually marked as read
I think this is a bug because the user has specifically marked the message as unread and has no way to know that the system has reversed this unless they happen to reload the page.
I was playing with a possible fix and this seems to work:
--- roundcube_svn/program/lib/imap.inc 2009-03-06 15:06:14.000000000 +0000
+++ roundcube_dev/program/lib/imap.inc 2009-04-07 18:30:28.000000000 +0100
@@ -2435,7 +2435,7 @@
foreach($parts as $part)
$peeks[] = "BODY[$part.MIME]";
- $request = "$key FETCH $id (" . implode(' ', $peeks) . ')';
+ $request = "$key FETCH $id (FLAGS (\Seen) " . implode(' ', $peeks) . ')';
// send request
if (!iil_PutLine($fp, $request)) {
But I must admit I don’t know why, perhaps there is a better solution. I don’t think the system should change the status of a message on its own, especially without any notice to the user.
