diff options
-rw-r--r-- | ansible/roles/postfix/templates/services/fredrick-reply.sh.j2 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2 b/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2 index f4ef663..97de345 100644 --- a/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2 +++ b/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2 @@ -38,9 +38,11 @@ JSON_BODY=$(echo -n "$BODY" | jq -R -s . | sed 's/\\n/\\\\n/g') FINAL_JSON=$(jq -r -c -n \ --arg from "$SENDER" \ --arg subject "$ORIGINAL_SUBJECT" \ - --arg sent_at "$DATE_UNIX" \ + --arg sent_at_unix "$DATE_UNIX" \ + --arg sent_at_unparsed "$MESSAGE_DATE" \ --argjson body "$JSON_BODY" \ - '{sent_at: $sent_at, from: $from, subject: $subject, body: $body}') + '{sent_at_unix: $sent_at, sent_at_unparsed: $sent_at_unparsed, + from: $from, subject: $subject, body: $body}') FRED_RESPONSE=$(curl -X POST "$FREDRICK_ENDPOINT" \ -H "Authorization: $FREDRICK_TOKEN" \ |