From eeedc9a387117ebb8cb9ee4d38eccbbf240783d0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 17 Mar 2023 20:22:01 +0100 Subject: Ensure Drafts mailbox is selected before searching for Message-Id --- plugins/base/routes.go | 4 ++++ 1 file changed, 4 insertions(+) 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), } -- cgit v1.2.3-59-g8ed1b