On 25.08.15   13:18, Francesco Ariis wrote:
> 
> The browser menu is the one where all mailboxes/folders are listed.
> >From there:
> 
>     - I type ":exec exit" and mutt returns to the last mailbox opened

Mmmm, this differs on my machine:

from browser menu I can see mailboxes in ~/Mail directory.
If I type ":exec exit", mutt ask me for which mailbox I want to open,
doesn't switch to the last opened automatically.
I have to type <enter> to open last seen mailbox.
Then, from within that mailbox (index menu), if I type ":exec quit",
mutt terminates as expected.

So in my case a macro like this could work properly:
---
macro browser q "<exit><enter><quit>"
---


Let's test it...
...

Yessss it works!  :)
Question solved! Thanks a lot for your help.





>     macro index q "<change-folder>?<toggle-mailboxes>" "open another folder"
>     macro browser q "<exit><quit>"


Default index menu behaviour (when you are in a mailbox) is to quit
Mutt by typing "q".
If I well understand your other macro, the one related to "index menu"
would be to exit from current mailbox and go to mailbox list (browser
menu).
I don't know the meaning of "question mark" in that sequence, anyway
in my case that doesn't work.
I think it is a useful stuff:

Read messages of a mailbox and then return to "mailboxes listing"
of mail directory (~/Mail for me) by simply type "q".

I've just tried this:
---
index q "<change-folder><TAB>" "open another folder"
---

And it seems to work as expected for me.



PS.
I'm trying to obtain a sort of hierarchical "menu" browsing:

1- list o mailboxes in Mail directory at startup (going in browser menu):

push "c<TAB>"


2- enter in chosen mailbox (arrow keys and enter).

3- open a message

4- return to mailbox (index menu) by pressing "q"

5- return to mailboxes list (browse menu) by pressing "q"

6- quit Mutt by pressing "q"


Ok, with those macros seems to work as I expected.

There are still a couple of things I'd like to obtain, one should be
easy and the other could be not possible at all:

1- "N" flags in my browser menu do not appears even if my mailboxes
   contain brand new messages.

2- I'd like to isolate a whole thread from the rest of messages/threads
   opening it in a new clean screen containing just that thread.
   Same behaviour of "tin" newsreader:
   - topics of a newsgroup are listed one per line
   - let's open a topic contains more than one message by typing
     right arrow key
   - tin shows on a new screen the opened topic with all threaded
     articles.
     In this screen other topics are hidden (we are in a "menu" that
     Mutt doesn't seem to provide), could call it "thread menu".
   - from there we can open single articles and then return to the
     "topic menu".

   I'll try to write a sort of analogy between tin and mutt
   "menus/screens".
   ---
   Tin Newsreader               Mutt MUA

   news-groups menu             browser-menu (mailboxes list of ~/Mail)
   topics menu                  index-menu (message subjects list)
   thread menu                  -- missed --
   article menu                 pager-menu (wher we read message
   ---

   Threads menu would be very useful for me especially to read mailing
   list threads in a more clean way, this could be the subject of a new
   thread on this mailing list...

Reply via email to