Comments (5)
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.
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.
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.
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.
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)
- Problem with saving edited message using IMAP HOT 15
- Question: How to edit attachments in the IEnumerable<MimeEntity> Attachments property of message object? HOT 13
- https://Mimekit.net certificate expired and site is extremely slow HOT 4
- System.Net.Sockets.SocketException (10060) HOT 2
- System.ArgumentNullException throwed on NTLM authentication HOT 3
- Please, could you provide examples for using ProxyClient, also how/when to use Sockets? HOT 1
- Syntax error in MODSEQ. Unexpected atom token: -1 HOT 6
- Implement the IMAP PARTIAL extension
- failed to run on android HOT 6
- Strange memory problem after calling IMailFolder.IsOpen HOT 1
- Error when invoking Authenticate multiple times over the same connection HOT 1
- Done token won't cancel IMap IdleAsync HOT 10
- Syntax error in BODYSTRUCTURE. Unexpected token: '(' HOT 4
- `.Inbox` returning null HOT 10
- Sending MimeMessage using Mircosoft Graph HOT 1
- SocketException (995): The I/O operation has been aborted because of either a thread exit or an application request. HOT 4
- Recommendations for fatching and processing large amounts of emails HOT 1
- [Yandex] GetBodyPart() throws `Syntax error in BODY. Unexpected token: ')'` for MimeParts with empty content HOT 3
- Iterating through attachments does not provide a name for the attachment HOT 2
- Authentication on SMTP to Microsoft Outlook using OAuth HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailkit.