diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/msgstore.go | 4 |
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) } } |