Author Topic: Attachments no longer linked to email after restart  (Read 8107 times)

Arian999

  • Newbie
  • *
  • Posts: 2
Attachments no longer linked to email after restart
« on: December 08, 2012, 12:26:12 am »
Hi there,

I'm not sure if anyone else has experienced this problem.  To illustrate my problem, let's assume I have a message with three attachments.  I download all three to my sdcard\downloads folder, and all will be accessible from the email message after they have been downloaded.  The earth icon next to each attachment is now a stiffy disk image.

Then, after I restart the tablet, and go back to the same message, some of the previously downloaded files again have an earth icon next to them as if they haven't been downloaded before.  If I use the file browser the previously downloaded attachment is still saved under the sdcard\downloads folder, but for some or other reason it has lost it's link to the email message in Aqua Mail.

If I then select that same attachment for download inside Aqua Mail, it downloads it and creates a second iteration of the file; i.e. sample-1.jpg (original file would have been sample.jpg)

This error is not consistent.  Sometimes the attachment would be linked to the email message after a restart, and if one then restarts again it loses its link.  It is also not specific to a certain file type.

Does anyone have a fix for this? Is there something in settings that I can tweak or is this a bug?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Attachments no longer linked to email after restart
« Reply #1 on: December 08, 2012, 03:14:25 am »
I have code that checks the attachment's size and timestamp to make sure it's dealing with the same file.

This is so that if you download something called "foo.doc", edit it and make changes, then get another message with a different file called "foo.doc", the first one won't be overwritten.

Is it possible you're touching the files somehow (editing?), changing the date/timestamp?

If not, could you check the dates using a file manager / browser which you mentioned?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Arian999

  • Newbie
  • *
  • Posts: 2
Re: Attachments no longer linked to email after restart
« Reply #2 on: December 08, 2012, 06:34:58 pm »
This is really strange...  I did a test as you asked, and here is the results:

I did a fresh restart of the tablet.  Opened Aqua Mail, and downloaded 12 attachments, attached to 7 different emails.  Then opened the file manager (ES File Explorer), and noted the date and time attributes of each of the files. I then went back into Aqua Mail to check that all files were still linked (all still had the stiffy icon).  I then restarted the tablet, and immediately went back into ES File Explorer and wrote down the date and time attributes.  I never opened any other application.  Of the 12 files, eight had different time stamps.  Their new time stamp was exactly one second less than the original time stamp.  Four had the same details as originally, and they were still linked in Aqua Mail.

The Results:
File 1    2012-12-08  15:52:27      New: 15:52:26  (no longer linked in Aqua Mail)
File 2    2012-12-08  15:52:59      New: 15:52:58  (no longer linked in Aqua Mail)
File 3    2012-12-08  15:53:28      New: 15:53:28
File 4    2012-12-08  15:52:35      New: 15:52:34  (no longer linked in Aqua Mail)
File 5    2012-12-08  15:53:23      New: 15:53:22  (no longer linked in Aqua Mail)
File 6    2012-12-08  15:53:06      New: 15:53:06 
File 7    2012-12-08  15:52:25      New: 15:52:24  (no longer linked in Aqua Mail)
File 8    2012-12-08  15:52:53      New: 15:52:52  (no longer linked in Aqua Mail)
File 9    2012-12-08  15:52:46      New: 15:52:46 
File 10    2012-12-08  15:53:17      New: 15:53:16  (no longer linked in Aqua Mail)
File 11    2012-12-08  15:53:22      New: 15:52:22 
File 12    2012-12-08  15:52:27      New: 15:52:26  (no longer linked in Aqua Mail)

Looking at these results I'm noticing something really odd...  All of the files which originally had uneven seconds in their time attribute had a new time attribute with even seconds after the restart.  What on earth could cause this..?

Update:  I did a firmware flash with the latest firmware for the tablet, and even after a fresh firmware flash with  no other new applications installed, the tablet changes all files with an uneven timestamp to an even seconds timestamp...  Even tried the two previous firmware versions, and they do the same.  This is really odd...  And I have no idea how to get around this problem!  ;D
 
« Last Edit: December 08, 2012, 08:23:25 pm by Arian999 »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Attachments no longer linked to email after restart
« Reply #3 on: December 12, 2012, 03:36:23 am »
Argh.

Thank you for investigating.

Think I found something.

Ignore the NTFS bit, seems that the FAT32 file system can only store even seconds.

http://support.microsoft.com/kb/127830

Will try to implement a workaround.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/