aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap
diff options
context:
space:
mode:
Diffstat (limited to 'worker/imap')
-rw-r--r--worker/imap/fetch.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/worker/imap/fetch.go b/worker/imap/fetch.go
index d675ed17..79c9148b 100644
--- a/worker/imap/fetch.go
+++ b/worker/imap/fetch.go
@@ -50,10 +50,7 @@ func (imapw *IMAPWorker) handleFetchMessageHeaders(
if err != nil {
logging.Errorf(
"message %d: could not read header: %v", _msg.Uid, err)
- imapw.worker.PostMessage(&types.Error{
- Message: types.RespondTo(msg),
- Error: err,
- }, nil)
+ imapw.worker.PostMessageInfoError(msg, _msg.Uid, err)
return nil
}
header := &mail.Header{Header: message.Header{Header: textprotoHeader}}