I’m having trouble using libcurl to access my Gmail Sent Mail folder. While I can retrieve emails from the inbox without issues, I’m stumped when it comes to folders with special characters.
I’ve encountered similar issues when working with Gmail’s IMAP folders. One thing to keep in mind is that Gmail’s folder structure can be a bit tricky, especially with localization. Instead of ‘[Google Mail]/Outbox’, you might want to try ‘[Gmail]/Sent Mail’ as the folder path.
Make sure to use double quotes around the URL to avoid shell interpretation issues. Also, I found that using ‘imap.gmail.com’ instead of ‘mail.google.com’ was more reliable.
If you’re still having trouble, you might want to enable IMAP access in your Gmail settings if you haven’t already. Hope this helps!
I’ve dealt with similar IMAP issues before, and there’s a couple things to consider. First, Gmail’s folder names can vary based on your account’s language settings. Try using ‘[Gmail]/Sent Mail’ instead of ‘[Google Mail]/Outbox’.
Also, URL encoding is crucial. Here’s a command that worked for me:
Notice the URL-encoded brackets and space. If that doesn’t work, double-check your SSL certificate and ensure IMAP is enabled in your Gmail settings. Let us know if you need more help troubleshooting.