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/msgview
|
@ -36,7 +36,7 @@ func (Open) Execute(aerc *widgets.Aerc, args []string) error {
|
|||
p := mv.SelectedMessagePart()
|
||||
|
||||
store := mv.Store()
|
||||
store.FetchBodyPart(p.Msg.Uid, p.Msg.BodyStructure, p.Index, func(reader io.Reader) {
|
||||
store.FetchBodyPart(p.Msg.Uid, p.Index, func(reader io.Reader) {
|
||||
extension := ""
|
||||
// try to determine the correct extension based on mimetype
|
||||
if part, err := p.Msg.BodyStructure.PartAtIndex(p.Index); err == nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue