diff options
Diffstat (limited to 'worker/mbox/worker.go')
-rw-r--r-- | worker/mbox/worker.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/worker/mbox/worker.go b/worker/mbox/worker.go index 5034f66d..8ed04e05 100644 --- a/worker/mbox/worker.go +++ b/worker/mbox/worker.go @@ -162,8 +162,16 @@ func (w *mboxWorker) handleMessage(msg types.WorkerMessage) error { } msgInfo, err := messageInfo(m, true) if err != nil { - w.worker.PostMessageInfoError(msg, uid, err) - break + w.worker.PostMessage(&types.MessageInfo{ + Info: &models.MessageInfo{ + Envelope: &models.Envelope{}, + Flags: models.SeenFlag, + Uid: uid, + Error: err, + }, + Message: types.RespondTo(msg), + }, nil) + continue } else { switch { case len(w.headersExclude) > 0: |