mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
fix(email): use real hermes version in IMAP ID command
This commit is contained in:
parent
3fd4ccbd8b
commit
a671d8a27a
1 changed files with 5 additions and 1 deletions
|
|
@ -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")',
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue