We have moved to a new Sailfish OS Forum. Please start new discussions there.

Email: delete downloaded attachments when deleting mails

asked 2014-02-02 02:18:00 +0200

axaq gravatar image

updated 2014-07-31 15:29:53 +0200

jiit gravatar image

Mail attachments are saved in ~/Downloads/mail_attachments/<id>/<file> as I learned here.

Image attachments are shown by the Gallery app and could also be deleted there.

But when deleting the mail itself the attachments and folders below ~/Downloads/mail_attachments/ are not deleted. The attachments should be deleted with the mail because they have not been saved explicitely by the user. Downloading attachments is from my point of view just like caching the file for faster access.

In the long run the downloaded/cached files will consume a lot of storage space. And when deleting attachments with the Galery app the empty subfolders are not deleted. Do you plan a cleanup solution inside Email app?

edit retag flag offensive close delete


hmm, i've just checked this folder, and it doesn't contain any downloaded files, although my emails contain a lot of attachements. When i open email with attachement and tap "attachments" i see "not downloaded" and i have to explicitly download any attachment, and when u download, file won't be deleted with email deletion - this seems OK to me

virgi26 ( 2014-02-03 15:54:51 +0200 )edit

@virgi26: The problem with the downloaded files is that every type is opened by a different app, Images with gallery, others with documents and so on. You need to manage and delete every type by its own app.

In most cases I use my phone as a temporary mail store. Interesting mails or attachements will be stored and backuped on my PC (or your cloud :-) At some point you will clean up your phone.

axaq ( 2014-02-05 04:12:51 +0200 )edit

@virgi26: I'm using email on my Jolla only since one month for my private account with quite low traffic.

But if I run in the terminal or ssh du -s Downloads/mail_attachments it shows 9 Mybte used by downloaded attachements. I found with du Downloads/mail_attachments | grep "^0" 7 empty folders and find Downloads/mail_attachments -type f | wc -l counts 62 files!

axaq ( 2014-02-05 04:17:41 +0200 )edit

well, you can use file browser and just delete whole folder periodically... one thing that bothers me is mail_attachments/<id> dir... they should just use Downloads folder</id>

virgi26 ( 2014-02-05 08:37:40 +0200 )edit

Yes. You and I are able to clean up mail_attachments ourselves by doing it manually from time to time if we don't forget it:-). Other users might not be able to do it or understand it.

Normaly I would expect to have a "save as .." option and not to search for attachments in some download subfolders.

axaq ( 2014-02-07 01:00:36 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-10-25 21:59:17 +0200

lakutalo gravatar image

updated 2015-10-25 22:07:33 +0200

My alternative suggestion: When tapping the attachment icon, one should be given the option whether to only view it or actually download it. This way it would automatically be deleteted on regular cleanups of temporary files. Downloading on the other hand, as a deliberate action, should keep files where they were stored.

A correspondent request is filed here.

edit flag offensive delete publish link more



Exactly! This is how every other email client under the sun does it. (Yes, I know, unlike, bla bla bla..)

pichlo ( 2015-10-25 23:28:18 +0200 )edit
Login/Signup to Answer

Question tools



Asked: 2014-02-02 02:18:00 +0200

Seen: 448 times

Last updated: Oct 25 '15