FetchBodyPart doesn't need the parent body structure

This commit is contained in:
Reto Brunner 2020-05-17 11:44:38 +02:00
commit 13a6a3fa71
9 changed files with 24 additions and 29 deletions
commands/msg

View file

@ -165,7 +165,7 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error {
template = aerc.Config().Templates.QuotedReply
}
store.FetchBodyPart(msg.Uid, msg.BodyStructure, []int{1}, func(reader io.Reader) {
store.FetchBodyPart(msg.Uid, []int{1}, func(reader io.Reader) {
buf := new(bytes.Buffer)
buf.ReadFrom(reader)
original.Text = buf.String()