Comments (3)
Here's the problem:
S: * 1 FETCH (UID 3016 BODY[2.MIME] {389}
S: Content-Disposition: attachment;
S: filename="=?UTF-8?B?0KHRh9C10YIg0LTQtCDQotC+0L8t0JrQvtGE0LUg0YPQuy4g0KPRgNCw0LvRjNGB0LrQsNGPLCDQtC4x?=
S: =?UTF-8?B?INC90L7Rj9Cx0YDRjC5wZGY=?="
S: Content-Transfer-Encoding: base64
S: Content-Type: application/pdf;
S: name="=?UTF-8?B?0KHRh9C10YIg0LTQtCDQotC+0L8t0JrQvtGE0LUg0YPQuy4g0KPRgNCw0LvRjNGB0LrQsNGPLCDQtC4x?=
S: =?UTF-8?B?INC90L7Rj9Cx0YDRjC5wZGY=?="
S:
S: BODY[2] )
See the BODY[2]
? IMAP responds with key/value pairs. In this case, it gives us a key (BODY[2]
), but no corresponding value.
A correct response would be any of the following:
S: * 1 FETCH (UID 3016 BODY[2.MIME] {389}
S: Content-Disposition: attachment;
S: filename="=?UTF-8?B?0KHRh9C10YIg0LTQtCDQotC+0L8t0JrQvtGE0LUg0YPQuy4g0KPRgNCw0LvRjNGB0LrQsNGPLCDQtC4x?=
S: =?UTF-8?B?INC90L7Rj9Cx0YDRjC5wZGY=?="
S: Content-Transfer-Encoding: base64
S: Content-Type: application/pdf;
S: name="=?UTF-8?B?0KHRh9C10YIg0LTQtCDQotC+0L8t0JrQvtGE0LUg0YPQuy4g0KPRgNCw0LvRjNGB0LrQsNGPLCDQtC4x?=
S: =?UTF-8?B?INC90L7Rj9Cx0YDRjC5wZGY=?="
S:
S: BODY[2] "")
or
S: * 1 FETCH (UID 3016 BODY[2.MIME] {389}
S: Content-Disposition: attachment;
S: filename="=?UTF-8?B?0KHRh9C10YIg0LTQtCDQotC+0L8t0JrQvtGE0LUg0YPQuy4g0KPRgNCw0LvRjNGB0LrQsNGPLCDQtC4x?=
S: =?UTF-8?B?INC90L7Rj9Cx0YDRjC5wZGY=?="
S: Content-Transfer-Encoding: base64
S: Content-Type: application/pdf;
S: name="=?UTF-8?B?0KHRh9C10YIg0LTQtCDQotC+0L8t0JrQvtGE0LUg0YPQuy4g0KPRgNCw0LvRjNGB0LrQsNGPLCDQtC4x?=
S: =?UTF-8?B?INC90L7Rj9Cx0YDRjC5wZGY=?="
S:
S: BODY[2] NIL)
or
S: * 1 FETCH (UID 3016 BODY[2.MIME] {389}
S: Content-Disposition: attachment;
S: filename="=?UTF-8?B?0KHRh9C10YIg0LTQtCDQotC+0L8t0JrQvtGE0LUg0YPQuy4g0KPRgNCw0LvRjNGB0LrQsNGPLCDQtC4x?=
S: =?UTF-8?B?INC90L7Rj9Cx0YDRjC5wZGY=?="
S: Content-Transfer-Encoding: base64
S: Content-Type: application/pdf;
S: name="=?UTF-8?B?0KHRh9C10YIg0LTQtCDQotC+0L8t0JrQvtGE0LUg0YPQuy4g0KPRgNCw0LvRjNGB0LrQsNGPLCDQtC4x?=
S: =?UTF-8?B?INC90L7Rj9Cx0YDRjC5wZGY=?="
S:
S: BODY[2] {0}
S: )
I'll see what I can do about adding a work-around.
from mailkit.
These types if exceptions are typically due to a syntax error in the server response.
What I need from you is a protocol log. Specifically, the last response from the server when you get this exception.
You can get a protocol log by passing in a new ProtocolLogger ("imap.log")
to the ImapClient constructor like this:
var client = new ImapClient (new ProtocolLogger ("imap.log"));
from mailkit.
Please, find it in the attachment
imap.log
from mailkit.
Related Issues (20)
- IMAP client connected and authenticated but Inbox returns null HOT 4
- in the sample project of imapidle, is it possible to add a sample method for how to cancel the "IDLE" mode. thanks! HOT 2
- SmtpProtocolException - Last Smtp Response before failure HOT 6
- SMTP not working with Strato.de HOT 4
- SmtpClient Exception Behavior Change in 4.4.0 HOT 26
- PreviewText field in MessageSummary is incorrect for the email with charset="ks_c_5601-1987" HOT 14
- Dependencies ERROR HOT 3
- Can SendAsync complete without throwing, but essentially fail to deliver? HOT 3
- How to get folder id for imap server which doesn't have ImapCapabilities.ObjectID capabilities ? HOT 3
- ImapClient.ConnectAsync throws NullReferenceException with OTEL enabled HOT 2
- Virtual-mta value information HOT 1
- Invalid subject parsing from iso-8859-2 HOT 1
- Shared Mailbox Office 365 HOT 3
- Publish a new version with MimeKit 4.7.1 dependency HOT 1
- `System.Formats.Asn1` version clash with framework/netstandard2 HOT 3
- Cannot install, dependency loop detected HOT 4
- New version scheme HOT 3
- SearchQuery for Message-ID / References?? HOT 1
- How to create MailboxAddress instance with punycode in domain part ? HOT 2
- GetMessage error 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.