purebred-mua / purebred

A terminal based mail user agent based on notmuch
GNU Affero General Public License v3.0
139 stars 19 forks source link

Replying to an email duplicates the inline body #379

Closed romanofski closed 4 years ago

romanofski commented 4 years ago

Describe the bug When I reply to an email, the body is duplicated once saved.

To Reproduce Steps to reproduce the behavior:

  1. Open an email
  2. Reply to this email which will show your editor.
  3. Change body
  4. Save it and exit, so you end up back in purebred
  5. You should have two inline attachments: one is the original, but quoted mail, one is your changed reply in step 3

Expected behavior A single inline attachment is shown.

Screenshots See screen shot screenshot

Additional context This is a home made bug introduced in 535ebb66b0b0272b12a3f05fe32a9ff93486d256 by myself :)

romanofski commented 4 years ago

I just noticed that this also happens, when resuming to compose a draft.

romanofski commented 4 years ago

This relates to the pull request #361 and #294. Specifically the work @frasertweedale did regarding the Action refactoring.