FetchBodyPart doesn't need the parent body structure
This commit is contained in:
parent
bae678e8f2
commit
13a6a3fa71
9 changed files with 24 additions and 29 deletions
commands/msg
|
@ -138,7 +138,7 @@ func (forward) Execute(aerc *widgets.Aerc, args []string) error {
|
|||
|
||||
// TODO: something more intelligent than fetching the 1st part
|
||||
// TODO: add attachments!
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue