Email: delete downloaded attachments when deleting mails
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?
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
axaq ( 2014-02-05 04:17:41 +0200 )editdu -s Downloads/mail_attachments
it shows 9 Mybte used by downloaded attachements. I found withdu Downloads/mail_attachments | grep "^0"
7 empty folders andfind Downloads/mail_attachments -type f | wc -l
counts 62 files!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 )editYes. 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