Personally, i run the script on my Mail server (using the local mailboxes) and only the iPHone deals with the notes via IMAP
That said: i just tried it over IMAP, and it looks like Mail::Box::Manager may have a bug dealing with usernames that contain an "@" character. You should be able to URL escape the "@" symbol in the username, such that these properties...
...become this url: imap://yourname%40maildomain.tld:firstname.lastname@example.org:6789/Notes
But apparently Mail::Box::Manager can't deal with having a port and a password in that URI (even though that's what it's docs say to do). It fails with an error that "yourname" isn't a valid hostname
My guess is only the "URL parsing" logic in Mail::Box::Manager is broken, you could probably customize the script to make it take in distinct user/pass/server/port params for IMAP and construct the folder programaticly
<code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>