aboutsummaryrefslogtreecommitdiffstats
path: root/lib/msgstore.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-05-16 20:03:42 +0200
committerReto Brunner <reto@labrat.space>2020-05-16 20:03:42 +0200
commitbae678e8f20605b64596c9e976623f2a37247adb (patch)
tree14c90c4e74e2db7f180c94e479f425a5be8907c5 /lib/msgstore.go
parentea2646fc039a572491ba8cc8e2879b7bf61c25dd (diff)
downloadaerc-bae678e8f20605b64596c9e976623f2a37247adb.tar.gz
imap: Remove FetchMessageBodyPart.{Encoding,Charset}
Fixes https://todo.sr.ht/~sircmpwn/aerc2/352 exactly as suggested by emersion.
Diffstat (limited to 'lib/msgstore.go')
-rw-r--r--lib/msgstore.go15
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go
index b3a86b38..3fe26cbd 100644
--- a/lib/msgstore.go
+++ b/lib/msgstore.go
@@ -138,21 +138,10 @@ func (store *MessageStore) FetchFull(uids []uint32, cb func(*types.FullMessage))
func (store *MessageStore) FetchBodyPart(
uid uint32, parent *models.BodyStructure, part []int, cb func(io.Reader)) {
- partbs, err := parent.PartAtIndex(part)
- if err != nil {
- store.worker.Logger.Printf("FetchBodyPart: %v\n", err)
- }
- var charset string
- var ok bool
- if charset, ok = partbs.Params["charset"]; !ok {
- charset = ""
- }
store.worker.PostAction(&types.FetchMessageBodyPart{
- Uid: uid,
- Part: part,
- Encoding: partbs.Encoding,
- Charset: charset,
+ Uid: uid,
+ Part: part,
}, func(resp types.WorkerMessage) {
msg, ok := resp.(*types.MessageBodyPart)
if !ok {