From 95875b13f829919b3453763628d1dda97371fab0 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 31 Mar 2019 12:17:57 -0400 Subject: Rename FetchMessageBodies to FetchFullMessages --- lib/msgstore.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/msgstore.go') 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) } } -- cgit v1.2.3