I would like a switch for the --automap parameter.
Because if an email is in the provider’s Sent or Spam folder, imapsync synchronizes it into a new folder instead of the existing folder in sogo.
I have tested the --automap parameter and it works perfectly for me.
Best regards