list

hooks

Hooks to be used to receive/send emails.

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

21b68c8

Author: brian (git@myr.sh)

Date: Tue Jan 16 13:08:32 2024 -0300

Parent: 0385856

Improved To display

* Fixed subjects with slashes

Diff

receive-example.domain

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