AutoYADM commit: 2025-03-14 20:30:06

This commit is contained in:
Daniel Fichtinger 2025-03-14 20:30:06 -04:00
parent 8d516fa5f3
commit e807710f35
5 changed files with 36 additions and 12 deletions

View file

@ -799,10 +799,12 @@ subject,~Git(hub|lab)=lolcat -f
# #
# Examples: # Examples:
# x-scheme-handler/irc=hexchat # 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=surf -dfgms
text/html=firefox
text/plain=hx
# text/plain=gvim {} +125 # text/plain=gvim {} +125
# message/rfc822=thunderbird message/rfc822=betterbird
[hooks] [hooks]
# #
@ -810,19 +812,21 @@ subject,~Git(hub|lab)=lolcat -f
# #
# Executed when a new email arrives in the selected folder # 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 # 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 # Executed when aerc adds mail to a folder
#mail-added=mbsync "$AERC_ACCOUNT:$AERC_FOLDER" & #mail-added=mbsync "$AERC_ACCOUNT:$AERC_FOLDER" &
mail-added=/home/fic/.config/mail/mail-sync.sh &
# #
# Executed when aerc starts # Executed when aerc starts
#aerc-startup=aerc :terminal calcurse && aerc :next-tab #aerc-startup=aerc :terminal calcurse && aerc :next-tab
aerc-startup=/home/fic/.config/mail/mail-sync.sh &
# #
# Executed when aerc shuts down. # Executed when aerc shuts down.

View file

@ -1,8 +1,20 @@
X-Mailer: aerc {{version}} X-Mailer: aerc {{version}}
Forwarded message from {{.OriginalFrom | names | join ", "}} on {{dateFormat .OriginalDate "Mon Jan 2, 2006 at 3:04 PM"}}: {{ if or
{{.OriginalText}} (eq .OriginalMIMEType "text/html")
{{- with .Signature }} (contains (toLower .OriginalText) "<html")
}}
{{- $text := exec `/usr/lib/aerc/filters/html` .OriginalText | replace `\r` `` -}}
{{- range split "\n" $text -}}
{{- if eq . "References:" }}{{break}}{{end}}
{{- if or
(eq (len .) 0)
(match `^\[.+\]\s*$` .)
}}{{continue}}{{end}}
{{- printf "%s\n" . | replace `^[\s]+` "" | quote}}
{{- end -}}
{{- else }}
{{- trimSignature .OriginalText | quote -}}
{{- end -}}
{{.}} {{.Signature -}}
{{- end }}

View file

@ -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 }}

View file

@ -1,4 +1,4 @@
X-Mailer: aerc {{version}}
{{ if or {{ if or
(eq .OriginalMIMEType "text/html") (eq .OriginalMIMEType "text/html")

View file

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
afew --tag --new # afew --tag --new