From e807710f35bffe9f7126fc1697985e117c144363 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 14 Mar 2025 20:30:06 -0400 Subject: [PATCH] AutoYADM commit: 2025-03-14 20:30:06 --- .config/aerc/aerc.conf | 14 +++++++++----- .config/aerc/templates/forward_as_body | 22 +++++++++++++++++----- .config/aerc/templates/forward_as_body.bak | 8 ++++++++ .config/aerc/templates/quoted_reply | 2 +- .notmuch/hooks/post-new | 2 +- 5 files changed, 36 insertions(+), 12 deletions(-) create mode 100644 .config/aerc/templates/forward_as_body.bak 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) "