Hooks to be used to receive/send emails.
Author: blmayer (bleemayer@gmail.com)
Date: Fri Jan 19 15:38:20 2024 -0300
Parent: db13a93
Added decode function
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@/@/@g')" + subj="$(decode "$subj" | sed 's@/@/@g')" # now the rest is a body cat > /dev/null