From bf8122d6c800e755f7b0d93ff270a6c6ecaa0445 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Fri, 28 Jul 2017 11:51:37 +0100 Subject: [PATCH] mutt: Remove config --- .config/mutt/account-example | 36 ----- .config/mutt/colors.classic | 36 ----- .config/mutt/colors.fallback.sh | 39 ----- .config/mutt/colors.night | 36 ----- .config/mutt/colors.zenburn | 36 ----- .config/mutt/mailcap | 13 -- .config/mutt/muttrc | 263 -------------------------------- .config/mutt/purgecache.sh | 20 --- .config/mutt/sidebar.sh | 33 ---- .config/mutt/theme | 83 ---------- .config/mutt/view-html.sh | 11 -- 11 files changed, 606 deletions(-) delete mode 100644 .config/mutt/account-example delete mode 100644 .config/mutt/colors.classic delete mode 100755 .config/mutt/colors.fallback.sh delete mode 100644 .config/mutt/colors.night delete mode 100644 .config/mutt/colors.zenburn delete mode 100644 .config/mutt/mailcap delete mode 100644 .config/mutt/muttrc delete mode 100755 .config/mutt/purgecache.sh delete mode 100755 .config/mutt/sidebar.sh delete mode 100644 .config/mutt/theme delete mode 100755 .config/mutt/view-html.sh diff --git a/.config/mutt/account-example b/.config/mutt/account-example deleted file mode 100644 index 69a6f767..00000000 --- a/.config/mutt/account-example +++ /dev/null @@ -1,36 +0,0 @@ -## Mutt -- Gmail account sample -set imap_user=user@gmail.com -set imap_pass=$my_pw_personal -set from=$imap_user -set hostname="gmail.com" - -set folder=imaps://user@imap.gmail.com/ -set spoolfile=+INBOX -set postponed=+[Gmail]/Drafts -unset record ## Google does it automatically, so we do not want duplicates. - -## Send options. -set realname='John Doe' -set smtp_url=smtps://user:$imap_pass@smtp.gmail.com -set ssl_force_tls=yes -unset ssl_starttls - -## Signature with a random 'fortune'. -set signature="cat $my_localdir/real_name && fortune -s |" - -## Sidebar mailboxes separator workaround. -mailboxes "+~~~~~~~~~~~~~~~~~~~~~~~~" - -## Hooks -account-hook $folder "set imap_user=user@gmail.com imap_pass=$my_pw_personal" - -## Remove own e-mail address from group-reply. -alternates $imap_user - -## Gmail-specific macros: -## Prevent Gmail from deleting to 'All Mail', move it to Trash instead. -macro index d ";s+[Gmail]/Trash" "Move to Gmail's Trash" -macro pager d "s+[Gmail]/Trash" "Move to Gmail's Trash" -## Undelete messages. -macro index u ";s+INBOX" "Move to Gmail's INBOX" -macro pager u "s+INBOX" "Move to Gmail's INBOX" diff --git a/.config/mutt/colors.classic b/.config/mutt/colors.classic deleted file mode 100644 index 18e9d8b9..00000000 --- a/.config/mutt/colors.classic +++ /dev/null @@ -1,36 +0,0 @@ -## 256 colors classic theme - -set my_bg = black -set my_new = brightcyan -set my_old = brightred -set my_uri = brightgreen -set my_flag = brightyellow -set my_tag = brightmagenta -set my_tag_bg = $my_bg - -set my_address = color69 -set my_from = color201 -set my_to = color39 -set my_cc = green -set my_bcc = green -set my_replyto = green -set my_subject = brightred -set my_inreplyto = green -set my_date = yellow -set my_x = blue -set my_sig = brightblack -set my_attach = white -set my_attach_bg = $my_bg -set my_status = brightwhite -set my_status_bg = color240 -set my_indicator = white -set my_indicator_bg = color69 - -set my_quote0 = color28 -set my_quote1 = color29 -set my_quote2 = color30 -set my_quote3 = color31 -set my_quote4 = color32 -set my_quote5 = color33 -set my_quote6 = color39 -set my_quote7 = color38 diff --git a/.config/mutt/colors.fallback.sh b/.config/mutt/colors.fallback.sh deleted file mode 100755 index a68518b9..00000000 --- a/.config/mutt/colors.fallback.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -## 8/16 colors - -if [ $(tput colors) -ne 256 ]; then - cat < ".mutt.pwds" - -## 'accountrc' should contain the following config: - -## Fetch passwords -# source "ccat ~/.mutt.pwds.cpt |" -## Or -# source "gpg2 -dq ~/.mutt.pwds.gpg |" -## -## Source accounts. Default account is last. -# source "$my_localdir/personal" -# folder-hook $folder 'source $my_localdir/personal' -# source "$my_localdir/work" -# folder-hook $folder 'source $my_localdir/work' -## -## You can add an optional binding to switch mailboxes: -# macro index,pager 'source $my_localdir/personal!' -# macro index,pager 'source $my_localdir/work!' - -source "$my_localdir/accountrc" - -################################################################################ -## Aliases. - -## Mutt native support. -# set alias_file = "$my_localdir/aliases" -# set sort_alias = alias -# set reverse_alias = yes -# source $alias_file - -## Abook. -## We redirect the error stream in case the config file in not compatible with -## current Abook version. -set query_command="abook --mutt-query '%s' 2>/dev/null" -macro index,pager a "abook --add-email-quiet" "Add this sender to Abook" -bind editor complete-query - -################################################################################ -## Key bindings. - -## Security issue: if 'enter-command' is available from the GUI, it is possible -## to see the password unencrypted. We disable it for this reason. Every command -## that the user intends to use must be bound to a key in advance, otherwise it -## will never be accessible. -bind generic,alias,attach,browser,editor,index,compose,pager,pgp,postpone ':' noop - -## HTML mail view with graphical Internet browser. -macro attach 'V' "$my_configdir/view-html.sh" - -## Remap bounce-message function to "B" -bind index B bounce-message - -## Always reply to group. -bind index,pager r group-reply - -## Fix the 'change-dir' issue with multiple accounts. When change-dir was called -## with account A, then use switched to account B, change-dir will still point -## to account A by default. -# macro index 'c' '?^K=' - -## Manual fetch. -bind index "^" imap-fetch-mail - -## Fix the backspace wrong binding that happens on some terminals. -#bind index,pager  previous-page - -## Fix Backspace -- Shell alternative. -## $ infocmp > termbs.src -## Changed kbs=^H to kbs=\177, then: -## $ tic -x termbs.src - -## Do not quit accidentally -bind index "Q" quit -bind index q query -bind index "q" noop - -## Vi bindings. -bind pager j next-line -bind pager k previous-line -bind attach,index,pager \CB previous-page -bind attach,index,pager \CD next-page -bind attach,index,pager \CF next-page -bind attach,index,pager \CU previous-page -bind attach,index,pager ? search-reverse -bind attach,index,pager h help -bind attach,index,pager \Ch display-toggle-weed -bind attach,index,pager N search-opposite -bind pager g top -bind pager G bottom -bind attach,index g first-entry -bind attach,index G last-entry - -bind index x collapse-thread -bind index X collapse-all - -## Flags -bind index,pager w set-flag -## Remove N/O flag in one key stroke. -macro index w 'N' - -################################################################################ -## Custom header for outgoing mail. - -## Undo any custom headers that may have been put in by the global Muttrc -# unmy_hdr * - -## Remove any global 'From:' header -# unset use_from -## Don't append a domain to my outgoing mails -# unset use_domain -# my_hdr From: Firstname Lastname - -## Extra info. -my_hdr X-Info: Simplicity is the ultimate sophistication. - -## OS Info. -# my_hdr X-Operating-System: `uname -s`, kernel `uname -r` - -## This header only appears to MS Outlook users -# my_hdr X-Message-Flag: Warning: Outlook sucks! - -## Custom Mail-User-Agent ID. -set user_agent=yes -# my_hdr User-Agent: Every email client sucks, this one just sucks less. - -################################################################################ -## Theme. - -## Index format -## We use my_col_* to get dynamic column size. -## See 'man 3 strftime' and 'man 3 printf'. -# set index_format="%?M?_%M_ ?%Z %2C %.13d (%-68.68F) %-68.68s %?M?_%M_&(%c/%l?" -set date_format="%y-%m-%d %T" - -set my_index_format_pre='set my_col_from = `echo $((30 * ($(tput cols)-35) / 100))`; set my_col_subject = `echo $((70 * ($(tput cols)-35) / 100))`; set index_format="%2C | %Z [%d] %-$my_col_from.${my_col_from}' -set my_index_format_post=' (%-4.4c) %?M?<%M> ?%-$my_col_subject.${my_col_subject}s"' - -folder-hook .*[sS]ent.* "$my_index_format_pre"t"$my_index_format_post" -folder-hook ! .*[sS]ent.* "$my_index_format_pre"F"$my_index_format_post" - -## Original status_format, with dash line removed. -set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?] (%s/%S) %> (%P) " - -## This will redraw screen and justify the index. -macro index,pager \CL "$my_index_format_pre"F"$my_index_format_post" - -## Set color variables from a theme. -# source "$my_configdir/colors.classic" -source "$my_configdir/colors.night" - -## Fallback for terminals without 256 colors. This needs to be a shell script so -## that it can check for terminal capabilities. -source "$my_configdir/colors.fallback.sh |" - -## Apply theme. -source "$my_configdir/theme" - -################################################################################ -## Sidebar. - -## We use a script to test if sidebar is installed. Needs to be loaded _after_ -## the theme. -source "$my_configdir/sidebar.sh|" diff --git a/.config/mutt/purgecache.sh b/.config/mutt/purgecache.sh deleted file mode 100755 index d58a9be6..00000000 --- a/.config/mutt/purgecache.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -## Purge old messages in Mutt's message cache. -## "$1" is cache location. -## This is intended to be run at startup, but can be run manually anytime. -## It should not output anything to stdout. - -## In KB. -CACHE_LIMIT=102400 - -cd "$1" 2>/dev/null -[ $? -ne 0 ] && exit - -[ $(du -s . | cut -f1 -d' ') -lt $CACHE_LIMIT ] && exit -while IFS= read -r i; do - rm "$i" - [ $(du -s . | cut -f1 -d' ') -lt $CACHE_LIMIT ] && exit -done <k sidebar-prev -bind index,pager j sidebar-next -bind index,pager l sidebar-open - -## Toggle sidebar visibility. Screen might get messed up, hence the refresh. -macro index b 'toggle sidebar_visible' -macro pager b 'toggle sidebar_visible' -EOF -fi diff --git a/.config/mutt/theme b/.config/mutt/theme deleted file mode 100644 index 3d7c097e..00000000 --- a/.config/mutt/theme +++ /dev/null @@ -1,83 +0,0 @@ -# -*- mode:sh -*- -## Theme kindly inspired from -## http://nongeekshandbook.blogspot.ie/2009/03/mutt-color-configuration.html - -## Colours for items in the index -color index $my_new $my_bg ~N -color index $my_old $my_bg ~O -color index $my_flag $my_bg ~F -color index $my_tag $my_tag_bg ~T -color index brightred $my_bg ~D -mono index bold ~N -mono index bold ~O -mono index bold ~F -mono index bold ~T -mono index bold ~D - -## Highlights inside the body of a message. - -# URLs -color body $my_uri $my_bg "(https?|ftp|news|telnet|finger)://[^ \(\)\"\t\r\n]*" -color body $my_uri $my_bg "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+" -mono body bold "(https?|ftp|news|telnet|finger)://[^ \"\t\r\n]*" -mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+" - -## Email addresses. -color body $my_address $my_bg "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" -mono body bold "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" - -## Header -color header white $my_bg ".*" -color header $my_from $my_bg "^from:" -color header $my_to $my_bg "^to:" -color header $my_cc $my_bg "^cc:" -color header $my_bcc $my_bg "^bcc:" -color header $my_replyto $my_bg "^reply-to:" -color header $my_inreplyto $my_bg "^in-reply-to:" -color header $my_date $my_bg "^date:" -color header yellow $my_bg "^newsgroups:" -color header $my_subject $my_bg "^subject:" -color header red $my_bg "^x-spam-rule:" -color header green $my_bg "^x-mailer:" -color header yellow $my_bg "^message-id:" -color header yellow $my_bg "^Organization:" -color header yellow $my_bg "^Organisation:" -color header yellow $my_bg "^User-Agent:" -color header yellow $my_bg "^message-id: .*pine" -color header $my_x $my_bg "^X-Fnord:" -color header $my_x $my_bg "^X-WebTV-Stationery:" -color header $my_x $my_bg "^X-Message-Flag:" -color header $my_x $my_bg "^X-Spam-Status:" -color header $my_x $my_bg "^X-SpamProbe:" -color header red $my_bg "^X-SpamProbe: SPAM" - -## Coloring quoted text - coloring the first 7 levels: -color quoted $my_quote0 $my_bg -color quoted1 $my_quote1 $my_bg -color quoted2 $my_quote2 $my_bg -color quoted3 $my_quote3 $my_bg -color quoted4 $my_quote4 $my_bg -color quoted5 $my_quote5 $my_bg -color quoted6 $my_quote6 $my_bg -color quoted7 $my_quote7 $my_bg - -## Default color definitions -color hdrdefault white green -color signature $my_sig $my_bg -color indicator $my_indicator $my_indicator_bg -color attachment $my_attach $my_attach_bg -color error red $my_bg -color message white $my_bg -color search brightwhite magenta -color status $my_status $my_status_bg -color tree brightblue $my_bg -color normal white $my_bg -color tilde green $my_bg -color bold brightyellow $my_bg -# color underline magenta $my_bg -color markers brightcyan $my_bg - -## Colour definitions when on a mono screen -mono bold bold -mono underline underline -mono indicator reverse diff --git a/.config/mutt/view-html.sh b/.config/mutt/view-html.sh deleted file mode 100755 index bac9bbb8..00000000 --- a/.config/mutt/view-html.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -## Force UTF-8, otherwise most browsers will display ASCII. - -umask 077 -root="/tmp/mutt-$(id -u)" -mkdir -p "$root" -file="$root"/mail.html -echo '' > "$file" -cat >> "$file" -$BROWSER "$file"