summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.mutt/intro2
-rw-r--r--.mutt/sidepane26
-rw-r--r--.mutt/sig1
-rw-r--r--.mutt/solarize159
-rw-r--r--.muttrc177
5 files changed, 365 insertions, 0 deletions
diff --git a/.mutt/intro b/.mutt/intro
new file mode 100644
index 0000000..36b5617
--- /dev/null
+++ b/.mutt/intro
@@ -0,0 +1,2 @@
+Hello ,
+
diff --git a/.mutt/sidepane b/.mutt/sidepane
new file mode 100644
index 0000000..c307bd4
--- /dev/null
+++ b/.mutt/sidepane
@@ -0,0 +1,26 @@
+set sidebar_width = 42
+set sidebar_visible = yes
+color sidebar_new magenta default
+#set sidebar_sort=yes
+
+#macro index b '<enter-command>toggle sidebar_visible<enter>'
+#macro pager b '<enter-command>toggle sidebar_visible<enter>'
+macro index b '<enter-command>toggle sidebar_visible<enter><refresh>'
+macro pager b '<enter-command>toggle sidebar_visible<enter><redraw-screen>'
+
+bind index \CP sidebar-prev
+bind index \CN sidebar-next
+bind index \CO sidebar-open
+bind pager \CP sidebar-prev
+bind pager \CN sidebar-next
+bind pager \CO sidebar-open
+
+bind index \CL sidebar-scroll-up
+bind index \CB sidebar-scroll-down
+bind pager \CL sidebar-scroll-up
+bind pager \CB sidebar-scroll-down
+
+bind index \t next-unread
+bind pager \t next-unread
+bind index ,\t previous-unread
+bind pager ,\t previous-unread
diff --git a/.mutt/sig b/.mutt/sig
new file mode 100644
index 0000000..ffee44a
--- /dev/null
+++ b/.mutt/sig
@@ -0,0 +1 @@
+Jan
diff --git a/.mutt/solarize b/.mutt/solarize
new file mode 100644
index 0000000..ee4e1c0
--- /dev/null
+++ b/.mutt/solarize
@@ -0,0 +1,159 @@
+# vim: filetype=muttrc
+# see https://github.com/altercation/solarized/tree/master/mutt-colors-solarized
+
+#
+#
+# make sure that you are using mutt linked against slang, not ncurses, or
+# suffer the consequences of weird color issues. use "mutt -v" to check this.
+
+# custom body highlights -----------------------------------------------
+# highlight my name and other personally relevant strings
+#color body yellow default "(ethan|schoonover)"
+# custom index highlights ----------------------------------------------
+# messages which mention my name in the body
+#color index yellow default "~b \"phil(_g|\!| gregory| gold)|pgregory\" !~N !~T !~F !~p !~P"
+#color index J_cream brightblack "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~N !~T !~F !~p !~P"
+#color index yellow cyan "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~T !~F !~p !~P"
+#color index yellow J_magent "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~F !~p !~P"
+## messages which are in reference to my mails
+#color index J_magent default "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" !~N !~T !~F !~p !~P"
+#color index J_magent brightblack "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~N !~T !~F !~p !~P"
+#color index J_magent cyan "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~T !~F !~p !~P"
+#color index J_magent red "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~F !~p !~P"
+
+# for background in 16 color terminal, valid background colors include:
+# base03, bg, black, any of the non brights
+
+# basic colors ---------------------------------------------------------
+color normal brightblue default
+color error red default
+color tilde white default
+color message cyan default
+color markers red black
+color attachment black default
+color search brightmagenta default
+#color status J_black J_status
+color status brightblue white
+color indicator brightwhite yellow
+color tree yellow default # arrow in threads
+
+# basic monocolor screen
+mono bold bold
+mono underline underline
+mono indicator reverse
+mono error bold
+
+# index ----------------------------------------------------------------
+
+#color index red default "~D(!~p|~p)" # deleted
+#color index white default ~F # flagged
+#color index brightred default ~= # duplicate messages
+#color index brightcyan default "~A!~N!~T!~p!~Q!~F!~D!~P" # the rest
+#color index J_base default "~A~N!~T!~p!~Q!~F!~D" # the rest, new
+#color index red default "~A" # all messages
+#color index red default "~E" # expired messages
+
+# new messages
+color index brightgreen default "~N" # new messages (unused)
+color index brightgreen default "~U" # unread messages
+color index brightred default "~U~$" # unread, unreferenced messages (unused)
+color index brightblue default "~U~$" # unread, unreferenced messages
+color index brightgreen default "~N~p!~F" # new messages to me
+color index brightmagenta default "~U~p!~F" # unread messages to me
+
+color index brightred default "~O" # old messages
+color index brightmagenta default "~Q" # messages that have been replied to
+
+# read messages
+color index cyan default "~R" # read messages
+
+color index brightblue default "~v" # messages part of a collapsed thread
+color index green default "~P" # messages from me
+color index blue default "!~N~p!~F" # messages to me
+#color index brightcyan default "~R~p!~F" # messages to me
+color index red default "~F" # flagged messages
+color index red default "~F~p" # flagged messages to me
+color index red default "~N~F" # new flagged messages
+color index red default "~N~F~p" # new flagged messages to me
+color index red default "~U~F~p" # new flagged messages to me
+color index white red "~D" # deleted messages
+color index brightgreen default "~v~(!~N)" # collapsed thread with no unread
+color index yellow default "~v~(~N)" # collapsed thread with some unread
+color index green default "~N~v~(~N)" # collapsed thread with unread parent
+# statusbg used to indicated flagged when foreground color shows other status
+# for collapsed thread
+color index red white "~v~(~F)!~N" # collapsed thread with flagged, no unread
+color index yellow white "~v~(~F~N)" # collapsed thread with some unread & flagged
+color index green white "~N~v~(~F~N)" # collapsed thread with unread parent & flagged
+color index green white "~N~v~(~F)" # collapsed thread with unread parent, no unread inside, but some flagged
+color index cyan white "~v~(~p)" # collapsed thread with unread parent, no unread inside, some to me directly
+color index yellow red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial)
+#color index yellow default "~(~N)" # messages in threads with some unread
+#color index green default "~S" # superseded messages
+#color index red default "~T" # tagged messages
+#color index brightred red "~=" # duplicated messages
+
+# message headers ------------------------------------------------------
+
+#color header brightcyan default "^"
+color hdrdefault brightcyan default
+color header brightblue default "^(From)"
+color header blue default "^(Subject)"
+
+# body -----------------------------------------------------------------
+
+color quoted blue default
+color quoted1 cyan default
+color quoted2 yellow default
+color quoted3 red default
+color quoted4 brightred default
+
+color signature brightcyan default
+color bold white default
+color underline white default
+color normal default default
+#
+color body brightgreen default "[;:][-o][)/(|]" # emoticons
+color body brightgreen default "[;:][)(|]" # emoticons
+color body brightgreen default "[*]?((N)?ACK|CU|LOL|SCNR|BRB|BTW|CWYL|\
+ |FWIW|vbg|GD&R|HTH|HTHBE|IMHO|IMNSHO|\
+ |IRL|RTFM|ROTFL|ROFL|YMMV)[*]?"
+color body brightgreen default "[ ][*][^*]*[*][ ]?" # more emoticon?
+color body brightgreen default "[ ]?[*][^*]*[*][ ]" # more emoticon?
+
+## pgp
+
+color body red default "(BAD signature)"
+color body cyan default "(Good signature)"
+color body brightwhite default "^gpg: Good signature .*"
+color body brightblue default "^gpg: "
+color body brightblue red "^gpg: BAD signature from.*"
+mono body bold "^gpg: Good signature"
+mono body bold "^gpg: BAD signature from.*"
+
+# yes, an insance URL regex
+color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]"
+# and a heavy handed email regex
+#color body J_magent default "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])"
+
+# Various smilies and the like
+#color body brightblack default "<[Gg]>" # <g>
+#color body brightblack default "<[Bb][Gg]>" # <bg>
+color body yellow default " [;:]-*[})>{(<|]" # :-) etc...
+# *bold*
+color body blue default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
+mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
+# _underline_
+color body blue default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
+mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
+# /italic/ (Sometimes gets directory names)
+color body blue default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
+mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
+
+# Border lines.
+color body blue default "( *[-+=#*~_]){6,}"
+
+#folder-hook . "color status J_black J_status "
+#folder-hook gmail/inbox "color status J_black yellow "
+#folder-hook gmail/important "color status J_black yellow "
+
diff --git a/.muttrc b/.muttrc
new file mode 100644
index 0000000..094312b
--- /dev/null
+++ b/.muttrc
@@ -0,0 +1,177 @@
+# compilation of many sources, still quite a mess
+
+#
+# general
+#
+
+set mbox_type=Maildir
+
+# dont mark messages old
+set nomark_old
+
+set move=no
+
+set quote_regexp="^([A-Za-z ]+>|[]%>:|}-][]>:|}-]*)"
+
+# just scroll one line instead of full page (Gentoo howto)
+set menu_scroll=yes
+
+# http://www.michnet.de/mutt/
+# Also very useful in pager mode (even the number of scrolling lines can be set):
+set pager_context="1"
+#
+# # Mutt can split the screen into halves, so you can watch index + pager simultaneously:
+set pager_index_lines="5"
+#
+# # Don't jump to next message when at bottom of current message:
+set pager_stop="yes"
+
+set index_format = "%4C %Z %{%b %d} %-15.15F (%4l) %s"
+set date_format="%d/%m/%y %H:%M %Z"
+
+
+#
+# general - dirs and files
+#
+
+set folder = ~/Maildir/
+set spoolfile = ~/Maildir/INBOX
+set record = ~/Maildir/Sent
+
+# keep a cache of headers for faster loading (1.5.9+?)
+set header_cache=~/.mutt/hcache
+
+
+#
+# general - headers
+#
+
+ignore *
+unignore From To Cc Subject Date Reply-To Organization X-Mailer User-Agent
+
+# Order to display the headers in
+hdr_order From: Date: To: Cc: Subject:
+
+set edit_headers
+
+
+#
+# listing
+#
+
+# sort by thread
+set sort = threads; set sort_aux=reverse-date
+
+# mark messages as read (http://blog.jwcxz.com/?p=810)
+#macro index <Esc>m "T~N<enter>;WNT~O<enter>;WO\CT~A<enter>" "mark all messages read"
+macro index <Esc>m "T~N<enter>;WNT~O<enter>;WO" "mark all messages read"
+
+
+# listing - mutt-notmuch
+
+macro index <F8> \
+ "<enter-command>unset wait_key<enter><shell-escape>notmuch-mutt --prompt search<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter>" \
+ "notmuch: search mail"
+macro index <F9> \
+ "<enter-command>unset wait_key<enter><pipe-message>notmuch-mutt thread<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter><enter-command>set wait_key<enter>" \
+ "notmuch: reconstruct thread"
+
+
+#
+# composing
+#
+
+set signature = "~/.mutt/sig"
+# also there is ~/.mutt/intro
+
+#set format=flowed
+set notext_flowed
+
+# Automatically quote message
+set include=yes
+
+# Set quotemark to 1 byte
+set indent_str="> "
+
+# Skip the bothering prompt for recipient and subject when replying and start immediately with writing your message:
+set fast_reply="yes"
+
+set forward_format="Fw: %s" # subject in forwarded messages
+
+# Use vim as the editor - this line will wrap
+# Set wordwrap on in vim to automatically wrap lines
+# -> no :gq all the time
+set editor="vim +':set textwidth=70' +':set wrap' +\":1,\$ s/^\\([>|]\\s\\?\\)\\+/\\=substitute(submatch(0),\'\\s\',\'\',\'g\').\' \'\" +:noh +\`awk '/^$/ {print i+1; exit} {i++}' %s\` +':r~/.mutt/intro' %s"
+
+
+#
+# sending
+#
+
+set hostname="redhat.com"
+set realname="Jan Pokorný"
+set from="jpokorny@redhat.com"
+
+# force envelope and sender
+set use_from
+set envelope_from
+
+set send_charset="us-ascii:utf-8"
+
+# set user_agent=no
+
+# dammit mutt, forward mime attachments by default and yes im aware SMTP is not an FTP client - shutup
+set mime_forward=yes
+set mime_forward_rest=yes
+
+
+#
+# jpokorny's tweaks
+#
+
+# view html emails
+# https://bbs.archlinux.org/viewtopic.php?pid=1123469
+alternative_order text/enriched text/plain text/html text
+auto_view text/html
+
+# LDAP
+set query_command = "lbdbq %s 2>/dev/null"
+
+# urlview
+macro pager \cu <pipe-entry>'urlview'<enter> 'Follow links with urlview'
+
+
+#
+# I/O bits
+#
+
+set smtp_url="smtp://smtp.corp.redhat.com"
+set sendmail="/usr/sbin/sendmail"
+
+# activate TLS if available on the server
+set ssl_starttls=yes
+# always use SSL when connecting to a server
+set ssl_force_tls=yes
+# Don't wait to enter mailbox manually
+unset imap_passive
+# Automatically poll subscribed mailboxes for new mail (new in 1.5.11)
+set imap_check_subscribed
+# Reduce polling frequency to a sane level
+## trobert banhammer
+##set mail_check=60
+set mail_check=300
+# And poll the current mailbox more often (not needed with IDLE in post 1.5.11)
+set timeout=10
+
+# Display download progress every 5K
+set net_inc=5
+
+
+#
+# imports
+#
+
+source ~/.mutt/folders
+#source ~/.mutt/gpg
+source ~/.mutt/solarize
+source ~/.mutt/sidepane