Take the 2-minute tour ×

I want to switch between "Sent" mailbox and current mailbox, I use the maildir type.

It's best If there could be a macro bound to a shortcut key

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

You can write a macro and bind it to a key, or key sequence. For example, in my muttrc I include this line:

macro index \Cs  "<change-folder> =JWR/INBOX.Sent<enter>"  "go to Sent Items"

It takes me to my Sent items with Ctrls.

You can determine the correct name of the relevant maildir folder by bringing up the prompt with c and then hitting ? for the list.

share|improve this answer
If you want to bind it to a Function key, you'll need to use <F4> - also, are you sure that is the correct path as mutt sees it? –  jasonwryan Jun 26 '12 at 0:19
yes, I can do mutt -f /home/XX/Mail/.Sent, and that works –  warl0ck Jun 26 '12 at 0:21
No: follow the advice I provided in my answer and source the correct path from mutt's prompt... –  jasonwryan Jun 26 '12 at 0:22
That worked, just one thing, is it possible to "toggle" between the two mailboxes ? –  warl0ck Jun 26 '12 at 0:30
There is a <toggle-mailboxes> call but I haven't played around with it: so I'm not sure. –  jasonwryan Jun 26 '12 at 0:34
show 2 more comments

On my system, I wanted to go back to the INBOX and had to use the following, Otherwise if I did C? and went to another folder, I couldn't get back to the inbox.

macro index <home>  "<change-folder> =INBOX"<enter>
share|improve this answer
add comment

Your Answer


