Conditional macro?

Alex Sa 097115+mutt at gmail.com
Thu Dec 6 15:16:09 UTC 2018


Hi!


Is it possible to set up a macro that would behave differently
dependent on the current folder?

Let's say I want to to limit messages in the "[Gmail]/All Mail" folder
to display only the new ones. So, if I'm not in "All Mail", that would
be something like this:

<change-folder>=[Gmail]/All Mail<Enter><limit>~U<Enter>

However, If I'm IN this "All Mail" folder, then, of course, I don't
want to re-read all these thousands of emails again, and want to
execute "<limit>~U<Enter>" immediately.

Is it doable? :)


Thanks!


-- 
Alex


More information about the Mutt-users mailing list