I have written a couple of procedures to make working with ns_imap much more pleasant. This includes a load_mails function which is compatible with the acs_mail_lite loading of E-Mails using mime.
If someone is interested in this, let me know and I will send it over. This still needs some cleaning up I guess, especially as it is not in it's own package and therefore you won't find the configuration parameters easily.
What do we use it for ?
If an E-Mail is send to the IMAP Mailbox we analyze it to find a valid object_id in the subject. Then we import the mail with all files (if it is a ]project-open[ project) into the mail tracking and move it to the corresponding IMAP folder in the project hierarchy (e.g. /projects/top_project_id/sub_project_id).