1
0
mirror of https://github.com/imapsync/imapsync.git synced 2024-11-17 00:02:29 +01:00
imapsync/FAQ.d/FAQ.Folders_Sizes.txt

84 lines
3.2 KiB
Plaintext
Raw Normal View History

2018-05-07 16:04:23 +02:00
#!/bin/cat
2021-05-01 17:46:04 +02:00
$Id: FAQ.Folders_Sizes.txt,v 1.4 2021/01/26 13:05:21 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".
To sync duplicates, use option --useuid
--useuid has some caveats. See the documant FAQ.Duplicates.txt
for details about it at
https://imapsync.lamiral.info/FAQ.d/FAQ.Duplicates.txt
5) There are duplicate messages on host2 so host2 is
bigger than host1. Solution: use --delete2duplicates to delete
the host2 duplicates.
6) Cosmic rays...
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