I managed to add a new IMAP-account errouneosly (I didn't include the IMAP mail prefix) which led Zoë to index /tmp and ~/ on the server. Now the mail index contains thousands of non-mail files and is more or less useless:-(
How can I delete all messages belonging to a certain account?