1
0
mirror of https://github.com/imapsync/imapsync.git synced 2024-11-16 15:52:47 +01:00
imapsync/FAQ.d/FAQ.Folders_Sizes.txt

86 lines
3.4 KiB
Plaintext
Raw Normal View History

2018-05-07 16:04:23 +02:00
#!/bin/cat
2022-10-25 04:20:30 +02:00
$Id: FAQ.Folders_Sizes.txt,v 1.7 2022/04/23 13:45:15 gilles Exp gilles $
2018-05-07 16:04:23 +02:00
2019-07-03 01:17:46 +02:00
This documentation is also available online at
https://imapsync.lamiral.info/FAQ.d/
https://imapsync.lamiral.info/FAQ.d/FAQ.Folders_Sizes.txt
2018-05-07 16:04:23 +02:00
=======================================================================
Imapsync tips to know folders sizes.
=======================================================================
2020-04-11 01:15:57 +02:00
Questions answered in this FAQ are:
Q. How can I know the size of all folders before launching a sync?
2021-05-01 17:46:04 +02:00
Q. After a sync, the folders sizes and the number of messages don't
match between the source mailbox on host1 and the destination
mailbox on host2.
Why? What can I do about it?
2020-04-11 01:15:57 +02:00
Now the questions again with their answers.
2018-05-07 16:04:23 +02:00
=======================================================================
Q. How can I know the size of all folders before launching a sync?
R. Use --justfoldersizes option.
2020-04-11 01:15:57 +02:00
With the --justfoldersizes option, imapsync evaluates and displays the
folders sizes on both sides and then exits without doing any transfer.
2021-05-01 17:46:04 +02:00
It also presents the total size of each account, the number of messages,
the biggest message size, the number of folders.
2020-04-11 01:15:57 +02:00
Example:
2018-05-07 16:04:23 +02:00
imapsync ... --justfoldersizes
2020-04-11 01:15:57 +02:00
=======================================================================
2021-05-01 17:46:04 +02:00
Q. After a sync, the folders sizes and the number of messages don't
match between the source mailbox on host1 and the destination
mailbox on host2.
Why? What can I do about it?
2020-04-11 01:15:57 +02:00
R. There are several reasons to explain the different counts between
source and destination after a sync.
1) The sync ended prematurely, before syncing all wanted folders.
Solution: run new syncs until completion.
2) There are messages on host2 that are not on host1, so host2 is
bigger than host1. Imapsync doesn't delete any message by default.
Solution: use --delete2 to have a strict sync by folder, ie,
delete messages on host2 that are not on host1.
3) There are folders on host2 that are not on host1, so host2 is
bigger. Imapsync doesn't delete any folder by default.
Solution: use --delete2folders to have a strict sync, ie,
delete folders on host2 that are not on host1.
4) There are duplicate messages on host1. Imapsync doesn't sync
duplicates by default. But it counts them and presents the number
found at the end on the line "Messages found duplicate on host1".
2021-08-04 21:14:36 +02:00
To sync duplicates, use the option --syncduplicates
2020-04-11 01:15:57 +02:00
2022-10-25 04:20:30 +02:00
5) There are cross-duplicate messages on host1, same messages in different
folders, and you use --gmail1 or --skipcrossduplicates, which avoid
copying cross-duplicate messages in more than one folder on host2.
Use --noskipcrossduplicates if you want imapsync to sync cross-duplicates.
6) There are duplicate messages on host2 so host2 is
2020-04-11 01:15:57 +02:00
bigger than host1. Solution: use --delete2duplicates to delete
the host2 duplicates.
2022-10-25 04:20:30 +02:00
7) Cosmic rays...
2020-04-11 01:15:57 +02:00
2021-05-01 17:46:04 +02:00
The important part to take into account for a good and well done sync
is the last lines of imapsync. A good sync is when you encounter the
three final lines:
2020-04-11 01:15:57 +02:00
2021-05-01 17:46:04 +02:00
"The sync looks good, all xxxx identified messages in host1 are on host2."
"There is no unidentified message on host1."
"Detected 0 errors"
2018-05-07 16:04:23 +02:00
=======================================================================
=======================================================================
2020-04-11 01:15:57 +02:00