aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-31 12:17:57 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-31 12:19:30 -0400
commit95875b13f829919b3453763628d1dda97371fab0 (patch)
treed8d9c12680259b4d321165a32c9d7e0dc4b430fc /lib
parent27b25174e2f0249a6a1d4ba45b70f8504b63ffb1 (diff)
Rename FetchMessageBodies to FetchFullMessages
Diffstat (limited to 'lib')
-rw-r--r--lib/msgstore.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go
index 2169b2e..2e59be7 100644
--- a/lib/msgstore.go
+++ b/lib/msgstore.go
@@ -66,7 +66,7 @@ func (store *MessageStore) FetchHeaders(uids []uint32,
}
}
-func (store *MessageStore) FetchBodies(uids []uint32, cb func(io.Reader)) {
+func (store *MessageStore) FetchFull(uids []uint32, cb func(io.Reader)) {
// TODO: this could be optimized by pre-allocating toFetch and trimming it
// at the end. In practice we expect to get most messages back in one frame.
var toFetch imap.SeqSet
@@ -84,7 +84,7 @@ func (store *MessageStore) FetchBodies(uids []uint32, cb func(io.Reader)) {
}
}
if !toFetch.Empty() {
- store.worker.PostAction(&types.FetchMessageBodies{Uids: toFetch}, nil)
+ store.worker.PostAction(&types.FetchFullMessages{Uids: toFetch}, nil)
}
}