thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

Attachments not rendered, lost upon saving draft

Open patricktokeeffe opened this issue 9 years ago • 15 comments

Version 5.007 on Android 5.0.2:

Some types of message content cause existing message attachments to not be rendered while editing messages. If edits are saved, attachments are permanently lost.

From another client
  1. Open Thunderbird* and launch Help > Troubleshooting Information, then choose 'Copy text to clipboard'.
  2. Paste into draft message.
  3. Add file attachment.
  4. Save in drafts.

*It's not clear exactly what HTML content causes this error. Basic entities like bold, tables, & text coloring don't trigger it but the Thunderbird troubleshooting dump does so consistently.

From K9 mail
  1. Locate saved message in Drafts folder view
  2. Observe paperclip icon on draft, indicating an attachment
  3. Open message to resume editing
  4. Observe message apparently has no attachments
  5. Save as draft
  6. Observe paperclip icon is now missing, indicating attachment was lost outright

It's probably worth noting that all HTML is stripped out of the message body when you resume editing with K9 mail.

patricktokeeffe avatar Dec 15 '15 03:12 patricktokeeffe

K-9 Mail can't edit HTML, so there's no point in keeping the original HTML from Thunderbird. The missing attachment sounds like a bug.

Currently K-9 Mail's draft handling code kind of assumes that you're only editing drafts generated by K-9 Mail. So my advice would be to avoid editing drafts created by other clients for now.

cketti avatar Dec 15 '15 10:12 cketti

When i create a draft with an attachment and saves it using k-9 client, attachment gets saved. But when i open the draft again and add/update text to it and saves it again, the attachment was lost. So seems like an issue for drafts created by k-9 client as well.

swapsmagic avatar Jan 01 '16 06:01 swapsmagic

@cketti This seems to a legit issue, i provided the reproducible steps in my previous comment. Can you confirm the behavior?

swapsmagic avatar Jan 07 '16 19:01 swapsmagic

@swapsmagic I don't have time to look into this issue right now. If you're able to reproduce it please consider submitting a pull request fixing the bug.

cketti avatar Jan 08 '16 03:01 cketti

This seems to be identical to #2164 and it affects me too. I have version 5.203

tuliogit avatar Mar 02 '17 11:03 tuliogit

Is this a duplicate of #1566 and #2547?

I would also say it is related to #2485, which is a duplicate of #3110.

chrisrapson avatar Feb 24 '18 22:02 chrisrapson

I wanted to add that for me it is not related to HTML. It happens to plain text mails as well. Here is what I see/have:

Steps to reproduce

  1. Compose a new mail and attache a file in a different IMAP client than K9 (round cube in my case)
  2. Save as draft
  3. Open draft folder with K9 -> Draft mail is displayed with attachment icon
  4. Open the mail with K9 -> attachment is removed
  5. After saving, the attachment icon is gone in the draft folder view
  6. Opening the mail again with another client shows the draft with removed attachment

Environment

K-9 Mail version: 5.600 Android version: 8.1.0 Account type (IMAP, POP3, WebDAV/Exchange): IMAP

It confused my wife and me in several occasions until I decided now to look for issues about this.

efelon avatar Jun 05 '19 12:06 efelon

@efelon I can't reproduce the bug in version 5.803 with your steps. Can you please check if the bug still exists?

plan3d avatar Aug 17 '21 19:08 plan3d

@plan3d I still can. Let me show some screenshots:

  1. Existing draft with attachement: image

  2. Opened draft within K9 already without any attachement image

...Then make some changes in text...

  1. "Back" on Android asks for saving or discard image

  2. After "Saving..." the attachment is gone image Discarding leaves the attachment in place

Version from F-Droid image

efelon avatar Sep 10 '21 07:09 efelon

I have the same issue. I write a message on roundcube, attach a file, and save it as draft. In K9Mail E-Mail List view, it shows a mail with an paper-clip. When I open it, no attachment was visible.

Version 5.806 from playstore

lke15 avatar Jan 14 '22 11:01 lke15

I have the same issue for a long time now. I write a draft on Thunderbird (currently 115.2.0) and attach a file. In K-9 Mail (currently 6.602) E-Mail List view, it shows a mail with an paper-clip. When I open it, no attachment was visible.

Ptitg avatar Sep 08 '23 14:09 Ptitg

Hello, same issue for me. opening a draft lose the attachment. writing a email with an attachment, saving the draft and opening with the email box website (mailbox.org), the attachment are there. If re-opening fro; K-9 android app., only text is there in the draft but no more attachment.

K-9 Mail app : 6.603 Android : 13

Hope it will be fixed.

Cyril-Bo avatar Jan 30 '24 01:01 Cyril-Bo

@cketti @wmontwe Is there any chance to bring some attention to this issue, which is more than eight years old now?

driehle avatar Apr 04 '24 10:04 driehle

I was about to file a bug on this, but I found someone already filed it, and the issue is still a problem.

An attachment that I had added to a draft message was quietly dropped when I opened the draft message to send it. Also, my messages are plain text and not HTML, so you can eliminate the HTML variable.

  • App version: com.fsck.k9 6.801 (from Google Play Store)
  • Android version: 14 (AP1A.240305.019.A1)
  • Device model: Google Pixel 6a

KlipperKyle avatar Apr 10 '24 00:04 KlipperKyle

Same problem with Version 6.802.

Just went to a priting shop, used K-9 to send them an email with PDFs to print, which I prepared with Thunderbird on my computer, and saved as a draft. Attachments lost. Big loss of time. Very annoying.

andan342 avatar May 10 '24 13:05 andan342