I was wondering, if it is possible to exclude folders like "Tasks"/"Contacts" (not really email folders) from the Imap.GetFolders list somehow, I've looked into FolderInfo etc. but I'm a bit stuck.
I don't think that it is possible, unless they are marked by the server with some special flag, and I believe they aren't. Sorry.