Make :pipe command more generic

This commit is contained in:
Drew DeVault 2019-07-05 12:21:12 -04:00
parent f9f523ad59
commit 363aab5cc1
8 changed files with 125 additions and 110 deletions
commands/msgview

View file

@ -34,7 +34,7 @@ func (_ Open) Execute(aerc *widgets.Aerc, args []string) error {
}
mv := aerc.SelectedTab().(*widgets.MessageViewer)
p := mv.CurrentPart()
p := mv.SelectedMessagePart()
p.Store.FetchBodyPart(p.Msg.Uid, p.Index, func(reader io.Reader) {
// email parts are encoded as 7bit (plaintext), quoted-printable, or base64