Messages with \Deleted flag do not disappear from mailbox after syncing
Bug summary
During an automatic sync of a mailbox, if messages that are currently displayed in the list have had the \Deleted flag added to them from another client, the messages remain in the mailbox until Geary is restarted. It's also not possible to archive these messages through normal means.
About you
- Geary version:
geary master~g01a43bbe
- Installation method: From source
- Your desktop: xfce
- Your operating system and version:
Linux version 4.9.0-6-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07)
- Email provider: Fastmail
Steps to reproduce
- Load a mailbox on an instance of Geary
- From another computer, archive one of the messages from this mailbox (for most clients, an archive is a copy to the archive mailbox and adding the \Deleted flag to the message).
- Let Geary automatically sync the mailbox (is there a way to do this manually?)
Actual Behavior
The message remains visible in the mailbox. Attempting to archive this in Geary doesn't work, it just appears to be a no-op.
Expected Behavior
The message disappears from the mailbox.
Relevant logs and/or screenshots
[deb] 17:45:55 20.377079 geary: conversation-viewer.vala:304: Showing: conversation_page
[deb] 17:45:55 0.000058 geary: app-email-store.vala:160: EmailStore Other:account_02 running GearyAppListOperation on 1 emails
[deb] 17:45:55 0.032379 geary: conversation-list-box.vala:612: Conversation loading complete
[deb] 17:46:00 4.418509 geary: geary-controller.vala:2504: Archiving selected messages
[deb] 17:46:00 0.008025 geary: app-conversation-monitor.vala:300: Monitor started
[deb] 17:46:00 0.000006 geary: app-remove-operation.vala:22: 1 messages(s) removed from account_02:INBOX (open_count=2 remote_opened=true), trimming/removing conversations...
[deb] 17:46:00 0.000126 geary: app-conversation-monitor.vala:302: Monitor stopped
[deb] 17:46:05 5.276934 geary: imap-engine-minimal-folder.vala:269: account_02:INBOX (open_count=2 remote_opened=true): Claiming folder session
[deb] 17:46:05 0.354242 geary: imap-folder-session.vala:201: account_02:INBOX:0001/imap.fastmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_SELECTED EXPUNGE 7
[deb] 17:46:05 0.000354 geary: imap-engine-minimal-folder.vala:1103: account_02:INBOX (open_count=2 remote_opened=true) on_remote_removed: remote_count=11 position=7
[deb] 17:46:05 0.004135 geary: imap-engine-generic-account.vala:589: Contents altered!
[deb] 17:46:05 0.000033 geary: imap-engine-generic-account.vala:283: Other:account_02: Enqueuing operation: GearyImapEngineRefreshFolderSync(Archive)
[deb] 17:46:05 0.000659 geary: imap-engine-account-processor.vala:80: Other:account_02: Executing operation: GearyImapEngineRefreshFolderSync(Archive)
[deb] 17:46:05 0.000130 geary: imap-engine-email-prefetcher.vala:98: Listing all emails needing prefetching in account_02:Archive (open_count=1 remote_opened=false)...
[deb] 17:46:05 0.000035 geary: imap-engine-minimal-folder.vala:806: account_02:Archive (open_count=1 remote_opened=false): Folder opened
[deb] 17:46:05 0.000063 geary: imap-engine-minimal-folder.vala:940: account_02:Archive (open_count=1 remote_opened=false): Opening remote session
[deb] 17:46:05 0.000006 geary: imap-engine-generic-account.vala:345: Other:account_02: Acquiring folder session
[deb] 17:46:05 0.000023 geary: imap-client-session-manager.vala:242: [account_02:imap.fastmail.com/default:993] Claiming session with 1 of 2 free
[deb] 17:46:05 0.000025 geary: imap-client-session-manager.vala:422: Sending NOOP when claiming a session
[deb] 17:46:05 0.016654 geary: imap-engine-email-prefetcher.vala:101: Listed all emails needing prefetching in account_02:Archive (open_count=1 remote_opened=false)
[deb] 17:46:06 0.347509 geary: imap-folder-session.vala:189: account_02:Archive:0000/imap.fastmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_SELECTING EXISTS 26760
[deb] 17:46:06 0.000516 geary: imap-folder-session.vala:230: account_02:Archive:0000/imap.fastmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_SELECTING RECENT 0
[deb] 17:46:06 0.004595 geary: imap-engine-minimal-folder.vala:320: account_02:Archive (open_count=1 remote_opened=false): Begin normalizing remote and local folders
[deb] 17:46:06 0.006376 geary: imap-engine-minimal-folder.vala:452: account_02:Archive (open_count=1 remote_opened=false): Messages only appended (local/remote UIDNEXT=26906/26907 total=26759/26760 diff=1), gathering mail UIDs 26906:26906
[deb] 17:46:06 0.103507 geary: imap-engine-minimal-folder.vala:482: account_02:Archive (open_count=1 remote_opened=false): Loaded local (0) and remote (1) UIDs, normalizing...
[deb] 17:46:06 0.000864 geary: imap-engine-minimal-folder.vala:521: account_02:Archive (open_count=1 remote_opened=false): changes since last seen: removed=0 appended=1 inserted=0
[deb] 17:46:06 0.231076 geary: imap-engine-minimal-folder.vala:578: account_02:Archive (open_count=1 remote_opened=false): Finished creating/merging 1 emails
[deb] 17:46:06 0.002600 geary: imap-engine-minimal-folder.vala:642: account_02:Archive (open_count=1 remote_opened=false): Notifying of 1 appended emails since last opened
[deb] 17:46:06 0.000229 geary: imap-engine-minimal-folder.vala:659: account_02:Archive (open_count=1 remote_opened=false): Notifying of 1h count change reason (26760 remote messages)
[deb] 17:46:06 0.000026 geary: imap-engine-minimal-folder.vala:664: account_02:Archive (open_count=1 remote_opened=false): Completed normalize_folder
[deb] 17:46:06 0.000431 geary: app-conversation-monitor.vala:300: Monitor started
[deb] 17:46:06 0.000379 geary: app-external-append-operation.vala:24: 1 out of folder message(s) appended to account_02:Archive (open_count=1 remote_opened=false), fetching to add to conversations...
[deb] 17:46:06 0.009237 geary: imap-engine-account-synchronizer.vala:111: Synchronising : account_02:Archive (open_count=2 remote_opened=true)
[deb] 17:46:06 0.022747 geary: imap-engine-minimal-folder.vala:836: account_02:Archive (open_count=1 remote_opened=true): Folder closing
[deb] 17:46:06 0.000093 geary: imap-engine-minimal-folder.vala:878: Closing replay queue for account_02:Archive (open_count=1 remote_opened=true) (flush_pending=true): ReplayQueue:account_02:Archive (open_count=1 remote_opened=true) (notification=0 local=0 local_active=true remote=0 remote_active=false)
[deb] 17:46:06 0.000441 geary: imap-engine-replay-queue.vala:468: ReplayQueue.do_replay_local_async ReplayQueue:account_02:Archive (open_count=1 remote_opened=true) (notification=0 local=0 local_active=false remote=1 remote_active=false) exiting
[deb] 17:46:06 0.000146 geary: app-conversation-monitor.vala:526: Fetched 1 relevant emails locally
[deb] 17:46:06 0.002233 geary: imap-engine-replay-queue.vala:577: ReplayQueue.do_replay_remote_async ReplayQueue:account_02:Archive (open_count=1 remote_opened=true) (notification=0 local=0 local_active=false remote=0 remote_active=false) exiting
[deb] 17:46:06 0.000195 geary: imap-engine-minimal-folder.vala:882: Closed replay queue for account_02:Archive (open_count=1 remote_opened=true): ReplayQueue:account_02:Archive (open_count=1 remote_opened=true) (notification=0 local=0 local_active=false remote=0 remote_active=false)
[deb] 17:46:06 0.000126 geary: imap-engine-generic-account.vala:387: Other:account_02: Releasing folder session
[deb] 17:46:06 0.000064 geary: imap-client-session-manager.vala:281: [account_02:imap.fastmail.com/default:993] Returning session with 0 of 2 free
[deb] 17:46:06 0.009327 geary: app-conversation-monitor.vala:302: Monitor stopped
[deb] 17:46:06 0.140648 geary: imap-client-session-manager.vala:317: [account_02:imap.fastmail.com/default:993] Unreserving session 0000/imap.fastmail.com/default:993 GEARY_IMAP_CLIENT_SESSION_STATE_AUTHORIZED
[deb] 17:46:06 0.000134 geary: imap-engine-minimal-folder.vala:911: account_02:Archive (open_count=0 remote_opened=false): Folder closed
[deb] 17:46:06 0.095446 geary: imap-engine-replay-queue.vala:231: account_02:INBOX (open_count=2 remote_opened=true): Scheduling 1 held server notification operations
[deb] 17:46:06 0.000703 geary: imap-engine-replay-removal.vala:50: account_02:INBOX (open_count=2 remote_opened=true): ReplayRemoval this.position=7 reported_remote_count=11
[deb] 17:46:06 0.001977 geary: imap-engine-replay-removal.vala:84: [12] Removal: position=7 remote_retry_count=0 do_replay_removed_message: local_count=12 local_position=7
[deb] 17:46:06 0.001828 geary: imap-engine-replay-removal.vala:99: [12] Removal: position=7 remote_retry_count=0 do_replay_removed_message: detaching from local store Email ID [781/16810]
[deb] 17:46:06 0.023679 geary: account_02:INBOX (open_count=2 remote_opened=true) ReplayRemoval: completed, (this.remote_count=11 local_count=11 starting local_count=12 this.position=7 local_position=7 marked=true)