fix(email): use real hermes version in IMAP ID command
This commit is contained in:
committed by
Teknium
parent
3fd4ccbd8b
commit
a671d8a27a
@@ -74,9 +74,13 @@ def _send_imap_id(imap: "imaplib.IMAP4") -> None:
|
||||
we swallow failures so non-supporting servers keep working.
|
||||
"""
|
||||
try:
|
||||
try:
|
||||
from hermes_cli import __version__ as _hermes_version
|
||||
except Exception: # noqa: BLE001 — keep ID best-effort if import fails
|
||||
_hermes_version = "0"
|
||||
imap.xatom(
|
||||
"ID",
|
||||
'("name" "hermes-agent" "version" "1.0" '
|
||||
f'("name" "hermes-agent" "version" "{_hermes_version}" '
|
||||
'"vendor" "NousResearch" '
|
||||
'"support-email" "noreply@nousresearch.com")',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user