Git Product home page Git Product logo

Comments (5)

jstedfast avatar jstedfast commented on May 18, 2024

The only reason it should return null is if the IMAP server failed to return the BODY[] component of the response.

To make sure that this isn't a bug in MailKit's response parser, could you use the ImapClient constructor that takes a IProtocolLogger argument?

var client = new ImapClient (new ProtocolLogger ("imap.log"));

Once you get the log, if you could copy&paste the "FETCH ... BODY.PEEK[]" command and response, that would be really helpful.

And the same for accessing Tasks or Activities folder where I receive the "Retrieval using the IMAP4 protocol failed for the following message: 2" message.

Where does this error message come from? That doesn't look like it's coming from MailKit... is that an exception? Or do you get a MimeMessage object with that error message as the contents?

from mailkit.

carlomp avatar carlomp commented on May 18, 2024

When I'am accessing Activites folder I receive an incomplete Message from the GetMessage command.

Then I use the Fetch Envelope command and this is the Subject, "Retrieval using the IMAP4 protocol failed for the following message: 2". The Date is also null...

from mailkit.

jstedfast avatar jstedfast commented on May 18, 2024

Ah, that error message is coming from the Exchange server. It's probably some sort of "dummy" message that Exchange adds to the folder as a way of reporting errors. That would also explain why the Date is null.

Any luck getting the protocol log?

from mailkit.

carlomp avatar carlomp commented on May 18, 2024

Hello again,

I tested with imap.log file. https://dl.dropboxusercontent.com/u/62785429/MailKit/imap.log

I tried to "getMessage" for Activities, Calendar, Contacts folder (one message each) and from Sent folder.

Last message was a chained reply's messages that is null when I use getMessage on his MessageID.

I realised that these chained messages are the problem in the Sent Folder. In MS Outlook 2013 this message look's like a list of messages, not a single message.

Here is my webservice code https://dl.dropboxusercontent.com/u/62785429/MailKit/Email.asmx.vb

I ussualy use getEmail method.

Activit&AQMBYw-i = Activities
Contacte = Contacts
Elemente trimise = Sent Items
Elemente &AV8-terse = Deleted Items

Thank's in advance for your help.

from mailkit.

jstedfast avatar jstedfast commented on May 18, 2024

The relevant snippet of the log seems to be this:

C: A00000030 UID FETCH 3023 (BODY.PEEK[])
S: A00000030 OK FETCH completed.
C: A00000031 UID FETCH 3023:3023 ENVELOPE
S: * 6 FETCH (ENVELOPE (NIL "Retrieval using the IMAP4 protocol failed for the following message: 3023" (("Microsoft Exchange Server 2010" NIL NIL ".MISSING-HOST-NAME.")) NIL NIL (("Roxana Popa" NIL "Roxana.Popa" "grosu.ro")) NIL NIL NIL NIL) UID 3023 FLAGS (\Seen \Recent))
S: A00000031 OK FETCH completed.

The problem is that the A00000030 command is not returning the message data.

When you request the summary of the message, it is also showing that it can't retrieve the message data for some reason (it doesn't say why).

It may be that your Exchange server's database is corrupted or something.

If you use something like Thunderbird to connect to your Exchange IMAP server, I suspect you'll get the same results.

You might want to send an email to your Exchange admin to have him (or her) look into this.

from mailkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.