macros 1.6 KB

123456789101112131415161718192021222324252627282930
  1. # -*- muttngrc -*-
  2. #
  3. # Muttng configuration file
  4. # 2006, 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 Muttng.
  10. #
  11. macro generic \em "<enter-command>source ~/.muttrc<enter>" "Reloading muttng's configuration"
  12. macro index,pager <f1> "<change-folder> =INBOX<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 B "<enter-command>toggle sidebar_visible<enter>" "Toggle sidebar visibility"
  18. macro index \cx "<tag-pattern>~N<enter><tag-prefix><toggle-new><tag-prefix><clear-flag>*" "Mark all new messages as read"
  19. # bogofilter macros
  20. #macro index,pager \cs ":unset wait_key\n|bogofilter -Ns\n:set wait_key\n:exec save-message\r=Spam\n" "*** set message as SPAM :-("
  21. #macro index,pager \ch ":unset wait_key\n|bogofilter -Sn\n:set wait_key\n:exec save-message\r=INBOX\n" "*** set message as HAM :-)"
  22. # spamassassin macros
  23. macro index,pager \ch "<enter-command>unset wait_key<enter><pipe-message>sa-learn --forget<enter><pipe-message>sa-learn --ham --no-sync<enter><enter-command>set wait_key<enter>" "Set message as HAM"
  24. macro index,pager \cs "<enter-command>unset wait_key<enter><pipe-message>sa-learn --forget<enter><pipe-message>sa-learn --spam --no-sync<enter><enter-command>set wait_key<enter><save-message>=Spam<enter>" "Set message as SPAM"