Skip to content

ImapClient can send commands that are too long #834

Description

@MartinBrandl

When i try to download headerdata of e-mails for a specific folder via IMAP this error happens:
MailKit.Net.Imap.ImapCommandException: 'The IMAP server replied to the 'FETCH' command with a 'BAD' response: Command Error. 10'
It does not even matter wich MessageSummaryItems i request.
Here is how i do it:
imapFolder.Fetch(uniqueIds, MessageSummaryItems.UniqueId)

Since i saw a few other issues with similar problems i have also created a log via a ProtocolLogger and attached it.

As you can see from the log a lot of folders worked before the error gets thrown for the "Sent" folder.
imap.log

Can you lead me into a direction what exactly does not work here and what i could do to fix it?

additional information about what my code does
my code basicly synchronizes all folders and mails (only header data) to our database since working live with IMAP is rather slow.
This is used for displaying the whole mailbox of a user in our software.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcompatibilityCompatibility with existing softwareenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions