I think you are using the wrong tool for the job.
Like you said, maildir_to_imap is designed for importing a maildir-formatted directory structure. While you could create the proper structure --- it's pretty easy if you understand how maildir works (Maildir - Wikipedia, the free encyclopedia...