diff --git a/install.sh b/install.sh index a72dd27..433e43a 100755 --- a/install.sh +++ b/install.sh @@ -22,6 +22,9 @@ linkmy emacs .emacs linkmy emacs.d .emacs.d # IRSSI linkmy irssi .irssi +# MUTT +linkmy muttrc .muttrc +linkmy mutt .mutt # NCMPCPP linkmy ncmpcpp .ncmpcpp # NEWSBEUTER diff --git a/mutt/.gitignore b/mutt/.gitignore new file mode 100644 index 0000000..9dbafc8 --- /dev/null +++ b/mutt/.gitignore @@ -0,0 +1,2 @@ +cache +temp diff --git a/mutt/alias b/mutt/alias new file mode 100644 index 0000000..e69de29 diff --git a/mutt/arch.muttrc b/mutt/arch.muttrc new file mode 100644 index 0000000..09fbbd5 --- /dev/null +++ b/mutt/arch.muttrc @@ -0,0 +1,16 @@ +### +# archlinux.us specific options +### + +color status green default + +set from = "tom.willemsen@gmail.com" +set smtp_url = "smtp://tom.willemsen@archlinux.us@smtp.gmail.com:587/" +set mbox = "+arch/INBOX" +unset record + +set postponed = "+arch/drafts" + +macro index E "+arch/archive~B " "search everything" +macro index D "+arch/trash" "move message to the trash" +macro index S "+arch/spam" "mark message as spam" diff --git a/mutt/certificates b/mutt/certificates new file mode 100644 index 0000000..e69de29 diff --git a/mutt/colors.muttrc b/mutt/colors.muttrc new file mode 100644 index 0000000..0e83ed0 --- /dev/null +++ b/mutt/colors.muttrc @@ -0,0 +1,63 @@ +### +# mutt colors file +### + +# set default +color normal white default + +# main colors +color status green default +color indicator brightwhite default +color tree blue default +color error brightred default +color message brightyellow default + +# uncolor certain messages +uncolor index "~P" +uncolor index "~N ~u" +uncolor index "~N !~u" +uncolor index "~T" +uncolor index "~D" + +# and recolor them appropriately +color index brightblack default "~P" +color index brightcyan default "~N ~u" # new ML mail +color index brightyellow default "~N !~u" # new non-ML mail +color index brightgreen default "~T" +color index brightred default "~D" + +# set up the headers +color header brightyellow default "^from:" +color header yellow default "^to:" +color header yellow default "^cc:" +color header blue default "^date:" +color header brightblue default "^subject:" + +# message bodies +color attachment brightblack default +color search red brightblack +color signature cyan default +color tilde blue default + +# urls +color body brightblue default "(^|<| )mailto:[^ ]+@[^ ]( |>|$)" +color body brightblue default "(^|<| )(http|https|ftp|file|telnet|news|finger)://[^ ]+( |>|$)" + +# smileys +color body brightmagenta default "(^| )+(|[<>|])[8;:](|[^ ])[)(/|DOPS]( |$)+" +color body brightmagenta default "(^| )+[)(/|DOPS](|[^ ])[8;:](|[<>|])( |$)+" + +# *bold*, _underline_ and /italic/ +color body brightcyan default "(^| )\\*[^*]+\\*( |$)" +color body brightcyan default "(^| )_[^_]+_( |$)" +color body brightcyan default "(^| )/[^/]+/( |$)" + +# quote blocks +color quoted magenta default +color quoted1 cyan default +color quoted2 green default +color quoted3 magenta default +color quoted4 cyan default +color quoted5 green default +color quoted6 magenta default +color quoted7 cyan default diff --git a/mutt/gmail.muttrc b/mutt/gmail.muttrc new file mode 100644 index 0000000..b44162c --- /dev/null +++ b/mutt/gmail.muttrc @@ -0,0 +1,14 @@ +### +# gmail specific option + +color status blue default + +set from = "ryuslash@gmail.com" +set smtp_url = "smtp://ryuslash@gmail.com@smtp.gmail.com:587/" +set mbox = "+gmail/INBOX" +unset record +set postponed = "+gmail/drafts" + +macro index E "+gmail/archive~B " "search everything" +macro index D "+gmail/trash" "move message to the trash" +macro index S "+gmail/spam" "mark message as spam" diff --git a/mutt/iactor.muttrc b/mutt/iactor.muttrc new file mode 100644 index 0000000..bc389dc --- /dev/null +++ b/mutt/iactor.muttrc @@ -0,0 +1,14 @@ +### +# iactor specific options +### + +color status red default + +set from = "tom@iactor.nl" +set smtp_url = "mail.iactor.nl:2525" +set mbox = "+iactor/INBOX" +set record = "+iactor/Sent" +set postponed = "+iactor/Drafts" + +macro index E "+iactor/INBOX~B " "search everything" +macro index D "+iactor/Trash" "move message to the trash" diff --git a/mutt/mailcap b/mutt/mailcap new file mode 100644 index 0000000..e69de29 diff --git a/mutt/sidebar.muttrc b/mutt/sidebar.muttrc new file mode 100644 index 0000000..d2ecc77 --- /dev/null +++ b/mutt/sidebar.muttrc @@ -0,0 +1,20 @@ +### +# options specific to mutt's sidebar patch +### + +# settings +set sidebar_delim = '|' +set sidebar_visible = no +set sidebar_width = 20 + +# colors +color sidebar_new brightyellow default + +# bindings +bind index,pager \CJ sidebar-next +bind index,pager \CK sidebar-prev +bind index,pager \CL sidebar-open + +# macros +macro index B 'toggle sidebar_visible' +macro pager B 'toggle sidebar_visible' diff --git a/mutt/sig b/mutt/sig new file mode 100644 index 0000000..e69de29 diff --git a/muttrc b/muttrc new file mode 100644 index 0000000..23491d4 --- /dev/null +++ b/muttrc @@ -0,0 +1,98 @@ +### +# ~/.muttrc +### + +# directories and commands +set alias_file = ~/.mutt/alias #alias file +set header_cache = ~/.mutt/cache/headers # where to store headers +set message_cachedir = ~/.mutt/cache/bodies # where to store bodies +set certificate_file = ~/.mutt/certificates # where to store certs +set mailcap_path = ~/.mutt/mailcap # entries for filetypes +set tmpdir = ~/.mutt/temp # where to keep temp files +set editor = "/usr/bin/vim +/^$" # use vim and skip to first blank + # line + +# main options +set mbox_type = Maildir # mailbox type +set folder = ~/Mail # mailbox location +set spoolfile = "+arch/INBOX" # arch is the default inbox +set timeout = 3 # idle time before scanning +set mail_check = 0 # minimum time between scans +set sort_alias = alias # sort alias file by alias +set reverse_alias # show names from alias file in index +unset move # gmail does that +set delete # don't ask, just do +unset confirmappend # don't ask, just do! +set quit # don't ask, just do!! +unset mark_old # read/new is good enough for me +set beep_new # bell on new mails +set pipe_decode # strip headers and eval mimes when piping +set thorough_search # strip headers and eval mimes before searching + +# index options +set sort = threads # like gmail +set sort_aux = last-date-received # not like gmail +set uncollapse_jump # don't collapse on an unread message +#set sort_re # thread based on regex + +# pager options +set pager_index_lines = 10 # number of index lines to + # show +set pager_context = 5 # number of context lines + # to show +set pager_stop # don't go to next message + # automatically +set menu_scroll # scroll in menus +set smart_wrap # don't split words +set tilde # show tildes like in vim +unset markers # no ugly plus signs +auto_view text/html # view html automatically +alternative_order text/plain text/enriched text/html # save html for last +set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+" + +# formats +#set date_format = "%m/%d/%y at %I:%M%P" +set index_format = "%3C [%Z] %D %-15.15F %s" +set alias_format = "%4n %t %-20a %r" + +# composing mail +set realname = "Tom Willemsen" # who am I? +set envelope_from # which from? +set sig_dashes # dashes before my sig... sweet +set edit_headers # show headers when composing +set fast_reply # skip to compose when replying +set askcc # ask for CC: +set fcc_attach # save attachments with the body +unset mime_forward # forward attachments as part fo body +set forward_format = "Fwd: %s" # format for subject when forwarding +set forward_decode # decode when forwarding +set attribution = "On %d, %n wrote:" # set the attribution +set reply_to # reply to Reply to: field +set reverse_name # reply as whomever it was to +set include # include message in replies +set forward_quote # include message inforwards + +# headers to show +ignore * # ignore all headers +unignore from: to: cc: date: subject: # show only these +hdr_order from: to: cc: date: subject: # and in this order + +# boxes +mailboxes +arch/INBOX #+arch/archive +arch/sent +arch/drafts +arch/spam +arch/trash +mailboxes +gmail/INBOX #+gmail/archive +gmail/sent +gmail/drafts +gmail/spam +gmail/trash +mailboxes +iactor/INBOX #+iactor/INBOX.Admin +iactor/INBOX.Important +iactor/INBOX.Intern +iactor/INBOX.Taken +iactor/Sent +iactor/Drafts +iactor/Trash + +# always sourced +source $alias_file # required for functionality +source ~/.mutt/colors.muttrc # source colors file +source ~/.mutt/sidebar.muttrc # any muttng options are here +source ~/.mutt/arch.muttrc # source arch as default + +# account specific sources +folder-hook arch/* source ~/.mutt/arch.muttrc +folder-hook gmail/* source ~/.mutt/gmail.muttrc +folder-hook iactor/* source ~/.mutt/iactor.muttrc + +# macros +macro index I "!" "go to Inbox" +macro index Z "/usr/bin/offlineimap -q -o" "sync IMAP"