diff options
Diffstat (limited to 'worker/jmap/push.go')
-rw-r--r-- | worker/jmap/push.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/worker/jmap/push.go b/worker/jmap/push.go index 54e6375e..0a85332e 100644 --- a/worker/jmap/push.go +++ b/worker/jmap/push.go @@ -253,7 +253,13 @@ func (w *JMAPWorker) refresh(newState jmap.TypeState) error { selectedIds[id] = true } } - for _, m := range r.List { + + emails, err := w.fetchEntireThreads(r.List) + if err != nil { + return err + } + + for _, m := range emails { err = w.cache.PutEmail(m.ID, m) if err != nil { w.w.Warnf("PutEmail: %s", err) |