Thursday, 8 August 2013

Curl IMAP Gmail

Curl IMAP Gmail

I'm trying to use Curl (actually libcurl) to list the emails in the Sent
Mail directory of my gmail account.
The inbox directory works fine, however directories under [Gmail] don't,
because square brackets aren't allowed in URLS. I've tried the -g flag,
without any success.
.\curl.exe "imaps://imap.gmail.com:993/[Gmail]/Sent Mail" --cacert
".\cacert.pem" -u user:pass -g
Yeilds: curl: (3) [globbing] error: bad range specification after pos 29
Can anyone see how I'm going wrong?

No comments:

Post a Comment