Author Topic: Main menu / Erase e-mail storage  (Read 9247 times)

mallorn1

  • Newbie
  • *
  • Posts: 3
Main menu / Erase e-mail storage
« on: August 09, 2016, 09:36:05 am »
Hello people,
maybe a stupid question, but what exactly does "Erase e-mail storage" in main menu? I am facing a lot of space being used by AM. I am running out of free space, but I do not want to delete any e-mail, because I use the same server IMAP server for Thunderbird in Linux.

Are there any log files or something like that what could be purified? Or some cache....?

THX

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Main menu / Erase e-mail storage
« Reply #1 on: August 09, 2016, 10:31:03 pm »
There is no "erase email storage" in AquaMail.

There is "optimize" email storage, which removes old messages and compacts the database, but it still goes by your (user) settings, the "messages to sync" / "messages to keep".

Please check the size of the app's database in Menu -> About (in the app).

Messages.sqldb is where the text of all messages is stored.

Attachments are cached on "the memory card which is not a real memory card but looks like one, and really is built-in" -- whew, Android makes it complicated -- I mean the "16 GB" or "32 GB" in your phone model's name.



Optimizing Messages.sqldb:

Menu -> Optimize the database.

If it's still large-ish, please reduce how many messages you're asking the app to "keep up to date" and to "cache on the device in case you need to access those older messages".

App settings -> mail, receiving -> "messages to sync" (defaults to 25 or 50) and "messages to cache" (defaults to 250).

Can be overriden at the account level, please check too:

Long press your account -> options and folders -> account options.

You may want to set "messages to sync" at 100 and "messages to cache" to 250, or maybe try 250 and 500 (if you like seeing a larger number of your recent messages".

After adjusting those settings, please do Menu -> Optimize the database again.

The app trims any messages beyond the Max ( "messages to sync", "messages cache" ) from the phone only, automatically, every night.



Attachments.

Cached on the "large built-in storage", under ../Android/data/org.kman.AquaMail/files/parts

Automatically removed when their messages are (removed), per above. Or you can delete everything in that folder, and if you access one of those attachments again, the app will re-download.



Re: what you wrote about Thunderbird.

As should be clear from the above, AquaMail provides a "view" into the most recent messages on the server.

As this "view", over time, "slides" away from older and to the newest messages, your messages *are not deleted from the server*.

So you'd be fine even if you set "messages to sync" to 25 and "messages to cache" to 100 -- very very "small" settings.

I do know that if you tell Thundebird to only keep a limited number of messages -- it actually starts deleting your older messages from the server. Ugh. Did it once, good thing I caught it in time.

AquaMail is not like that and will not delete your older messages from the server as it "moves the view" of your messages as time goes on.
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/

nica

  • Guest
Re: Main menu / Erase e-mail storage
« Reply #2 on: August 11, 2016, 12:33:36 am »
Attachments.

Cached on the "large built-in storage", under ../Android/data/org.kman.AquaMail/files/parts

Automatically removed when their messages are (removed), per above. Or you can delete everything in that folder, and if you access one of those attachments again, the app will re-download.
Hi Kostya,
this folder usually is a big one. And it grows daily.

What do you think about a kind of button or menu item in settings to clear that cache (empty folder) manually by user? Could be a little bit easier to do.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Main menu / Erase e-mail storage
« Reply #3 on: August 11, 2016, 02:00:58 am »
The attachments in this folder are removed as the app trims its on-device message storage.

Do you use a very large "messages to cache" settings?
« Last Edit: August 11, 2016, 02:31:57 am by Kostya Vasilyev, Aqua Mail »
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/

mallorn1

  • Newbie
  • *
  • Posts: 3
Re: Main menu / Erase e-mail storage
« Reply #4 on: August 11, 2016, 12:20:13 pm »
There is no "erase email storage" in AquaMail.

There is "optimize" email storage, which removes old messages and compacts the database, but it still goes by your (user) settings, the "messages to sync" / "messages to keep".

I understand now, I have switched AM to English. There is a wrong translation in CS language, because it really sounds like "erase email storage"... so I compacted the database.


App settings -> mail, receiving -> "messages to sync" (defaults to 25 or 50) and "messages to cache" (defaults to 250).

Yes, I know....my settings are 5000 messages to sync.... 10000 messages to cache

I understand, I sync everything in my IMAP maibox and Thunderbird is set to delete message if deleted in TB by me. Nothing else.

Thank you for answer.

nica

  • Guest
Re: Main menu / Erase e-mail storage
« Reply #5 on: August 11, 2016, 01:08:14 pm »
The attachments in this folder are removed as the app trims its on-device message storage.

Do you use a very large "messages to cache" settings?
Yes, indeed. :)  And I like it because stored messages are better searchable.

But I don't need the attachments to be stored locally. I would like to download an attachment, when I need it.

mallorn1

  • Newbie
  • *
  • Posts: 3
Re: Main menu / Erase e-mail storage
« Reply #6 on: August 11, 2016, 01:20:33 pm »
It would be normally sufficient to download attachment when needed, but sometimes it would took a lot of time to download and resend large attachments.

I use the phone/mail for work when I am "outside"......

nica

  • Guest
Re: Main menu / Erase e-mail storage
« Reply #7 on: August 12, 2016, 09:09:54 pm »
I would like to suggest an user option:

- "Clear attachments automatically from cache after x days."

This option could be enabled by user and force input of x (= number of days).

Additionally there could be an item/button.

- "Clear attachment's cache now"


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Main menu / Erase e-mail storage
« Reply #8 on: August 12, 2016, 11:40:01 pm »
Before their "owner messages" are deleted?
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/

nica

  • Guest
Re: Main menu / Erase e-mail storage
« Reply #9 on: August 12, 2016, 11:48:08 pm »
Yes. The attachments can be downloaded once more, is necessary?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Main menu / Erase e-mail storage
« Reply #10 on: August 12, 2016, 11:51:56 pm »
Yes, they will download, just wanted to understand your suggestion.

OK, will write down.

Please also note that if your phone has a real microSd, AquaMail can store the "cached" attachments there -- since 1.6.2, and Android 5.0 -- in app settings -> look and feel -> Folder for caching attachments
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/

nica

  • Guest
Re: Main menu / Erase e-mail storage
« Reply #11 on: August 12, 2016, 11:55:07 pm »
Thank you.

nica

  • Guest
Re: Main menu / Erase e-mail storage
« Reply #12 on: November 06, 2016, 03:44:24 pm »
I would like to suggest an user option:

- "Clear attachments automatically from cache after x days."

This option could be enabled by user and force input of x (= number of days).

Additionally there could be an item/button.

- "Clear attachment's cache now"

For now I'm using a shell command in Tasker, which deletes all attachments older than 6 days - running once a week:
Code: [Select]
find /storage/emulated/0/Android/data/org.kman.AquaMail/files/parts/ -type f  -mtime +6 -exec rm {} \;
Is it possible to integrate this in the app?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Main menu / Erase e-mail storage
« Reply #13 on: November 08, 2016, 09:07:09 pm »
Re: Is it possible to integrate this in the app?

Yes it's still on my list, I know this came up before, sorry.
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/

nica

  • Guest
Re: Main menu / Erase e-mail storage
« Reply #14 on: November 08, 2016, 09:29:46 pm »
No problem.

Thanks for answering.

Does anybody know how to exclude the ".nomedia"-file in folder "parts" from being deleted by this shell command?