diff options
Diffstat (limited to 'worker/imap/open.go')
-rw-r--r-- | worker/imap/open.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/worker/imap/open.go b/worker/imap/open.go index 28495731..238f1e25 100644 --- a/worker/imap/open.go +++ b/worker/imap/open.go @@ -19,7 +19,7 @@ func (imapw *IMAPWorker) handleOpenDirectory(msg *types.OpenDirectory) { Error: err, }, nil) } else { - imapw.worker.PostMessage(&types.Done{types.RespondTo(msg)}, nil) + imapw.worker.PostMessage(&types.Done{Message: types.RespondTo(msg)}, nil) } } @@ -67,7 +67,7 @@ func (imapw *IMAPWorker) handleFetchDirectoryContents( Message: types.RespondTo(msg), Uids: uids, }, nil) - imapw.worker.PostMessage(&types.Done{types.RespondTo(msg)}, nil) + imapw.worker.PostMessage(&types.Done{Message: types.RespondTo(msg)}, nil) } } @@ -89,7 +89,7 @@ func translateSortCriterions( result := make([]sortthread.SortCriterion, 0, len(cs)) for _, c := range cs { if f, ok := sortFieldMap[c.Field]; ok { - result = append(result, sortthread.SortCriterion{f, c.Reverse}) + result = append(result, sortthread.SortCriterion{Field: f, Reverse: c.Reverse}) } } return result @@ -117,7 +117,7 @@ func (imapw *IMAPWorker) handleDirectoryThreaded( Message: types.RespondTo(msg), Threads: aercThreads, }, nil) - imapw.worker.PostMessage(&types.Done{types.RespondTo(msg)}, nil) + imapw.worker.PostMessage(&types.Done{Message: types.RespondTo(msg)}, nil) } } |