Ok - getting my hands dirty with sql queries...
With a little help from this page:
http://wiki.zimbra.com/index.php?tit...base_structure
..and a lot of help from pure guessing - I ran this query:
UPDATE mail_item SET flags = '0', unread = '0' WHERE folder_id > '7437' AND type = '5';
Assumptions (the mother of all f***ups): type '5' seems to be a email message. folder_id is the folder the item is placed in. So selecting anything that is placed in a folder created after the folder created for import and type 5, will select all the inmported emails. The 'unread' seems obvious - so clearing that one. 'flags'...hmm... not sure what the numbers mean - and I can't find any docs about it. A lot of the mails was created wit values 484 and 486. After altering the status of the mails in outlook, the value was changed to 68 (from 484). I decided to clear the flags and put '0' in there. Now the mails can be read.
Still some of the folders is displayed as if there are unread messages in them in the webclient. Outlook seems fine.
/Ole