human hand off fix reputation
This commit is contained in:
parent
249fb79aaf
commit
223f846782
2 changed files with 8 additions and 10 deletions
|
|
@ -724,10 +724,9 @@ async def process_human_reply(
|
|||
def _mirror_from_identity(
|
||||
source: dict, agent_name: str, agent_email: str
|
||||
) -> tuple[str, str]:
|
||||
# Always send From the Gentic mailbox so SPF/DKIM/DMARC stay aligned.
|
||||
if source.get("direction") == "inbound":
|
||||
sender = source.get("sender") or {}
|
||||
address = (sender.get("address") or "").strip()
|
||||
return sender_display_name(sender), address or agent_email
|
||||
return sender_display_name(source.get("sender") or {}), agent_email
|
||||
return agent_name, agent_email
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue