macros 2.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # -*- muttrc -*-
  2. #
  3. # Mutt configuration file
  4. # 2008, kolter <kolter@openics.org>
  5. #
  6. # This file is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY
  8. #
  9. # Macros settings for Mutt.
  10. #
  11. macro generic \em "<enter-command>source ~/.muttrc<enter>" "Reloading Mutt's configuration"
  12. macro index,pager <f1> "<change-folder> =<enter>" "Change folder for INBOX"
  13. macro index,pager <f2> "<change-folder> =.Sent<enter>" "Change folder for Sent"
  14. macro index,pager <f3> "<change-folder> =.Draft<enter>" "Change folder for Draft"
  15. macro index,pager <f4> "<change-folder> =.Spam<enter>" "Change folder for Spam"
  16. macro index,pager <f5> "<change-folder> =.Trash<enter>" "Change folder for Trash"
  17. macro index,pager <f10> "<change-folder> =<enter>" "Change folder for INBOX"
  18. macro index,pager B "<enter-command>toggle sidebar_visible<enter>" "Toggle sidebar visibility"
  19. macro index,pager X "<enter-command>toggle sidebar_newmail_only<enter>" "Toggle sidebar only new mails"
  20. macro index \cx "<tag-pattern>~N|~O<enter><tag-prefix><toggle-new><tag-prefix><clear-flag>*" "Mark all new messages as read"
  21. #macro index,pager S "<enter-command>unset wait_key<enter><bounce-message>spam@localhost<enter><enter-command>set wait_key<delete-message>" "Bounce message to AntiSpam (spam)"
  22. #macro index,pager H "<enter-command>unset wait_key<enter><bounce-message>ham@localhost<enter><enter-command>set wait_key" "Bounce message to AntiSpam (ham)"
  23. macro index S "<enter-command>set confirmappend=no delete=yes auto_tag=yes resolve=no<enter><clear-flag>N<clear-flag>O<save-message>=.Spam\n<sync-mailbox><enter-command>set confirmappend=yes delete=ask-yes resolve=yes<enter>"
  24. # Search
  25. macro index "<Esc>f" "<enter-command>unset wait_key<enter><shell-escape>read -p'Search pattern: ' search_pattern; mu find --clearlinks --linksdir ~/Mail/imap/.search --format links \$search_pattern<enter>\<change-folder-readonly>~/Mail/imap/.search\n" "Search"
  26. macro index "<Esc>s" "<change-folder-readonly>~/Mail/imap/.search\n" "Show search results"
  27. # labels
  28. macro index y "<enter-command>set editor=~/.bin/mutt-edit-label\n<edit><sync-mailbox>\n<previous-undeleted><clear-flag>O<previous-undeleted><enter-command>set editor=vim\n" "Edit label(s)"
  29. macro index \Cy "<limit>~y " "Limit view to label"