Closed pcgeek86 closed 12 years ago
Having the same problem, I'm unable to fetch a full message. I loop through the headers, then try to download the message and it returns nothing. Tried this against an Exchange server as well gmail.
Example of a non working message:
Here's the command that is send:
xm006 UID FETCH 1660:1660 (UID RFC822.SIZE FLAGS BODY)
Here's the reply:
- 1 FETCH (UID 1660 RFC822.SIZE 50091 FLAGS (\Seen) BODY ((("text" "plain" ("charset" "us-ascii") NIL NIL "quoted-printable" 1607 49)("text" "html" ("charset" "us-ascii") NIL NIL "quoted-printable" 7416 128) "alternative")("image" "png" ("name" "image001.png") "image001.png@01CCEBC6.E6D718D0" "image001.png" "base64" 53196)("image" "png" ("name" "image002.png") "image002.png@01CCEBC6.E6D718D0" "image002.png" "base64" 4746) "related")) xm006 OK FETCH completed.
The problem seems to be that the
var m = rxGetBodyLength.Match(response); line doesn't match on anything in the above reply
I haven't studied the IMAP specification enough to be able to provide more insight on what might be wrong.
Sorry guys. This was due to a premature simplification in the code. :/ I didn't run the unit tests before checking in.
Thanks for the help Andy! I will try it again soon. Any ideas on the null message issue?
Sent from my HTC Vision On Feb 29, 2012 9:49 AM, "Andy Edinborough" < reply@reply.github.com> wrote:
Sorry guys. This was due to a premature simplification in the code. :/ I didn't run the unit tests before checking in.
Reply to this email directly or view it on GitHub: https://github.com/andyedinborough/aenetmail/issues/38#issuecomment-4239934
Actually, I believe it was all the same issue. #epicfail
Oh fabulous! I will see about trying it out tonight. :)
Sent from my HTC Vision On Feb 29, 2012 9:57 AM, "Andy Edinborough" < reply@reply.github.com> wrote:
Actually, I believe it was all the same issue.
Reply to this email directly or view it on GitHub: https://github.com/andyedinborough/aenetmail/issues/38#issuecomment-4240149
When calling the ImapClient.GetMessage() method, and passing it a valid UID, such as [int] or [string] "5", I constantly get a "Index was outside the bounds of the array" message. I haven't been able to find any call to GetMessage() that works to get a specific UID.
I am not sure if this is related to my other issue, where I'm getting null messages when calling SearchMessages() ...
Cheers, Trevor Sullivan http://trevorsullivan.net