On 2022-08-08 22:15, Derek Martin wrote:
On Fri, Jul 29, 2022 at 08:15:31AM +0200, Fourhundred Thecat wrote:
Hello,

I have custom macro "q" for exit:

   macro  index  q  "<sync-mailbox>;<exit>"

but when I open mailbox read-only, I am not able to exit from mutt:

AFAICT this macro does nothing useful--the normal quit (normally bound
to 'q') already syncs before quitting.  But you can't sync a read-only
mailbox so just exit instead (normally bound to 'x').

I am using mutt in 2 modes:

  1) mutt -R -f folder
  2) mutt    -f folder

In case 1), pressing "q" should simply exit. This is read-only mode and
there are no messages to be deleted.

In case 2), pressing "q" should exit while also automatically deleting
any messages marked for deletion.

When I delete my custom macro, and revert "q" to its default action,
then I get this message when exiting from mutt (case 2):

  Purge 1 deleted message? ([yes]/no):

When I create custom macro to sync automatically, I get the error on
read-only mutt, because it cannot be synced.

So I need "q" that works in both cases.



Reply via email to