Some might have spaces in passwords (Like I do) and then curl fails.
* Changed string formatting of password to %q to always quote password
Merge pull request #75 from osleg/master

imap: quoted password