From: Mike Frysinger Date: Tue, 10 Mar 2015 05:46:26 +0000 (-0400) Subject: mutt: update! X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7e74164becc7c0bb504ddc1d2ec9d4774a3fdc13;p=home.git mutt: update! --- diff --git a/.config/mutt/aliases b/.config/mutt/aliases new file mode 100644 index 0000000..1267f8a --- /dev/null +++ b/.config/mutt/aliases @@ -0,0 +1,15 @@ +# Gentoo +alias gentoo-core gentoo-core@lists.gentoo.org +alias gentoo-dev gentoo-dev@lists.gentoo.org + +# Toolchain +alias binutils binutils@sourceware.org +alias bug-binutils bug-binutils@sourceware.org +alias gdb gdb@sourceware.org +alias gdb-patches gdb-patches@sourceware.org +alias newlib newlib@sourceware.org +alias libc-alpha libc-alpha@sourceware.org +alias libc-help libc-help@sourceware.org +alias libc-stable libc-stable@sourceware.org +alias crossgcc crossgcc@sourceware.org +alias strace strace-devel@lists.sf.net diff --git a/.config/mutt/folder.sh b/.config/mutt/folder.sh new file mode 100755 index 0000000..3676014 --- /dev/null +++ b/.config/mutt/folder.sh @@ -0,0 +1,12 @@ +#!/bin/sh +folder=$1 +shift +printf '%s ' "$@" +case ${folder} in +#=*) echo " ${folder}" | sed -r -e 's:^=::' -e 's:[.]([^/]*)[.]directory/:\1/:g' ;; +=*) + printf ' ' + echo "${folder}" | sed -r -e 's:^=::' -e 's:[.]([^/]*)[.]directory/:\1/:g' -e 's:[^/]*/(.): \1:g' + ;; +*) echo "${folder}" ;; +esac diff --git a/.config/mutt/formatting.rc b/.config/mutt/formatting.rc index 6a38ba0..b8fcf04 100644 --- a/.config/mutt/formatting.rc +++ b/.config/mutt/formatting.rc @@ -39,7 +39,8 @@ set date_format = "%d %b %Y %H:%M" # %u owner name %>X right justify the rest and pad with "X" # %|X pad to the end of the line with character "X" #set folder_format="%3C %t %N %F %-8.8u %-8.8g %8s %d %f" # file browser menu -#set folder_format="%F %d %8s %N %f" # file browser menu +set folder_format="%F %d %8s %f" # file browser menu +set folder_format="sh -c '~/.config/mutt/folder.sh \"$@\"' -- '%f' '%F %d %8s'|" # http://www.mutt.org/doc/devel/manual.html#index-format set index_format = "%4C %Z %?M?»& ?%s %* %B %-20.20n %D" diff --git a/.config/mutt/lists.rc b/.config/mutt/lists.rc index edec69b..ba43f3f 100644 --- a/.config/mutt/lists.rc +++ b/.config/mutt/lists.rc @@ -3,7 +3,7 @@ subscribe -group arch "^(alpha|amd64|arm|arm64|hppa|ia64|m68k|mips|s390|sh| subscribe -group toolchain "@sourceware\.org$" subscribe -group vger "@vger\.kernel\.org$" subscribe -group oss \ - "@(lists\.)?sourceforge\.net$" \ + "@(lists\.)?(sourceforge|sf)\.net$" \ "@openssl\.org$" \ "@lists\.[a-z0-9.]+\.org$" \ "^zlib-devel@madler\.net$" \ diff --git a/.config/mutt/main.rc b/.config/mutt/main.rc index 3c60070..c88eca5 100644 --- a/.config/mutt/main.rc +++ b/.config/mutt/main.rc @@ -13,13 +13,14 @@ set recall = no set sleep_time = 0 set time_inc = 500 set user_agent = no +set alias_file = ~/.config/mutt/aliases folder-hook . 'push ; push ' set collapse_flagged = no set collapse_unread = no set sort = threads set strict_threads = yes -set sort_browser = reverse-date +set sort_browser = alpha set sort_aux = last-date-received set hide_thread_subject = yes #set menu_scroll = yes @@ -45,3 +46,4 @@ source ~/.config/mutt/mail.rc source ~/.config/mutt/network.rc source ~/.config/mutt/theme.rc source ~/.config/mutt/theme/$TERM.rc +source $alias_file