If you have bugs in your batch that you can't do, and no-one has been able to help you with on IRC, please list them here for someone else to have a look at.
186502 It seems unreproducible, probably a developer needs the ~/.kde4/share/apps/kmail/imap file from the reporter.