aboutsummaryrefslogtreecommitdiffstats
path: root/worker/jmap/fetch.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/jmap/fetch.go')
-rw-r--r--worker/jmap/fetch.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/worker/jmap/fetch.go b/worker/jmap/fetch.go
index efa8f69b..3c422cbf 100644
--- a/worker/jmap/fetch.go
+++ b/worker/jmap/fetch.go
@@ -154,6 +154,10 @@ func (w *JMAPWorker) handleFetchMessageHeaders(msg *types.FetchMessageHeaders) e
missing = append(missing, id)
}
+ if len(missing) == 0 {
+ return nil
+ }
+
var req jmap.Request
req.Invoke(&email.Get{
Account: w.accountId,