Hooks to be used to receive/send emails.
Author: brian (git@myr.sh)
Date: Tue Jan 16 13:08:32 2024 -0300
Parent: 0385856
Improved To display * Fixed subjects with slashes
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@/@/@g')" # now the rest is a body cat > /dev/null