mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-05 02:31:47 +00:00
fix(email): add required Date header to send_message_tool._send_email
Adds RFC 5322 Date header to the _send_email tool path in tools/send_message_tool.py. Issue #15160 noted that both gateway/platforms/email.py and tools/send_message_tool.py construct MIMEMultipart/MIMEText messages without setting a Date header. RFC 5322 requires the Date header; mail filters reject messages that lack it. PR #15207 fixed the gateway/platforms/email.py path but did not cover tools/send_message_tool._send_email, which is used by the send_message tool for cross-channel messaging. This change adds msg["Date"] = formatdate(localtime=True) to _send_email, mirroring the fix applied to the gateway email adapter. Closes #15160
This commit is contained in:
parent
51dc98d314
commit
08b8465ca9
1 changed files with 2 additions and 1 deletions
|
|
@ -10,9 +10,10 @@ import json
|
|||
import logging
|
||||
import os
|
||||
import re
|
||||
from typing import Dict, Optional
|
||||
import ssl
|
||||
import time
|
||||
from email.utils import formatdate
|
||||
from typing import Dict, Optional
|
||||
|
||||
from agent.redact import redact_sensitive_text
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue