list

hooks

Hooks to be used to receive/send emails.

curl -O https://dovel.email/hooks.tar.gz tar.gz

59d3b4e

Author: blmayer (bleemayer@gmail.com)

Date: Fri Jan 19 15:38:20 2024 -0300

Parent: db13a93

Added decode function

Diff

receive-example.domain

diff --git a/receive-example.domain b/receive-example.domain
index c157c41..b2c6277 100755
--- a/receive-example.domain
+++ b/receive-example.domain
@@ -227,9 +227,9 @@ save() {
 	done
 
 	# adjust fields
-	to="$(printf "${to##* }" | tr -d '<>')"
+	to="$(decode "${to##* }" | tr -d '<>"')"
 	eid="${eid:-$(date -Iseconds)}"
-	subj="$(printf "$subj" | sed 's@/@&#47;@g')"
+	subj="$(decode "$subj" | sed 's@/@&#47;@g')"
 
 	# now the rest is a body
 	cat > /dev/null