diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/msgstore.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go index 2733288..73c79e7 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -425,3 +425,12 @@ func (store *MessageStore) NextResult() { func (store *MessageStore) PrevResult() { store.nextPrevResult(-1) } + +func (store *MessageStore) ModifyLabels(uids []uint32, add, remove []string, + cb func(msg types.WorkerMessage)) { + store.worker.PostAction(&types.ModifyLabels{ + Uids: uids, + Add: add, + Remove: remove, + }, cb) +} |