recall: mention the -f option in the error message

Commit bc593ac7cd ("recall: allow recalling messages from any folder")
added the possibility to recall any message by providing the -f flag.
Mention the flag in the error message.

Signed-off-by: inwit <inwit@sindominio.net>
Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
inwit 2022-04-29 14:05:01 +02:00 committed by Robin Jarry
parent 78b7e4e993
commit a1b75a99bd
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ func (Recall) Execute(aerc *widgets.Aerc, args []string) error {
return errors.New("No account selected")
}
if acct.SelectedDirectory() != acct.AccountConfig().Postpone && !force {
return errors.New("Can only recall from the postpone directory: " +
acct.AccountConfig().Postpone)
return errors.New("Use -f to recall from outside the " +
acct.AccountConfig().Postpone + " directory.")
}
store := widget.Store()
if store == nil {