aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/providesmessage.go
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2019-07-07 22:43:58 -0400
committerDrew DeVault <sir@cmpwn.com>2019-07-08 16:06:28 -0400
commitc610c3cd9dd47c400e52c1858e987f5f32a7a45b (patch)
tree6e521ba706d87ea4a03ce81d57ff84317506f3df /widgets/providesmessage.go
parent88c379dcbaaf9fd549cd271817e79fe634b1dd84 (diff)
downloadaerc-c610c3cd9dd47c400e52c1858e987f5f32a7a45b.tar.gz
Factor IMAP-specific structs out of UI models
Before, we were using several IMAP-specific concepts to represent information being displayed in the UI. Factor these structures out of the IMAP package to make it easier for other backends to provide the required information.
Diffstat (limited to 'widgets/providesmessage.go')
-rw-r--r--widgets/providesmessage.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/widgets/providesmessage.go b/widgets/providesmessage.go
index d8b1e771..a1cfaa8f 100644
--- a/widgets/providesmessage.go
+++ b/widgets/providesmessage.go
@@ -1,8 +1,6 @@
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/models"
@@ -10,8 +8,8 @@ import (
type PartInfo struct {
Index []int
- Msg *types.MessageInfo
- Part *imap.BodyStructure
+ Msg *models.MessageInfo
+ Part *models.BodyStructure
Store *lib.MessageStore
}