diff options
author | 2023-03-17 20:22:01 +0100 | |
---|---|---|
committer | 2023-03-17 20:22:01 +0100 | |
commit | eeedc9a387117ebb8cb9ee4d38eccbbf240783d0 (patch) | |
tree | a29a064e8bcb5c1968ceff732ba0632cf6eef8e8 | |
parent | 523acbd733f1dbee9fa60ccd017258671c622166 (diff) | |
download | alps-eeedc9a387117ebb8cb9ee4d38eccbbf240783d0.tar.gz alps-eeedc9a387117ebb8cb9ee4d38eccbbf240783d0.tar.bz2 alps-eeedc9a387117ebb8cb9ee4d38eccbbf240783d0.zip |
Ensure Drafts mailbox is selected before searching for Message-Id
-rw-r--r-- | plugins/base/routes.go | 4 |
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), } |