aerc: Update templates

* Forwarded template
* Patch applied and thanks script
* Format
old-yadm
earnest ma 2021-08-25 15:32:15 -04:00
parent ba9cab299d
commit 04a8373708
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
4 changed files with 4 additions and 9 deletions

View File

@ -1,10 +1,5 @@
X-Mailer: aerc {{version}}
-------- Doorgestuurd bericht --------
Onderwerp: {{.Subject}}
Datum: {{dateFormat .OriginalDate "2006-01-02 15:04 MST" }}
Van: {{.OriginalFrom}}
Aan: {{.To}} (this is broken, remove this line)
Bericht:
Forwarded message from {{(index .OriginalFrom 0).Name}} on {{dateFormat .OriginalDate "Mon Jan 2, 2006 at 3:04 PM"}}:
{{wrapText .OriginalText 72}}

View File

@ -1,5 +1,5 @@
REMOTE_URL=$(git remote get-url --push origin)
COMMITS=$(git reflog -2 $(git for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD)) --pretty=format:%h | xargs printf '%s from %s')
COMMITS=$(git reflog -2 $(git for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD)) --pretty=format:%h | xargs printf '%s <- %s')
CURRENT_BRANCH=$(git branch --show-current)
UPSTREAM_BRANCH=$(git for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD) | sed 's#^[^/]*/##g')
echo "On $REMOTE_URL:

View File

@ -3,6 +3,6 @@ X-Sourcehut-Patchset-Update: APPLIED
Thanks!
{{exec "~/.config/aerc/templates/patch.sh" "" }}
{{ exec "~/.config/aerc/templates/patch.sh" "" }}
Op {{ dateFormat (.OriginalDate | toLocal) "2006-01-02 om 15:04 MST" }}, schreef {{ (index .OriginalFrom 0).Name }}:
{{ wrapText .OriginalText 72 | quote }}

View File

@ -3,4 +3,4 @@ X-Sourcehut-Patchset-Update: APPLIED
Thanks!
{{exec "~/.config/aerc/templates/patch.sh" "" }}
{{ exec "~/.config/aerc/templates/patch.sh" "" }}