New Post: ImapX Latest Sample Code to Get only 1 Unread Email
Try to do like this :) this is work for me... int MsgUId = Convert.ToInt32(rowAll["mailMessageId"].ToString()); string uid = "UID "+MsgId; ImapX.MessageCollection msgNew =...
View ArticleNew Post: Failed to read attachments using ImapX library (wrong count)
Hi tharush, in order to fix this issue I need the original message with all the body parts. Can you connect to your account using the sample application and export the message that gets parsed wrong?...
View ArticleNew Post: Failed to read attachments using ImapX library (wrong count)
Hi pavel, Thnkz for the reply :) In this case i will process the message two times, foreach (ImapX.Message msg in m) { //bool sucess = msg.Process(); int mesgId = msg.MessageUid; DataTable dtSpecMail =...
View ArticleNew Post: Failed to read attachments using ImapX library (wrong count)
Hi tharush, awesome! Happy you figured out what the problem was.
View ArticleNew Post: ImapX Latest Sample Code to Get only 1 Unread Email
Hi nabeel5, i have tested the library with three different servers, and received a valid UID for every message. You're also the only one to report this issue, so the problem might be in your code....
View ArticleNew Post: Need help, retrieving decoded message body
Hi Pavel Thanks for helping. I went over and over documentation and source code. I still could not figure out how to accomplished my goal where I would like to store the email in the database and...
View ArticleNew Post: Need help, retrieving decoded message body
Hi Vnwind, First of all, we should make clear how you want to store and read back the messages including attachments. If you took a look at the sample application, you saw that it is displaying the...
View ArticleNew Post: ImapX Latest Sample Code to Get only 1 Unread Email
hi All i also use this code to get mail message. But some times it will display the correct result, But another time Imapx Exception occurs,"Bad Search Query"
View ArticleNew Post: Failed to read attachments using ImapX library (wrong count)
hi pavel_azanov Thnkz. :) But now i want to move message to a different folder, for that this is the code i use, But this is always return false. :( ImapX.FolderCollection gmailFolders = null; try {...
View ArticleNew Post: ImapX Latest Sample Code to Get only 1 Unread Email
Hi , Actually I was using client.Folders["INBOX"].Search("UNSEEN",true); to retrieve all message parts for all unread emails, but when there are large number of emails it takes lot of time which cause...
View ArticleNew Post: ImapX Latest Sample Code to Get only 1 Unread Email
tharush wrote: hi All i also use this code to get mail message. But some times it will display the correct result, But another time Imapx Exception occurs,"Bad Search Query" The request throws bad...
View ArticleNew Post: Failed to read attachments using ImapX library (wrong count)
Hi tharush, are you sure you move the messages to a folder that can contain messages? Can you try doing this using the sample application? It has an option to move messages to another folder. (use...
View ArticleNew Post: Save Mail Message to Draft folder
hi All i was trying to save mail message to draft folder in server. I create the mail message using db values. So please someone help me to save this mail message to Draft folder.
View ArticleNew Post: Save Mail Message to Draft folder
Hi tharush, to store a message in the draft folder, simply call the AppendMessage method on the draft folder:draftsFolder.AppendMessage(myMessage, ""); If you experience any issues, please let me know....
View ArticleNew Post: “Bad or not correct Path” error when just accessing Folders property
So I wrote a program that reads from an Exchange mailbox using ImapX for a client to parse information from emails. It has been working for weeks, but now throws the "Bad or not correct Path" error....
View ArticleNew Post: “Bad or not correct Path” error when just accessing Folders property
If it helps, it's throwing the error in the Imap.cs file for GetFolders() when it tries to execute the following line: SendAndReceive(command, ref arrayList) The arrayList has one value in it that...
View ArticleNew Post: “Bad or not correct Path” error when just accessing Folders property
Hi epatton,"IMAP003 BAD Command received in Invalid state" says more about the error than your first post. The request for folders can only be done when the user is authenticated. Are you sure you're...
View ArticleNew Post: “Bad or not correct Path” error when just accessing Folders property
Hey Pavel, After finding that error, I started digging deeper into the other commands and found that it was returning false for the login. It turns out the client changed the email password for the...
View ArticleNew Post: “Bad or not correct Path” error when just accessing Folders property
You're welcome! Happy you found it out.
View ArticleNew Post: exception thrown on connection "dont connect"
I am getting a ImapException thrown with a message of "don't connect" on the following code. What am I doing wrong? The dev environment is VS2012 and have tried with both .net 4 and .net 4.5.static...
View Article