Only prefetch messages that have not been seen before.
* src/engine/imap-engine/imap-engine-email-prefetcher.vala
(EmailPrefetcher): Connect to email_locally_{appended,inserted} rather
than email_{appended,inserted}.
This commit is contained in:
parent
926aae4ef2
commit
7c5d89bdb9
1 changed files with 4 additions and 4 deletions
|
|
@ -36,8 +36,8 @@ private class Geary.ImapEngine.EmailPrefetcher : Object {
|
|||
|
||||
folder.opened.connect(on_opened);
|
||||
folder.closed.connect(on_closed);
|
||||
folder.email_appended.connect(on_local_expansion);
|
||||
folder.email_inserted.connect(on_local_expansion);
|
||||
folder.email_locally_appended.connect(on_local_expansion);
|
||||
folder.email_locally_inserted.connect(on_local_expansion);
|
||||
}
|
||||
|
||||
~EmailPrefetcher() {
|
||||
|
|
@ -46,8 +46,8 @@ private class Geary.ImapEngine.EmailPrefetcher : Object {
|
|||
|
||||
folder.opened.disconnect(on_opened);
|
||||
folder.closed.disconnect(on_closed);
|
||||
folder.email_appended.disconnect(on_local_expansion);
|
||||
folder.email_inserted.disconnect(on_local_expansion);
|
||||
folder.email_locally_appended.disconnect(on_local_expansion);
|
||||
folder.email_locally_inserted.disconnect(on_local_expansion);
|
||||
}
|
||||
|
||||
private void on_opened(Geary.Folder.OpenState open_state) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue