diff --git a/HOME/.local/share/applications/userapp-khalimport.desktop b/HOME/.local/share/applications/userapp-khalimport.desktop index ce4ce1e..1512578 100644 --- a/HOME/.local/share/applications/userapp-khalimport.desktop +++ b/HOME/.local/share/applications/userapp-khalimport.desktop @@ -1,8 +1,9 @@ [Desktop Entry] +Version=1.0 +Name=Khal Import +Comment=Imports ICS files into Khal Type=Application -Name=khalimport -Exec=xterm -bg "#1E1E2e" -fg "#CDD6F4" -e "/usr/bin/khal import -a purelymail %s %f" -Categories=Other; -NoDisplay=true -MimeType=text/calendar Terminal=false +Exec=xdg-terminal-exec khal import %F +MimeType=text/calendar; +NoDisplay=true diff --git a/aerc/aerc.conf b/aerc/aerc.conf index ea97213..de2bd17 100644 --- a/aerc/aerc.conf +++ b/aerc/aerc.conf @@ -37,6 +37,7 @@ sort=unread [compose] address-book-cmd=khard email --parsable --remove-first-line %s header-layout=To|From,Cc|Bcc,Subject +reply-to-self=false [multipart-converters] text/html=pandoc -f markdown -t html @@ -71,4 +72,7 @@ audio/*=mpv --no-video text/*=vim [hooks] +aerc-startup=aerc :terminal khal interactive \ + && aerc :pin-tab \ + && aerc :change-tab hjarl mail-received=notify-send "[$AERC_ACCOUNT/$AERC_FOLDER] New mail from $AERC_FROM_NAME" "$AERC_SUBJECT" diff --git a/aerc/binds.conf b/aerc/binds.conf index f1169f4..7c1bf1d 100644 --- a/aerc/binds.conf +++ b/aerc/binds.conf @@ -1,5 +1,5 @@ - = :next-tab - = :prev-tab + = :next-tab + = :prev-tab = :term ? = :help keys \[t = :prev-tab @@ -25,6 +25,7 @@ c = :cf C = :compose D = :delete-message dd = :mv Trash +f = :forward G = :select -1 gg = :select 0 gi = :cf INBOX @@ -39,10 +40,8 @@ m = :move n = :next-result N = :prev-result q = :quit -rq = :reply -aq -Rq = :reply -q -rr = :reply -a -Rr = :reply +r = :reply -aq +R = :reply -q s = :split S = :vsplit T = :toggle-threads @@ -81,10 +80,8 @@ m = :move O = :open o = :open q = :close -rq = :reply -aq -Rq = :reply -q -rr = :reply -a -Rr = :reply +r = :reply -aq +R = :reply -q S = :save [view:folder=Trash] @@ -109,9 +106,9 @@ $noinherit = true = :switch-account -p = :prev-field = :next-field - = :next-tab + = :next-tab = :prev-field - = :prev-tab + = :prev-tab = :next-field [compose::editor] @@ -119,16 +116,18 @@ $noinherit = true $noinherit = true $ex = = :next-field - = :next-tab + = :next-tab = :prev-field - = :prev-tab + = :prev-tab [compose::review] y = :send # Send n = :abort # Abort (discard message, no confirmation) v = :preview # Preview message p = :postpone # Postpone +H = :multipart text/html # Add html from markdown q = :choose -o d discard abort -o p postpone postpone # Abort or postpone +Q = :abort # Abort e = :edit # Edit (body and headers) a = :attach # Add attachment d = :detach # Remove attachment @@ -139,5 +138,5 @@ x = :encrypt # Toggle encryption to all recipients $noinherit = true $ex = - = :next-tab - = :prev-tab + = :next-tab + = :prev-tab diff --git a/aerc/templates/forward_as_body b/aerc/templates/forward_as_body new file mode 100644 index 0000000..e8d15dc --- /dev/null +++ b/aerc/templates/forward_as_body @@ -0,0 +1,8 @@ +X-Mailer: aerc {{version}} + +Forwarded message from {{.OriginalFrom | names | join ", "}} on {{dateFormat .OriginalDate "Mon Jan 2, 2006 at 3:04 PM"}}: +{{.OriginalText}} +{{- with .Signature }} + +{{.}} +{{- end }} diff --git a/aerc/templates/new_message b/aerc/templates/new_message new file mode 100644 index 0000000..8ff5f46 --- /dev/null +++ b/aerc/templates/new_message @@ -0,0 +1,5 @@ +X-Mailer: aerc {{version}} +{{- with .Signature }} + +{{.}} +{{- end -}} diff --git a/aerc/templates/quoted_reply b/aerc/templates/quoted_reply new file mode 100644 index 0000000..8564df3 --- /dev/null +++ b/aerc/templates/quoted_reply @@ -0,0 +1,23 @@ +X-Mailer: aerc {{version}} + +On {{dateFormat (.OriginalDate | toLocal) "Mon Jan 2, 2006 at 3:04 PM MST"}}, {{.OriginalFrom | names | join ", "}} wrote: + +{{ if or + (eq .OriginalMIMEType "text/html") + (contains (toLower .OriginalText) "