Skip to content
New issue

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

imap4 exception - NO the specified message set is inavlid #20

Open
maddisn opened this issue Mar 22, 2017 · 0 comments
Open

imap4 exception - NO the specified message set is inavlid #20

maddisn opened this issue Mar 22, 2017 · 0 comments

Comments

@maddisn
Copy link

maddisn commented Mar 22, 2017

For some odd reason the moveMessage method fails, it only moves a couple of emails and fails to finish the job.

I have been fighting this issue for over 2 weeks, and this is an important feature of my application.
I tried this method with both gmail and outlook, but it still fails.

` public void EnsureMessagesCanBeMoved()
{
var _selectedMailBox = "Inbox";
var _targetMailBox = "Processed";
Mailbox finalMailbox;

        using (var client = new Imap4Client())
        {
            client.ConnectSsl("imap.gmail.com", 993);
            client.Login("secret", "secret");

            Mailbox mails = client.SelectMailbox(_selectedMailBox);
            var mailMessages = mails.Search("ALL");

            foreach(var x in mailMessages)
            {
                mails.MoveMessage(x, _targetMailBox);
            }

            finalMailbox = client.SelectMailbox("Processed");
            client.Disconnect();
        }

        Assert.AreEqual(15, finalMailbox.MessageCount);
    }

`

This test fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant