pimalaya / neverest

CLI to synchronize, backup and restore emails
https://pimalaya.org
MIT License
183 stars 5 forks source link

INBOX doesn't get synchronized sometimes #8

Open codethief opened 1 month ago

codethief commented 1 month ago

I have yet to understand when exactly this issue occurs. So far I've noticed it occurs especially with my larger mailboxes.

The issue: I am using neverest for the first time to download all my emails from my mail server. While neverest synchronize <account> says it's synchronizing the given account's INBOX (from left to right) – a process which is going on for several minutes –, no cur/new/tmp folders are showing up in the folder that I set as the account's right.backend.root-dir. In fact, I can't see any changes in right.backend.root-dir or in ~/.cache/pimalaya whatsoever while the INBOX is being sync'ed. The size of those folders stays exactly the same. Meanwhile, other folders (Archive, Drafts, Sent, …) are getting sync'ed just fine.

Finally, when I restart neverest synchronize it starts synchronizing the given account again, but once more nothing is being written to disk.

I'm using neverest 1.0.0-beta.

soywod commented 1 month ago

First of all, I would advise to use the v1.0.0 that is being tested on master, as it is more stable. I just updated the installation section to make it more clear.

Versions below v1.0.0 were using Maildir++ standard by default, which lead to sync issues. Starting from the v1.0.0, it now uses a set of Maildir folder (similar to other sync tools like mbsync or OfflineIMAP).

Could you please backup your emails (for security purpose), delete the ~/.cache/pimalaya and the right.backend.root-dir folders, then try again with the v1.0.0? Be sure you have the correct folder.aliases.inbox in both left and right sides, and to try with --dry-run to check before running the real sync.

codethief commented 1 month ago

Ah I see. I was using 1.0.0-beta. I will give master a try later!

As for the deleting the cache dir (and the right dir), that did the trick! Thank you!

Is it safe to delete the cache dir, even without deleting the right dir? I frequently clean up ~/.cache. See also my question here.

soywod commented 1 month ago

Ah I see. I was using 1.0.0-beta. I will give master a try later!

If you do not want to build yourself, you can pick a pre-built release in this Artifacts section.

Is it safe to delete the cache dir, even without deleting the right dir? I frequently clean up ~/.cache. See also my question here.

I cannot say it is not safe thanks to default strategies, but could be safer to move cache to state.