CrunchBang Linux Pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

CrunchBang Linux Pastebin

Posted by storge on Wed 2nd Jan 23:18 (modification of post by storge view diff)
diff | download | new post

  1. ~/.mutt/user1:
  2.  
  3. ###|user1|###
  4. account-hook    "imaps://first.user@imap.gmail.com/" '\
  5.         set imap_user   = "first.user@gmail.com" imap_pass = $my_pass1 '
  6. set from                = "first.user@gmail.com"
  7. set realname            = "first.user"
  8. set folder              = "imaps://first.user@imap.gmail.com/"
  9. set spoolfile           = "imaps://first.user@imap.gmail.com/INBOX"
  10. set postponed           = "imaps://first.user@imap.gmail.com/[Gmail]/Drafts"
  11. set trash               = "imaps://first.user@imap.gmail.com/[Gmail]/Trash"
  12. mailboxes               imaps://first.user@imap.gmail.com
  13. set smtp_url            = "smtp://first.user@smtp.gmail.com:587/"
  14. set smtp_pass           = $my_pass1
  15. set imap_idle
  16. set imap_keepalive      = 300
  17. set imap_check_subscribed
  18. set header_cache        = ~/.mutt/cache/user1/headers
  19. set message_cachedir    = ~/.mutt/cache/user1/bodies
  20. set certificate_file    = ~/.mutt/certificates
  21.  
  22. ~/.mutt/user2:
  23.  
  24. ###|user2|###
  25. account-hook    "imaps://second.user@imap.gmail.com/" '\
  26.         set imap_user   = "second.user@gmail.com" imap_pass = $my_pass2 '
  27. set from                = "second.user@gmail.com"
  28. set realname            = "second.user"
  29. set folder              = "imaps://second.user@imap.gmail.com/"
  30. set spoolfile           = "imaps://second.user@imap.gmail.com/INBOX"
  31. set postponed           = "imaps://second.user@imap.gmail.com/[Gmail]/Drafts"
  32. set trash               = "imaps://second.user@imap.gmail.com/[Gmail]/Trash"
  33. mailboxes               imaps://second.user@imap.gmail.com
  34. set smtp_url            = "smtp://second.user@smtp.gmail.com:587/"
  35. set smtp_pass           = $my_pass2
  36. set imap_idle
  37. set imap_keepalive      = 300
  38. set imap_check_subscribed
  39. set header_cache        = ~/.mutt/cache/user2/headers
  40. set message_cachedir    = ~/.mutt/cache/user2/bodies
  41. set certificate_file    = ~/.mutt/certificates
  42.  
  43. ~/.mutt/muttrc:
  44.  
  45. ###|password|###
  46. set my_tmpsecret=`gpg -o ~/.secret/.tmp -d ~/.secret/.pwds2.gpg`
  47. set my_pass1=`awk '/Gmail1:/ {print $2}' ~/.secret/.tmp`
  48. set my_pass2=`awk '/Gmail2:/ {print $2}' ~/.secret/.tmp`
  49. set my_del=`rm -f ~/.secret/.tmp`
  50.  
  51. ###|switching|###
  52. account-hook . 'unset imap_pass'
  53. folder-hook imaps://first.user@imp.gmail.com 'source ~/.mutt/user1'
  54. folder-hook imaps://second.user@imap.gmail.com 'source ~/.mutt/user2'
  55. macro index { '<change-folder>imaps://first.user@imap.gmail.com/<enter>'
  56. macro index } '<change-folder>imaps://second.user@imap.gmail.com/<enter>'
  57. macro index <F4> '<sync-mailbox><enter-command>source ~/.mutt/user1<enter><change-folder>!<enter>'
  58. macro index <F5> '<sync-mailbox><enter-command>source ~/.mutt/user2<enter><change-folder>!<enter>'
  59. source ~/.mutt/user1
  60.  
  61. ###|imap|###
  62. unset imap_passive              # allow mutt to auto-open new imap connection
  63. #unset imap_peek                 # list subscribed imap folders
  64.  
  65. ###|editor|###
  66. set editor=nano
  67. bind editor <Tab> complete-query        # default mutt setting = complete
  68. bind editor ^T complete                 # default mutt setting = complete-query
  69. bind editor <space> noop
  70.  
  71. ###|sidebar|###
  72. set sidebar_width               = 18            # width
  73. set sidebar_visible             = yes           # default visible
  74. set sidebar_delim               = '|'           # delimeter
  75. set sidebar_shortpath           # shorten displayed path for sidebar
  76. set sidebar_sort                # sort the imap_check_subscribed folders
  77. bind index \Cp sidebar-prev     # assign ctrl-p to select previous folder
  78. bind index \Cn sidebar-next     # assign ctrl-n to select next folder
  79. bind index \Co sidebar-open     # assign ctrl-o to open selected folder
  80.  
  81. ###|muttconf|###
  82. set mail_check          = 60                    # how often to check
  83. set timeout             = 30                    # if no user input
  84. set move                = no                    # read mail stays put
  85. set sort                = 'threads'             # thread sort
  86. set sort_aux            = 'reverse-last-date-received'  # newest at top
  87. set auto_tag            = yes
  88. set smart_wrap          = yes
  89. set copy                = yes                   # save sent messages
  90. set delete              = yes                   # ask when purging deleted
  91. set forward_quote       = yes                   # quote email body in forward
  92. set include             = yes                   # quote email body in reply
  93. set beep_new            = yes                   # beep on new message received
  94.  
  95. ###|html|###
  96. set mailcap_path        = ~/.mutt/mailcap               # autodisplay html
  97. alternative_order text/plain text/enriched text/html    # autodisplay html
  98. auto_view text/html                                     # autodisplay html
  99.  
  100. ###|headers|###
  101. ignore                  *
  102. ignore                  "Authentication-Results:"
  103. ignore                  "DomainKey-Signature:"
  104. ignore                  "DKIM-Signature:"
  105. unignore headers        date from to cc
  106. unignore x-mailing-list:posted-to:
  107. unignore x-mailer:
  108. hdr_order               date from to cc
  109.  
  110. ###|fix the stupid|###
  111. set rfc2047_parameters
  112.  
  113. ###|colors|###
  114. source `case $TERM in\
  115.                 (xterm-256color|rxvt-unicode-256color)        echo '~/.mutt/mutt_color_256'; break;;\
  116.                 *)                                              echo '~/.mutt/mutt_color'; break;;\
  117.         esac`
  118.  
  119. ...and now this is a paste of the mutt output. the oddity is that each time i switch account, using the }{ keybindings set in muttrc, it creates a new folder for the second.user... you can see two extra folders at the bottom of the sidebar, and there they are in the middle of the 'y' overview of folders. those two extra were created after switching back and forth twice. it seems every time i switch from the default first.user to second.user, they are created.
  120.  
  121. y:Exit  c:Chdir  m:Mask  ?:Help
  122. first.user   7(4)| 1   4              imaps://first.user@imap.gmail.com
  123. [Gmail]         0| 2   0              imaps://first.user@imap.gmail.com/[Gmail]
  124. All Mail  2138(9)| 3   9              imaps://first.user@imap.gmail.com/[Gmail]/All Mail
  125. Drafts          0| 4   0              imaps://first.user@imap.gmail.com/[Gmail]/Drafts
  126. Important    2(1)| 5   1              imaps://first.user@imap.gmail.com/[Gmail]/Important
  127. Sent Mail     854| 6   0              imaps://first.user@imap.gmail.com/[Gmail]/Sent Mail
  128. Spam            0| 7   0              imaps://first.user@imap.gmail.com/[Gmail]/Spam
  129. Starred         0| 8   0              imaps://first.user@imap.gmail.com/[Gmail]/Starred
  130. Trash           0| 9   0              imaps://first.user@imap.gmail.com/[Gmail]/Trash
  131. INBOX        7(4)|10   4              imaps://first.user@imap.gmail.com/INBOX
  132. second.us @imap 0|11   0              imaps://second.user@imap.gmail.com
  133. INBOX           0|12   0              imaps://second.user@imap.gmail.com
  134. [Gmail]         0|13   0              imaps://second.user@imap.gmail.com
  135.  All Mail       1|14   0              imaps://second.user@imap.gmail.com/[Gmail]
  136.  Drafts         1|15   0              imaps://second.user@imap.gmail.com/[Gmail]/All Mail
  137.  Important      0|16   0              imaps://second.user@imap.gmail.com/[Gmail]/Drafts
  138.  Sent Mail      0|17   0              imaps://second.user@imap.gmail.com/[Gmail]/Important
  139.  Spam           0|18   0              imaps://second.user@imap.gmail.com/[Gmail]/Sent Mail
  140.  Starred        0|19   0              imaps://second.user@imap.gmail.com/[Gmail]/Spam
  141.  Trash          0|20   0              imaps://second.user@imap.gmail.com/[Gmail]/Starred
  142. second.us @imap 0|21   0              imaps://second.user@imap.gmail.com/[Gmail]/Trash
  143. second.us @imap 0|22   0              imaps://second.user@imap.gmail.com/INBOX

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me