A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.
Shell
fix(email): retain quotations absent from parent messages
Rudy Celekli6550b657009e
diff --git a/engineering/engineering-email-intelligence-engineer.md b/engineering/engineering-email-intelligence-engineer.mdindex 30fa7c7b..a1deb89b 100644--- a/engineering/engineering-email-intelligence-engineer.md+++ b/engineering/engineering-email-intelligence-engineer.md@@ -188,6 +188,12 @@ def strip_quoted_content(body, parent_bodies):- Outlook XML quoting: nested <div> blocks with specific classes"""lines = body.split("\n")+ parent_lines = {+ line.strip()+ for parent in parent_bodies+ for line in parent.splitlines()+ if line.strip()+ }unique_lines = []in_quote_block = False@@ -198,7 +204,11 @@ def strip_quoted_content(body, parent_bodies):if in_quote_block and not line.strip():in_quote_block = Falsecontinue- if not in_quote_block and not line.startswith(">"):+ if not in_quote_block:+ # A new quotation is still evidence from this message. Remove a+ # prefix-quoted line only when its text duplicates a parent.+ if line.startswith(">") and line[1:].strip() in parent_lines:+ continueunique_lines.append(line)return "\n".join(unique_lines)