PERL   40

procmailrc

Guest on 18th August 2022 01:20:39 AM

  1. set edit_headers
  2. set index_format   = "%4C %Z %d %-15.15F (%4l) %s"
  3. #set folder_format   = "%4C %Z %d %-15.15F (%4l) %s"
  4. set forward_format="Fw: %s"     # subject in forwarded messages
  5. set date_format="%d/%b/%y %H:%M %Z"
  6. set quote_regexp="^([A-Za-z ]+>|[]%>:|}-][]>:|}-]*)"
  7. #set reply_regexp="^(re([\\[0-9\\]+])*|aw):[ \t]*"
  8. set reply_regexp='^((re(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*'
  9. set sort_aux=reverse-date-received
  10. set pager=builtin
  11. set pager_stop  
  12. set pager_context=3
  13. set pager_index_lines=5
  14. set mime_forward=ask-yes
  15.  
  16. folder-hook . my_hdr From: adulau@foo.be (Alexandre Dulaunoy)
  17. folder-hook . my_hdr Organization: Somewhere in Space
  18. folder-hook . my_hdr X-fingerprint: 3B12 DCC2 82FA 2931 2F5B  709A 09E2 CD49 44E6 CBCD
  19. folder-hook . my_hdr X-URL: http://www.foo.be/
  20. folder-hook . my_hdr X-DMCA-EUCD: False
  21.  
  22. ## List hooks
  23.  
  24. set pgp_autosign=yes
  25. #set pgp_create_traditional=no
  26. #set check-traditional-pgp=yes
  27.  
  28. set sort=threads
  29. #set sort=reverse-date-received
  30. #set abort_unmodified=ask-yes
  31. set editor="/usr/local/bin/emacs -nw"
  32. #Save sent mail
  33. set record="=/sent/`date +%Y-%m`-sent-mail"
  34.  
  35. #save-hook       "~h List-Id"    '=Lists/%B'
  36.  
  37. #Color
  38. #
  39. # color terminals:
  40. # (default, white, black, green, magenta, blue, cyan, yellow, red)
  41. # (bright...)
  42. # (color1,color2,...,colorN-1)
  43. #
  44. #     object     foreground     background
  45. #
  46. color normal     default        default # normal text
  47. color indicator  brightyellow   red     # actual message
  48. color tree       brightmagenta  default # thread arrows
  49. color status     brightgreen    default # status line
  50. color error      brightred      default # errors
  51. color message    red            default # info messages
  52. color signature  red            default # signature
  53. color attachment brightyellow   red     # MIME attachments
  54. color search     brightyellow   red     # search matches
  55. color tilde      brightmagenta  default # ~ at bottom of msg
  56. color markers    red            default # + at beginning of wrapped lines
  57. color hdrdefault blue           default # default header lines
  58. color bold       red            default # hiliting bold patterns in body
  59. color underline  green          default # hiliting underlined patterns in body
  60. color quoted     blue           default # quoted text
  61. color quoted1    magenta        default
  62. color quoted2    red            default
  63. color quoted3    green          default
  64. color quoted4    cyan           default
  65. color quoted5    blue           default
  66. color quoted6    magenta        default
  67. color quoted7    red            default
  68. color quoted8    green          default
  69. color quoted9    cyan           default
  70.  
  71.  
  72.  
  73. #     object     foreground backg.   RegExp
  74. #
  75. color header     red        default  "^(from|subject):"
  76. #color body      cyan       default  "((ftp|http|https)://|news:)[^ >)\"\t]+"
  77. color body       cyan       default  "((ftp|http|https)://|(file|news):|www\\.)[-a-z0-9_.:]*[a-z0-9](/[^][{} \t\n\r\"<>()]*[^][{} \t\n\r\"<>().,:!])?/?"
  78. color body       cyan       default  "[-a-z_0-9.+]+@[-a-z_0-9.]+"
  79. #color body      red        default  "(^| )\\*[-a-z0-9äöüß*]+\\*[,.?]?[ \n]"
  80. #color body      green      default  "(^| )_[-a-z0-9äöüß_]+_[,.?]?[ \n]"
  81. ?[ \n]"
  82. color body       red        default  "(^| )\\*[-a-z0-9*]+\\*[,.?]?[ \n]"
  83. color body       green      default  "(^| )_[-a-z0-9_]+_[,.?]?# Firewall (iptables) logs:
  84. ) logs:
  85. color body       magenta    default "(PROTO=[A-Z]+)|(DPT=[0-9]+)|(SRC=[0-9.]+)"
  86.  
  87. uncolor inde# unset all color index entries
  88. entries
  89. color index      blue       defau# Flagged
  90. Flagged
  91. color index      red        defau# New
  92.                 # New
  93. color index      magenta    defau# Tagged
  94.  Tagged
  95. color index      yellow     defau# Deleted
  96. Deleted
  97. color index     brightgreen     defa#unread mail
  98. a# Key binding
  99. i# fetchmail fetching
  100. etching
  101.  
  102. macro index   G "!echo 'fetching... ' ; fetchmail\n " "Check for new mail via fetchmail"
  103. macro pager   G "!echo 'fetching... ' ; fetchmail\n " "Check for new mail via fetchmail"
  104. macro browser G "!echo 'fetching... ' ; fetchmail\n " "Check for new mail via fetchm# Book
  105. # Book
  106.  
  107. set query_command="abook --mutt-query %s"
  108.  
  109. source ~/.mutt/alias
  110. source ~/.mutt/newaliases
  111. set alias_file="~/.mutt/newal# New mail in mbox
  112. in mbox
  113.  
  114. mailboxes `for file in ~/Mail/Lists/*; do echo -n "+Lists/$(basename $file) ";# List reply
  115. t reply
  116.  
  117. unlists# remove old entries first
  118. s first
  119. lists `cd ~/Mail/Lists && echo *`
  120.  
  121. unsubscribe *
  122. subscribe `cd ~/Mail/Lists &&

Raw Paste


Login or Register to edit or fork this paste. It's free.