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

View file

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