diff options
Diffstat (limited to 'worker/mbox/worker.go')
-rw-r--r-- | worker/mbox/worker.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/worker/mbox/worker.go b/worker/mbox/worker.go index fcf1917d..c2cf9ecb 100644 --- a/worker/mbox/worker.go +++ b/worker/mbox/worker.go @@ -254,8 +254,9 @@ func (w *mboxWorker) handleMessage(msg types.WorkerMessage) error { log.Errorf("could not get message: %v", err) continue } - if err := m.(*message).SetFlag(msg.Flag, msg.Enable); err != nil { - log.Errorf("could change flag %v to %t on message: %v", msg.Flag, msg.Enable, err) + if err := m.(*message).SetFlag(msg.Flags, msg.Enable); err != nil { + log.Errorf("could not change flag %v to %t on message: %v", + msg.Flags, msg.Enable, err) continue } info, err := lib.MessageInfo(m) |