Skip to content

Preserve intentional email indentation - #146

Merged
parterburn merged 1 commit into
mainfrom
paul-cursor/preserve-email-indentation-2b44
Aug 2, 2026
Merged

Preserve intentional email indentation#146
parterburn merged 1 commit into
mainfrom
paul-cursor/preserve-email-indentation-2b44

Conversation

@parterburn

@parterburn parterburn commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • distinguish Gmail-authored indentation from actual .gmail_quote reply history
  • recover sanitized <blockquote> markup only when it exactly matches Griddler’s already-isolated plain reply
  • remove Gmail history and signature containers before validating recovered indentation
  • preserve indented text for free users as plain formatting
  • reject attributed quotes, mismatched text, and active raw HTML
  • retain the complete uniformly spaced fallback from the prior Mailgun fix

Verification

  • bundle exec rspec spec/models/email_processor_spec.rb spec/features/entries_spec.rb — 54 examples, 0 failures
  • bundle exec rspec — 252 examples, 0 failures, 1 expected pending
  • CI vm-job and CodeFactor pass
  • manually processed a reply containing authored indentation plus actual outbound history; indentation renders and history/signature remain absent

intentional_email_indentation_preserved.mp4

Open in Web Open in Cursor 

Co-authored-by: Paul Arterburn <parterburn@users.noreply.github.com>
@parterburn
parterburn marked this pull request as ready for review August 2, 2026 21:02
@parterburn
parterburn merged commit abc29dd into main Aug 2, 2026
2 checks passed
@parterburn
parterburn deleted the paul-cursor/preserve-email-indentation-2b44 branch August 2, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants