I run kmail and use it to automatically sort my mails to various imap folders (using kmail's disconnected imap). If I fire up a second instance of kmail (e.g., @work + @home) then both will do this, and I wind up with 2 copies of each mail. Can dovecot be taught to discard duplicate mail ids, or maybe some other mechanism to avoid this problem?