I’m using gmail and wanted the imap_email_content sensor to pull from a subfolder. Gmail uses this weird folder structure that uses [] brackets in the name of the root folder, I’m not sure if it’s the reason why I can’t get it to work, but I am able to access emails in my inbox folder. The gmail folder structure looks something like this:
[Gmail]
Drafts
Sent Mail
etc...
Custom Folder 1
Custom Folder 2
I tried setting the folder to [Gmail]\Foldername but it wouldn’t let me use the [. It did let me save it if I escaped it with a \, so I tried all of these for foldernames but none worked:
\[Gmail]\Foldername
\[Gmail\]\Foldername
\[Gmail]/Foldername
\[Gmail\]/Foldername
The documentation doesn’t list anything about folder syntax, so I wasn’t sure if it was a / or a \. I also wasn’t sure if I had to escape the ] either, so I tried variations of those shown above also. Still didn’t work.