We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Jeff, I am facing a problem with only one of my mailboxes. When I use the sample code shown on the repo's homepage (IMAP section)
// The Inbox folder is always available on all IMAP servers... var inbox = client.Inbox;
inbox variable returns null.
inbox
After inspection of the code, it appears that the problem is in the "QuerySpecialFolders" method (ImapEngine.cs)
if (!FolderCache.TryGetValue ("INBOX", out folder)) { //Some Code Inbox = list.Count > 0 ? list[0] : null; }
With this email account FolderCache already contains Inbox folder, therefore the Inbox variable is never assigned.
FolderCache
Inbox
Workaround :
if (!FolderCache.TryGetValue ("INBOX", out folder)) { // Some code }else { Inbox = folder; }
Now it works but I don't know if it's the right way.. I can create an email account for Tests if you need it
The text was updated successfully, but these errors were encountered:
Fixed ImapEngine.Inbox for servers that use INBOX as the namespace
e2b6c31
Thanks to @joancaron for this fix (issue #37)
Your fix is absolutely correct - thanks!
I'm guessing that your IMAP server uses INBOX as the namespace? (probably Cyrus IMAP?)
Sorry, something went wrong.
Yes this IMAP uses INBOX as the namespace! (OVH)
No branches or pull requests
Hi Jeff,
I am facing a problem with only one of my mailboxes.
When I use the sample code shown on the repo's homepage (IMAP section)
inbox
variable returns null.After inspection of the code, it appears that the problem is in the "QuerySpecialFolders" method (ImapEngine.cs)
With this email account
FolderCache
already contains Inbox folder, therefore theInbox
variable is never assigned.Workaround :
Now it works but I don't know if it's the right way..
I can create an email account for Tests if you need it
The text was updated successfully, but these errors were encountered: