--- /dev/null
+# muttrc file to toggle between flagged an unflagged mails
+# when sourced display all emails, next call to <Esc>f toggles
+
+# Copyright (C) 2007-2012 Simon Ruderich
+#
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this file. If not, see <http://www.gnu.org/licenses/>.
+
+
+# display all mails, also go to the next new/unread message:
+# un/set beep prevents warnings with next-new-then-unread if there are no unread messages
+push "<limit>.<enter><enter-command>unset beep<enter><last-entry><next-new-then-unread><enter-command>set beep<enter>"
+
+# macro to display only flagged mails:
+macro index <esc>f "<enter-command>source ~/.mutt/handling-flagged<enter>"
+
+# vim: ft=muttrc