aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/providesmessage.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/providesmessage.go')
-rw-r--r--widgets/providesmessage.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/widgets/providesmessage.go b/widgets/providesmessage.go
index 7be8e7ed..4b716371 100644
--- a/widgets/providesmessage.go
+++ b/widgets/providesmessage.go
@@ -1,14 +1,24 @@
package widgets
import (
+ "github.com/emersion/go-imap"
+
"git.sr.ht/~sircmpwn/aerc/lib"
"git.sr.ht/~sircmpwn/aerc/lib/ui"
"git.sr.ht/~sircmpwn/aerc/worker/types"
)
+type PartInfo struct {
+ Index []int
+ Msg *types.MessageInfo
+ Part *imap.BodyStructure
+ Store *lib.MessageStore
+}
+
type ProvidesMessage interface {
ui.Drawable
Store() *lib.MessageStore
- SelectedMessage() *types.MessageInfo
SelectedAccount() *AccountView
+ SelectedMessage() *types.MessageInfo
+ SelectedMessagePart() *PartInfo
}