Quantcast
Channel: ImapX 2
Viewing all 1952 articles
Browse latest View live

New Post: This imapX library is a free library or paid ??

$
0
0
Hey pavel,

When i am fetching emails from gmail server, i am getting GMailMessageId and GmailThread value is NULL. So can you please share the reason of this.

Thanks a lot.

New Post: This imapX library is a free library or paid ??

$
0
0
Hey pavel,

I solved the above problem for Gmail by using MessageFetchMode => GMailExtendedData, by this i got GmailThread id. But when i am doing the same for Hotmail again i am getting NULL value.

var client = new ImapClient("imap-mail.outlook.com", true);
                if (client.Connect())
                {
                    var credentials = new OAuth2Credentials(EmailAddress, AccessToken);
                    if (client.Login(credentials))
                    {                           
                        ImapX.Message[] messages = client.Folders.Inbox.Search(idOfMsg, ImapX.Enums.MessageFetchMode.GMailExtendedData);
                    }
                }
This worked for gmail, but not for Hotmail. Can you please help me out regarding this issue.??

Thanks a lot.

Created Unassigned: Downloaded TXT attachments lost format [2611]

$
0
0
Hello!

I have found a issue, i can't get txt files without getting them unaltered

my code
```
foreach (var file in m.Attachments)
{
file.Download();
file.Save(pathf /*, optional file name*/);
}
```

http://puu.sh/eMoSn/88051273aa.png

left is original file
right is original file downloaded

by the way i am using gmail with imapx version 2.0.0.16

Kind Regards

New Post: Getting GMailMessageId and GmailThread value NULL

$
0
0
Hey pavel,

I am using your library for fetching emails from different servers like Gmail, hotmail. With gmail its all good but when i came to hotmail all were going correct, the only problem is that i have got NULL value of GMailMessageId and GmailThread. To get this i have used :

MessageFetchMode => GMailThreads,GMailExtendedData also but result was same NULL.
I need to get GMailThreads value, So how can i achieve this? Please help me out.

Thanks in advance.

New Post: Getting GMailMessageId and GmailThread value NULL

$
0
0
Hi sauravAnand,

MessageFetchMode is a bit flag and to fetch the GMail specific data you need to add the GMailExtendedData flag to it, combining with another one, such as MessageFetchMode.Basic or MessageFetchMode.Full. Otherwise the client will not fetch anything at all.

For reference you can look at the documentation, it has a sample for GMail.
// Request basic information and GMail mesage id, labels and thread id
client.Behavior.MessageFetchMode = MessageFetchMode.Basic |  MessageFetchMode.GMailExtendedData;
Greets,

Pavel

New Post: This imapX library is a free library or paid ??

$
0
0
Hi sauravAnand,

the name GMailExtendedData speaks for itself, this is a feature only avalable for GMail. Hotmail does not provide any extensions to return the thread ids for messages.

As for your question about opening the message in browser - you can save the body of the messages as html to disc and then open these files in browser.

Greets,

Pavel

Commented Unassigned: BAD "header-list" list closing character missing or bad command 11 [2607]

$
0
0
Hello,

I have a problem while I getting mails.

Output:

IMAPX15 BAD "header-list" list closing character missing.
IMAPX16 UID FETCH 100002 (FLAGS BODY.PEEK[HEADER.FIELDS (MESSAGE-İD FROM DATE SUBJECT CONTENT-TYPE İMPORTANCE)] BODYSTRUCTURE)

"messages" list is filled as the count of messages but all of properties in message are null.
Comments: ** Comment from web user: pavel_azanov **

Hi,

can you provide a more extended log?
To solve the issue I need to see the lines before the server returned `IMAPX15 BAD "header-list" list closing character missing.`

Greets,

Pavel

Created Unassigned: Downloads 0 kb csv attachment file with error. The input is not a valid Base-64 string as it contains a non-base 64 character [2613]

$
0
0
Hello I have problem with downloading attachment.

I have mail with one attachment in csv(comma delimited) file format.

I need to save to disk F:\Audio\

The library version is: __ImapX 2.0.0.16 Binaries__

The solution is: __CONSOLE APPLICATION__


The Error i'm getting from Visual Studio 2013 Community __.NET 4.5.1__ is:

__An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll__

__Additional information: The input is not a valid Base-64 string as it contains a non-base 64 character, more__ __than two padding characters, or an illegal character among the padding characters.__



the code I'm using so far is:
======================================================================


