major springcleaning
This commit is contained in:
47
.config/mutt/accounts/1-abocken@ethz.ch.muttrc
Normal file
47
.config/mutt/accounts/1-abocken@ethz.ch.muttrc
Normal file
@ -0,0 +1,47 @@
|
||||
# vim: filetype=neomuttrc
|
||||
# muttrc file for account abocken@ethz.ch
|
||||
set realname = "Alexander Bocken"
|
||||
set from = "abocken@ethz.ch"
|
||||
set sendmail = "msmtp -a abocken@ethz.ch"
|
||||
alias me Alexander Bocken <abocken@ethz.ch>
|
||||
set folder = "/home/alex/.local/share/mail/abocken@ethz.ch"
|
||||
set header_cache = /home/alex/.cache/mutt-wizard/abocken@ethz.ch/headers
|
||||
set message_cachedir = /home/alex/.cache/mutt-wizard/abocken@ethz.ch/bodies
|
||||
set mbox_type = Maildir
|
||||
|
||||
|
||||
bind index,pager gg noop
|
||||
bind index,pager g noop
|
||||
bind index,pager M noop
|
||||
bind index,pager C noop
|
||||
bind index gg first-entry
|
||||
unmailboxes *
|
||||
unalternates *
|
||||
unset signature
|
||||
unmacro index o
|
||||
macro index o "<shell-escape>mailsync abocken@ethz.ch<enter>" "run mbsync to sync abocken@ethz.ch"
|
||||
|
||||
mailboxes "=Calendar" "=Deleted Items" "=Drafts" "=INBOX" "=Journal" "=Junk E-Mail" "=Notes" "=Outbox" "=Sent" "=Sent Items" "=Tasks" "=Trash"
|
||||
set postponed = "+Drafts"
|
||||
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
|
||||
macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
|
||||
macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
|
||||
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
|
||||
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
|
||||
macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
|
||||
set spoolfile = "+INBOX"
|
||||
macro index,pager gj "<change-folder>=Junk<enter>" "go to junk"
|
||||
macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk"
|
||||
macro index,pager Cj ";<copy-message>=Junk<enter>" "copy mail to junk"
|
||||
set record = "+Sent"
|
||||
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
|
||||
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
|
||||
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
|
||||
set record = "+Sent"
|
||||
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
|
||||
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
|
||||
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
|
||||
macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
|
||||
macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
|
||||
macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
|
||||
set trash = "+Trash"
|
22
.config/mutt/accounts/alexander@aaathats3as.com.muttrc
Normal file
22
.config/mutt/accounts/alexander@aaathats3as.com.muttrc
Normal file
@ -0,0 +1,22 @@
|
||||
# vim: filetype=neomuttrc
|
||||
# muttrc file for account alexander@aaathats3as.com
|
||||
set realname = "Alexander"
|
||||
set from = "alexander@aaathats3as.com"
|
||||
set sendmail = "msmtp -a alexander@aaathats3as.com"
|
||||
alias me Alexander <alexander@aaathats3as.com>
|
||||
set folder = "/home/alex/.local/share/mail/alexander@aaathats3as.com"
|
||||
set header_cache = /home/alex/.cache/mutt-wizard/alexander@aaathats3as.com/headers
|
||||
set message_cachedir = /home/alex/.cache/mutt-wizard/alexander@aaathats3as.com/bodies
|
||||
set mbox_type = Maildir
|
||||
set hostname = "aaathats3as.com"
|
||||
source /usr/share/mutt-wizard/switch.muttrc
|
||||
set spoolfile = +INBOX
|
||||
set postponed = +Drafts
|
||||
set trash = +Trash
|
||||
set record = +Sent
|
||||
|
||||
macro index o "<shell-escape>mailsync alexander@aaathats3as.com<enter>" "run mbsync to sync alexander@aaathats3as.com"
|
||||
macro index \eg "<enter-command>unset wait_key<enter><shell-escape>gpg --list-secret-keys; printf 'Enter email ID of user to publish: '; read eID; printf 'Enter fingerprint of GPG key to publish: '; read eFGPT; /usr/libexec/gpg-wks-client --create \$eFGPT \$eID | msmtp --read-envelope-from --read-recipients -a alexander@aaathats3as.com<enter>" "publish GPG key to WKS provider"
|
||||
macro index \eh "<pipe-message>/usr/libexec/gpg-wks-client --receive | msmtp --read-envelope-from --read-recipients -a alexander@aaathats3as.com<enter>" "confirm GPG publication"
|
||||
|
||||
mailboxes "=Junk" "=Trash" "=INBOX"
|
22
.config/mutt/accounts/alexander@bocken.org.muttrc
Normal file
22
.config/mutt/accounts/alexander@bocken.org.muttrc
Normal file
@ -0,0 +1,22 @@
|
||||
# vim: filetype=neomuttrc
|
||||
# muttrc file for account alexander@bocken.org
|
||||
set realname = "Alexander Bocken"
|
||||
set from = "alexander@bocken.org"
|
||||
set sendmail = "msmtp -a alexander@bocken.org"
|
||||
alias me Alexander Bocken <alexander@bocken.org>
|
||||
set folder = "/home/alex/.local/share/mail/alexander@bocken.org"
|
||||
set header_cache = /home/alex/.cache/mutt-wizard/alexander@bocken.org/headers
|
||||
set message_cachedir = /home/alex/.cache/mutt-wizard/alexander@bocken.org/bodies
|
||||
set mbox_type = Maildir
|
||||
set hostname = "bocken.org"
|
||||
#source /usr/share/mutt-wizard/switch.muttrc
|
||||
set spoolfile = +INBOX
|
||||
set postponed = +Drafts
|
||||
set trash = +Trash
|
||||
set record = +Sent
|
||||
|
||||
macro index o "<shell-escape>mailsync alexander@bocken.org<enter>" "run mbsync to sync alexander@bocken.org"
|
||||
macro index \eg "<enter-command>unset wait_key<enter><shell-escape>gpg --list-secret-keys; printf 'Enter email ID of user to publish: '; read eID; printf 'Enter fingerprint of GPG key to publish: '; read eFGPT; /usr/lib/gnupg/gpg-wks-client --create \$eFGPT \$eID | msmtp --read-envelope-from --read-recipients -a alexander@bocken.org<enter>" "publish GPG key to WKS provider"
|
||||
macro index \eh "<pipe-message>/usr/lib/gnupg/gpg-wks-client --receive | msmtp --read-envelope-from --read-recipients -a alexander@bocken.org<enter>" "confirm GPG publication"
|
||||
|
||||
mailboxes "=Archive/Archive" "=Trash/Trash" "=Sent" "=Junk" "=Drafts" "=INBOX"
|
@ -1,25 +0,0 @@
|
||||
text/plain; $EDITOR %s ;
|
||||
text/html; openfile %s ; nametemplate=%s.html
|
||||
text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput;
|
||||
image/*; openfile %s ;
|
||||
video/*; setsid mpv --quiet %s &; copiousoutput
|
||||
application/pdf; openfile %s ;
|
||||
application/pgp-encrypted; gpg -d '%s'; copiousoutput;
|
||||
application/pgp-keys; gpg --import '%s'; copiousoutput;
|
||||
|
||||
## PDF
|
||||
#application;zathura %s
|
||||
#image/pdf;zathura %s
|
||||
## Images
|
||||
#image/bmp;sxiv %s
|
||||
#image/gif;sxiv %s
|
||||
#image/libm;sxiv %s
|
||||
#image/jpg;sxiv %s
|
||||
#image/jpeg;sxiv %s
|
||||
#image/png;sxiv %s
|
||||
#image/tiff;sxiv %s
|
||||
#image/x-png;sxiv %s
|
||||
|
||||
#Text
|
||||
#text/html; qutebrowser %s
|
||||
text/calendar; calendaradd %s
|
@ -1,81 +1,19 @@
|
||||
# vim: filetype=neomuttrc
|
||||
source /usr/local/share/mutt-wizard/mutt-wizard.muttrc # mw-autogenerated
|
||||
set mailcap_path = /home/alex/.config/mutt/mailcap #overwrite default mailcap location
|
||||
source /usr/share/mutt-wizard/mutt-wizard.muttrc
|
||||
source /home/alex/.config/mutt/accounts/alexander@bocken.org.muttrc
|
||||
macro index,pager i1 '<sync-mailbox><enter-command>source /home/alex/.config/mutt/accounts/alexander@bocken.org.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alexander@bocken.org"
|
||||
macro index,pager i2 '<sync-mailbox><enter-command>source /home/alex/.config/mutt/accounts/1-abocken@ethz.ch.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to abocken@ethz.ch"
|
||||
set forward_attachments = ask-yes
|
||||
macro compose m \
|
||||
"<enter-command>set pipe_decode<enter>\
|
||||
<pipe-message>pandoc -f gfm -t plain -o /tmp/msg.txt<enter>\
|
||||
<pipe-message>pandoc -s --self-contained -o /tmp/msg.html --resource-path ~/.config/mutt/templates/ --template email<enter>\
|
||||
<enter-command>unset pipe_decode<enter>\
|
||||
<attach-file>/tmp/msg.txt<enter>\
|
||||
<attach-file>/tmp/msg.html<enter>\
|
||||
<tag-entry><previous-entry><tag-entry><group-alternatives>" \
|
||||
"Convert markdown to HTML5 and plaintext alternative content types"
|
||||
|
||||
macro index,pager i2 '<sync-mailbox><enter-command>source /home/alex/.config/mutt/accounts/2-ethz.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to abocken@ethz.ch" # mw-autogenerated
|
||||
source /home/alex/.config/mutt/accounts/1-bocken.muttrc # mw-autogenerated
|
||||
macro index,pager i1 '<sync-mailbox><enter-command>source /home/alex/.config/mutt/accounts/1-bocken.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alexander@bocken.org" # mw-autogenerated
|
||||
macro index,pager i3 '<sync-mailbox><enter-command>source /home/alex/.config/mutt/accounts/3-moodle.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to moodle@bocken.org" # mw-autogenerated
|
||||
macro index,pager i4 '<sync-mailbox><enter-command>source /home/alex/.config/mutt/accounts/5-bockenspam.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to spam@bocken.org" # mw-autogenerated
|
||||
|
||||
# Default index colors:
|
||||
color index default default '.*'
|
||||
color index_author cyan default '.*'
|
||||
color index_number black default
|
||||
color index_subject blue default '.*'
|
||||
|
||||
# New mail is boldened:
|
||||
color index brightwhite black "~N"
|
||||
color index_author brightwhite black "~N"
|
||||
color index_subject brightwhite black "~N"
|
||||
|
||||
# Tagged mail is highlighted:
|
||||
color index brightdefault blue "~T"
|
||||
color index_author brightcyan blue "~T"
|
||||
color index_subject brightblue blue "~T"
|
||||
|
||||
# Other colors and aesthetic settings:
|
||||
mono bold bold
|
||||
mono underline underline
|
||||
mono indicator reverse
|
||||
mono error bold
|
||||
color normal default default
|
||||
color indicator brightblack blue
|
||||
color sidebar_highlight red default
|
||||
color sidebar_divider brightblack black
|
||||
color sidebar_flagged red black
|
||||
color sidebar_new green black
|
||||
color normal brightblue default
|
||||
color error red default
|
||||
color tilde black default
|
||||
color message cyan default
|
||||
color markers red white
|
||||
color attachment white default
|
||||
color search brightmagenta default
|
||||
color status white black
|
||||
color hdrdefault brightgreen default
|
||||
color quoted green default
|
||||
color quoted1 blue default
|
||||
color quoted2 cyan default
|
||||
color quoted3 yellow default
|
||||
color quoted4 red default
|
||||
color quoted5 brightred default
|
||||
color signature brightgreen default
|
||||
color bold black default
|
||||
color underline black default
|
||||
color normal default default
|
||||
|
||||
# Regex highlighting:
|
||||
color header blue default ".*"
|
||||
color header brightmagenta default "^(From)"
|
||||
color header brightcyan default "^(Subject)"
|
||||
color header brightwhite default "^(CC|BCC)"
|
||||
color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
|
||||
color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
|
||||
color body green default "\`[^\`]*\`" # Green text between ` and `
|
||||
color body brightblue default "^# \.*" # Headings as bold blue
|
||||
color body brightcyan default "^## \.*" # Subheadings as bold cyan
|
||||
color body brightblack default "^### \.*" # Subsubheadings as bold green
|
||||
color body blue default "^(\t| )*(-|\\*) \.*" # List items as blue
|
||||
color body brightcyan default "[;:][-o][)/(|]" # emoticons
|
||||
color body brightcyan default "[;:][)(|]" # emoticons
|
||||
color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
|
||||
color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
|
||||
color body red default "(BAD signature)"
|
||||
color body cyan default "(Good signature)"
|
||||
color body brightblack default "^gpg: Good signature .*"
|
||||
color body brightyellow default "^gpg: "
|
||||
color body brightyellow red "^gpg: BAD signature from.*"
|
||||
mono body bold "^gpg: Good signature"
|
||||
mono body bold "^gpg: BAD signature from.*"
|
||||
color body cyan 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<>\"]"
|
||||
set query_command = "abook --config $XDG_CONFIG_HOME/abook/abookrc --datafile $XDG_DATA_HOME/abook/addressbook --mutt-query '%s'"
|
||||
macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --config $XDG_CONFIG_HOME/abook/abookrc --datafile $XDG_DATA_HOME/abook/addressbook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"
|
||||
macro index,pager i3 '<sync-mailbox><enter-command>source /home/alex/.config/mutt/accounts/alexander@aaathats3as.com.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alexander@aaathats3as.com"
|
||||
|
29
.config/mutt/templates/email.html
Normal file
29
.config/mutt/templates/email.html
Normal file
@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
||||
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
||||
<script type="text/javascript" id="MathJax-script" async
|
||||
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
|
||||
</script>
|
||||
<style>
|
||||
$styles.html()$
|
||||
</style>
|
||||
$for(css)$
|
||||
<link rel="stylesheet" href="$css$" />
|
||||
$endfor$
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
|
||||
<![endif]-->
|
||||
$for(header-includes)$
|
||||
$header-includes$
|
||||
$endfor$
|
||||
</head>
|
||||
<body>
|
||||
$body$
|
||||
$for(include-after)$
|
||||
$include-after$
|
||||
$endfor$
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user