aboutsummaryrefslogtreecommitdiffstats
path: root/worker/notmuch
diff options
context:
space:
mode:
Diffstat (limited to 'worker/notmuch')
-rw-r--r--worker/notmuch/message.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/worker/notmuch/message.go b/worker/notmuch/message.go
index a51f78b3..59367fd1 100644
--- a/worker/notmuch/message.go
+++ b/worker/notmuch/message.go
@@ -11,8 +11,6 @@ import (
"git.sr.ht/~rjarry/aerc/models"
"git.sr.ht/~rjarry/aerc/worker/lib"
notmuch "git.sr.ht/~rjarry/aerc/worker/notmuch/lib"
- "github.com/emersion/go-message"
- _ "github.com/emersion/go-message/charset"
)
type Message struct {
@@ -47,7 +45,7 @@ func (m *Message) NewBodyPartReader(requestedParts []int) (io.Reader, error) {
return nil, err
}
defer f.Close()
- msg, err := message.Read(f)
+ msg, err := lib.ReadMessage(f)
if err != nil {
return nil, fmt.Errorf("could not read message: %w", err)
}