To tell IMAPsync to ignore a folder when syncing mailboxes you simply add a
Code:
--exclude "folder name"
parameter and it will exclude all folders that match that pattern (I believe you can even use regex in this field)
An example command:
Code:
imapsync --noauthmd5 \
--exclude "Junk" --exclude "Contacts" \
--exclude "Chats" --exclude "Emailed Contacts" \
--host1 $host1 --user1 $user --password1 $p1 \
--host2 $host2 --user2 $user2 --password2 $p2