Quote parent's message in email replies

Add standard > -prefixed quote block to outbound replies so parents can
see what they wrote in the previous message, matching natural email client
behaviour. The quote header uses the German "Am <date> schrieb <addr>:"
convention (matching Outlook/Thunderbird).

- email_channel.py: add _build_quoted_block() helper; extend send_reply()
  with optional quoted_text/quoted_from params
- main.py: pass msg["body"] and msg["from"] as quoted_text/quoted_from

https://claude.ai/code/session_01HaUFs7SaLD5SoiuGCY27Tw
This commit is contained in:
Claude
2026-02-21 20:05:12 +00:00
parent 98a5f5b5b1
commit fef0388534
2 changed files with 28 additions and 0 deletions
+2
View File
@@ -100,6 +100,8 @@ def run_poll_loop(agent: EmailAgent, channel: EmailChannel, poll_interval: int)
body=reply,
in_reply_to=msg["message_id"],
references=msg["references"],
quoted_text=msg["body"],
quoted_from=msg["from"],
)
except Exception:
logger.exception(