Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Manipulate iPhone 'Notes' folders

by eclpmb (Hermit)
on Jul 27, 2010 at 07:54 UTC ( #851481=note: print w/replies, xml ) Need Help??

in reply to Manipulate iPhone 'Notes' folders

This sounds like something I could really make use off, but I'm not familiar with 'Mail::Box::Manager' and I'm not entirely sure from reading the perldoc what I should be putting in.

I was guessing it wants the URL syntax - 'imap4://username:password@host/' - is that correct? If so can anyone tell me how to handle a username with an '@' symbol in please?

Lastly is there a way to change the URL to use SSL?

Replies are listed 'Best First'.
Re^2: Manipulate iPhone 'Notes' folders
by Corion (Pope) on Jul 27, 2010 at 08:03 UTC

    For SSL-imap it's imaps://. For some IMAP servers, I think you can replace @ with % in the URL like this:


    ... would try to log in as on, and I think some IMAP servers understand that by you really meant

Re^2: Manipulate iPhone 'Notes' folders
by hossman (Prior) on Jul 27, 2010 at 18:59 UTC

    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...

    • user: yourname@maildomain.tld
    • pass: my$ecret
    • imap server: imap.domain.tld
    • port: 6789
    • folder: Notes

    ...become this url: imap://yourname%40maildomain.tld:my%24ecret@imap.domain.tld: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

Re^2: Manipulate iPhone 'Notes' folders
by hossman (Prior) on Feb 22, 2011 at 05:15 UTC

    I recently switched to using Google as my primary mail server, and had to revisit this problem (as well as making it work with IMAPS, and dealing with GMail's dislike of Mail::Box::Search::Grep)

    So I added some options to make deal with all of this, for instance... -c --opts type=imaps \ --opts \ --opts \ --opts password=s3cr3t -f Notes < note.txt OR -c --gmail \ --opts \ --opts password=s3cr3t < note.txt

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://851481]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2021-12-04 07:50 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (30 votes). Check out past polls.