From d6d4e556892aefed949964095e52a430e632664c Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 25 Mar 2024 01:27:54 +0100 Subject: [PATCH] ipfs pin rm ${EMAILZ} --- tools/mailjet.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/mailjet.sh b/tools/mailjet.sh index a9f3f7aa..1e28eb68 100755 --- a/tools/mailjet.sh +++ b/tools/mailjet.sh @@ -72,6 +72,7 @@ rm -f ~/.zen/tmp/email.txt EMAILZ=$(ipfs add -q ~/.zen/tmp/email.txt) echo "/ipfs/${EMAILZ}" +ipfs pin rm ${EMAILZ} export TEXTPART="$(myIpfsGw)/ipfs/${EMAILZ}" @@ -114,6 +115,7 @@ curl -s \ -H 'Content-Type: application/json' \ -d "$json_payload" + # This call sends an email to one recipient. #~ TEXTPART=$(cat ~/.zen/tmp/email.txt | sed ':a;N;$!ba;s/\n/\\n/g' | tr '"' '\\\"') #~ HTMLPART=$(cat ~/.zen/tmp/email.txt | sed ':a;N;$!ba;s/\n/
/g' | tr '"' '\\\"')