2019-06-02 05:15:04 +00:00
|
|
|
package widgets
|
|
|
|
|
|
|
|
import (
|
2019-07-05 16:21:12 +00:00
|
|
|
"github.com/emersion/go-imap"
|
|
|
|
|
2019-06-02 05:15:04 +00:00
|
|
|
"git.sr.ht/~sircmpwn/aerc/lib"
|
|
|
|
"git.sr.ht/~sircmpwn/aerc/lib/ui"
|
2019-06-02 14:23:53 +00:00
|
|
|
"git.sr.ht/~sircmpwn/aerc/worker/types"
|
2019-06-02 05:15:04 +00:00
|
|
|
)
|
|
|
|
|
2019-07-05 16:21:12 +00:00
|
|
|
type PartInfo struct {
|
|
|
|
Index []int
|
|
|
|
Msg *types.MessageInfo
|
|
|
|
Part *imap.BodyStructure
|
|
|
|
Store *lib.MessageStore
|
|
|
|
}
|
|
|
|
|
2019-06-02 05:15:04 +00:00
|
|
|
type ProvidesMessage interface {
|
|
|
|
ui.Drawable
|
2019-06-02 14:23:53 +00:00
|
|
|
Store() *lib.MessageStore
|
2019-06-02 05:15:04 +00:00
|
|
|
SelectedAccount() *AccountView
|
2019-07-05 16:21:12 +00:00
|
|
|
SelectedMessage() *types.MessageInfo
|
|
|
|
SelectedMessagePart() *PartInfo
|
2019-06-02 05:15:04 +00:00
|
|
|
}
|