aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/base/routes.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/base/routes.go b/plugins/base/routes.go
index af2b51e..a7dabf1 100644
--- a/plugins/base/routes.go
+++ b/plugins/base/routes.go
@@ -686,6 +686,10 @@ func handleCompose(ctx *alps.Context, msg *OutgoingMessage, options *composeOpti
}
}
+ if err := ensureMailboxSelected(c, drafts.Name); err != nil {
+ return err
+ }
+
criteria := &imap.SearchCriteria{
Header: make(textproto.MIMEHeader),
}