To answer the original question:
- Open Settings
- Go to Accounts
- Select your IMAP account
- Scroll to the ‘Synced Folders’ selector
- Change setting to ‘Custom’
- Use the new ‘Folders to sync’ button to configure synced folders.
Note that some Folders are special (see above) and messing with those may do more harm than good.