Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Total on host2 greater than on host1 although size is lesser #454

Open
tbergeron opened this issue May 1, 2024 · 1 comment
Open

Total on host2 greater than on host1 although size is lesser #454

tbergeron opened this issue May 1, 2024 · 1 comment

Comments

@tbergeron
Copy link

tbergeron commented May 1, 2024

First of all, thank you for maintaining this project. It's a huge timesaver and so far it's been working surprisingly well.

FYI: I'm migrating from Fastmail to iCloud. Fastmail has a similar "Labels" system like Gmail's Tags.

Here's the parameters I use so far:

./imapsync --host1 "imap.fastmail.com" --user1 "" --password1 "" --host2 "imap.mail.me.com" --user2 "" --password2 "" --subfolder2 "FASTMAILIMPORT" --addheader --useheader Message-ID --skipcrossduplicates --errorsmax 250 --automap --debugcrossduplicates

My question is about the total number of messages. In this example:

Host1 folder    1/56 [2010-2015]                         Size: 1642932925 Messages: 18056 Biggest:  22775283
Host2 folder    1/56 [FASTMAILIMPORT/2010-2015]          Size: 1550573570 Messages: 18251 Biggest:  22775285

There are currently more messages in host2 (18251) than in host1 (18056) yet the total size is lesser.

  1. Why is there more messages on host2?
  2. Why is the size lesser than on host1?

Is there a logical explanation to this?

Also when I look at FastMail's UI I see 15921 messages for that folder and on iCloud I see 18662. Once again, any idea why? Even on smaller directories, there's another directory that has 326 on host1 vs 369 on host2. I wonder why that is.

I want to make sure I don't have duplicates and that the end result is as closed to what I had on Fastmail as possible so suggestions are welcome 😅

Don't hesitate if you have any questions.

Thanks so much and have a great day!

@gilleslamiral
Copy link
Member

./imapsync ... --skipcrossduplicates 

My question is about the total number of messages. In this example:

Host1 folder    1/56 [2010-2015]                         Size: 1642932925 Messages: 18056 Biggest:  22775283
Host2 folder    1/56 [FASTMAILIMPORT/2010-2015]          Size: 1550573570 Messages: 18251 Biggest:  22775285

There are currently more messages in host2 (18251) than in host1 (18056) yet the total size is lesser.

  1. Why are there more messages on host2?

I don't know.

  1. Why is the size smaller than on host1?

I don't know.

Is there a logical explanation to this?

The sizes given by imapsync are not always accurate.
Why?
Imapsync asks for the size of each message to the servers and adds them up.
Now, you know where the discrepancy comes from.

Also when I look at FastMail's UI I see 15921 messages for that folder and on iCloud I see 18662. Once again, any idea why?

No.

Even on smaller directories, there's another directory that has 326 on host1 vs 369 on host2. I wonder why that is.

I want to make sure I don't have duplicates and that the end result is as closed to what I had on Fastmail as possible so suggestions are welcome 😅

Ok

Don't hesitate if you have any questions.

Send me the log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants