<<< Date Index >>>     <<< Thread Index >>>

Re: bind key to change to previous mailbox?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday, June 15 at 03:41 PM, quoth Marianne Promberger:
> I'd like to enable a key combination that would take me back to the 
> most recent mailbox I've visited before the current one.

This is very easy - use the builtin shortcuts. Just as ! refers to the 
$spoolfile, and > refers to the $mbox, < refers to $record and both = 
and + refer to $folder, so too do both !! and - refer to the previous 
mailbox. So you can do this:

     macro index B '<change-folder>!!<enter>'

... or you can just do it by hand - change folders and tell it to 
change to !!.

Note that this is the same syntax that can be used in most shells with 
the cd command:

     cd -

... will take you back to the previous folder you were in.

~Kyle
- -- 
Those who will not reason, are bigots, those who cannot, are fools, 
and those who dare not, are slaves.
                                            -- George Gordon Noel Byron
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkhVdU4ACgkQBkIOoMqOI16ZUACeJQkBd8QG326w9NmqYuRUoB3y
EQEAoPOnkDGwfkPW4J953dfd4joTslLU
=HN4W
-----END PGP SIGNATURE-----