Ebook creation, formatting and cleanup

Closed - This job posting has been filled and work has been completed.
Hourly Job
As Needed
Less than 1 week
Intermediate Level
I am looking for a mix of experience and value


I have an RTF file with a few basic formatting tags and a basic structure.  I need it processed correctly so it can be made into an ebook-- mobi and epub ultimately.  

But because I need to do this a number of times and the exported RTF files will always be the same, I need some kind of a script that I can run that will clean up and prepare the file for loading.  I've used Calibre before to create these or I'm open to another method.  But it needs to be something I can do on future builds of the book/content.  

I need the RTF processed correctly to maintain some heading links so I have a working, 3-level Table of Contents.  It would also be nice to preserve some of the formatting for indents and colors.  

For this project I'll send you samples of the current content and then you send me back a mobi/epub that I can test. Once we have the layout correct, I'll want the steps/script to fully process the whole file.