```

namespace CC_test1
{
class Program
{
static void Main(string[] args)
{
//Setting connecting variables for logging in
string hostname = "this is my host here";
string username = "this is the mail i'm logging in";
string password = "this is the pasword";
string mailBox = "testo";


//Connecting
var client = new ImapClient(hostname, true);
client.IsDebug = true;

if (client.Connect())
{
if (client.Login(username, password))
{
Console.WriteLine("1. IMAP is online");

// Setting behavior of the client
client.Behavior.MessageFetchMode = MessageFetchMode.Full;
client.Behavior.AutoPopulateFolderMessages = true;

//Put all folders in Enumerable
IEnumerable<Folder> folders = client.Folders;

//Access single folder with name "testo"
Folder fld = client.Folders[mailBox];
Console.WriteLine(fld.Name);

//Put all messages from folder "testo" to Enumarable
IEnumerable<Message> msgs = fld.Messages;

//Loop trough all messages in folder "testo"
foreach (var msg in msgs)
{
//Create var to hold message body
MessageBody mbody = msg.Body;

//Print out the body as text
Console.WriteLine(mbody.Text);

//Print out the date
Console.WriteLine(msg.Date);

//Downloading the attachment
string fileDownloadPath = "F:\\Audio";
string fileName = "lw-karaoke-KKKK.csv";
string done = fileDownloadPath;

foreach (var file in msg.Attachments)
{
file.Download();
file.Save(fileDownloadPath);
// I tried with file.Save(fileDownloadPath, fileName); and not working with same error.

}
}
}
Console.ReadLine();
}
}
}
}

```

New Post: This imapX library is a free library or paid ??

$
0
0
Hey pavel,

Thanks for your reply.

Reviewed: ImapX 2.0.0.16 (Jan 27, 2015)

$
0
0
Rated 5 Stars (out of 5) - After spending one day long searching the best IMAP library, at the end Iampx turned out. I will say it is the best one !!!

New Post: The selected authentication mechanism is not supported

$
0
0
Hi,

I have successfully established a connection to an exchange server but encounter the following exception when attempting a Login:

"The selected authentication mechanism is not supported"

The exchange is a pretty standard TLS, I have tried several different protocols in the ImapClient parameters to no prevail.

extracted code:
_client = new ImapClient(_mailServer, 143 SslProtocols.Tls, false);
_client.Connect();

if (_client.IsConnected)
{
   _client.Login(_login, _password);
}
On execution of _client.Login it throws "The selected authentication mechanism is not supported"?

Any ideas?

Patch Uploaded: #17198

$
0
0

Ruifeng has uploaded a patch.

Description:
please compare the file with the origin.

Patch Uploaded: #17202

$
0
0

Ruifeng has uploaded a patch.

Description:
public static string ToEml(this MailMessage mailMessage)
{
......
else
{
var eml = File.ReadAllText(tmpPath);
// File.Delete(eml); // Bug Here~! Wrong path.
File.Delete(tmpPath); // Fixed.
return eml;
}
}
catch (Exception)
{
throw;
}
finally
{
if (watcher != null)
watcher.EnableRaisingEvents = false;
}


}

Patch Applied: #17202

$
0
0

pavel_azanov has applied patch #17202.

Comment:
Hi,

thank you for the fix! However this has already been fixed.

http://imapx.codeplex.com/SourceControl/changeset/36116

In case of source code you better refer to the latest code from the repository, not the downloads section.

Greets,

Pavel

Created Unassigned: inline images and attachment [2617]

$
0
0
Hi, i have problem with import 2 email from imap. One of the email throw FormatException:
Input not valid Base-64 string because it contains characters that are not from the Base-64 encoding, or contains more than two filler characters or contains an invalid character between the characters fill.

A second mail contains only text in the body: "IMAPX34 NO Some messages could not be FETCHed (Failure)"

New Post: NotImplementedException in Message.FromEml(string)

$
0
0
When this feature will be implemented? Thanks

New Post: Sorted Mail

$
0
0
Same probleme here. Is there any specific filter, that I could use, so the messages would be downloaded in descending order? The version of lib I am using is 2.0.0.16 and the server is Exchange 2010.

New Post: IdleeventArgs

$
0
0
Hi

Do you know of any reason ImapX idleEventArgs like ImapClient_OnIdleStopped wont fire in a windows service?

I have been working with imapx for a little over three months now and am in the final stages of learning how to properly use and debug the idleEventArgs. Any advice or help would be much appreciated.

Thank you in advance

New Post: NotImplementedException in Message.FromEml(string)

$
0
0
Any idea how can it be handled?
I have the same case. I was able to save it to eml but not able to load it.

New Post: DownloadRawMessage ok without raw

$
0
0
Hello,
When I Call "DownloadRawMessage" as output have only one row in the IList with "OK IMAPX506 Fetch completed." but not the raw email.
Where am I wrong?
Viewing all 1952 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>