diff --git a/.config/aerc/aerc.conf b/.config/aerc/aerc.conf index 6d19eee3..3318e524 100644 --- a/.config/aerc/aerc.conf +++ b/.config/aerc/aerc.conf @@ -799,10 +799,12 @@ subject,~Git(hub|lab)=lolcat -f # # Examples: # x-scheme-handler/irc=hexchat -# x-scheme-handler/http*=printf '%s' {} | wl-copy +x-scheme-handler/http*=printf '%s' {} | wl-copy # text/html=surf -dfgms +text/html=firefox +text/plain=hx # text/plain=gvim {} +125 -# message/rfc822=thunderbird +message/rfc822=betterbird [hooks] # @@ -810,19 +812,21 @@ subject,~Git(hub|lab)=lolcat -f # # Executed when a new email arrives in the selected folder -#mail-received=notify-send "[$AERC_ACCOUNT/$AERC_FOLDER] New mail from $AERC_FROM_NAME" "$AERC_SUBJECT" +mail-received=notify-send "[$AERC_ACCOUNT/$AERC_FOLDER] New mail from $AERC_FROM_NAME" "$AERC_SUBJECT" # # Executed when mail is deleted from a folder -#mail-deleted=mbsync "$AERC_ACCOUNT:$AERC_FOLDER" & - +# mail-deleted=mbsync "$AERC_ACCOUNT:$AERC_FOLDER" & +mail-deleted=/home/fic/.config/mail/mail-sync.sh & # # Executed when aerc adds mail to a folder #mail-added=mbsync "$AERC_ACCOUNT:$AERC_FOLDER" & +mail-added=/home/fic/.config/mail/mail-sync.sh & # # Executed when aerc starts #aerc-startup=aerc :terminal calcurse && aerc :next-tab +aerc-startup=/home/fic/.config/mail/mail-sync.sh & # # Executed when aerc shuts down. diff --git a/.config/aerc/templates/forward_as_body b/.config/aerc/templates/forward_as_body index e8d15dcb..137da763 100644 --- a/.config/aerc/templates/forward_as_body +++ b/.config/aerc/templates/forward_as_body @@ -1,8 +1,20 @@ X-Mailer: aerc {{version}} -Forwarded message from {{.OriginalFrom | names | join ", "}} on {{dateFormat .OriginalDate "Mon Jan 2, 2006 at 3:04 PM"}}: -{{.OriginalText}} -{{- with .Signature }} +{{ if or + (eq .OriginalMIMEType "text/html") + (contains (toLower .OriginalText) "