 |
|
 |
Hello Sir,
I am new this IMAP concept to fetch emails using it.
how i pass ssl value for connection to gmail account, to your code ? , which download from here.
Thanks in advance.
|
|
|
|
 |
|
 |
Love your article, thought its a few years old now, but was wondering if you could spare a few mins of your valuable time for a question.
I am using the IMAP function from c# and am trying to move some emails from one folder to another sub folder and cannot seem to find any code examples to show the syntax.
I have the emails returning and can extract the info from them and manipulate it but moving from one folder to another is not easy to research.
any help would be appreciated.
i can be contacted on
garryihill@hotmail.com
thank you
Garry
|
|
|
|
 |
|
 |
When retrieving PDF attachments, I only see the XML, even from FetchPartBody. How do I decode the XML and save it out?
Dan
|
|
|
|
 |
|
 |
When tried running on win7 it hungs at line
protected ImapResponseEnum Connect(string sHost, ushort nPort)
.....
......
....
m_oImapServ = new TcpClient(sHost, nPort);
m_oNetStrm = m_oImapServ.GetStream();
m_oRdStrm = new StreamReader(m_oImapServ.GetStream());
string sResult = m_oRdStrm.ReadLine();
dont know why, what could be the reason ?
|
|
|
|
 |
|
 |
Did you get any reply. I have same issue. Actually it is problem of SSL. Some how code should use SSL to connect with server.
|
|
|
|
 |
|
 |
Hi, Thank you for the article. How to get the single email size by giving message number?
|
|
|
|
 |
|
 |
Hi All,
I downloaded IMAP Client library and trying to test with Host: imap.gmail.com , User:...., Password:.... . But I got an error like "Error: Failure connecting to the IMAP server. imap.gmail.com". I trying to connect with port 993, but I got the same error. I can't login to IMAP server.Please give me any advice.
Thanks and Regards
|
|
|
|
 |
|
 |
Hi everyone,
I'm having a problem with the command "UID SEARCH FROM". Specifically the command filtered through the address correctly when we were using exchange 2007. At this time we moved our server to exchange 2010 and the command "UID SEARCH FROM" stopped working properly.
could you please tell me if you know about this bug. and its solution.
Best regards,
Alexander Llanes.
|
|
|
|
 |
|
 |
I saw a post from over a year ago of a person offering to add SSL support to ImapLibrary. I've recently downloaded the source code, and a search of "SSL" doesn't show anything.
Did the SSL support ever get added? Or is there another way I can get the proposed modification?
|
|
|
|
 |
|
 |
Hi, and sorry for newbie Q.
First tks for share code and lib.
Second i try (in VB.net) to do a simple for each every mail in inbox
i try to understand or convert the C code but i dont understand (personal limits naturally)
How can check all mails in my inbox with imap protocol?
i can perfectly open a conn, check used and totally quote, but i cannot do a simple for each mail in inbox msgbox(header)
i try to use searchmessage (but really i dont have a string to search)
tks a lot and sorry again.
|
|
|
|
 |
|
 |
hi every body ,
whenever i am trying to fetch attachment parts sometimes i got wrong response according to given command to server .
I am doing following process.(with command given and getting responses)
first attachment
-------------------------------
IMAP0011 UID FETCH 660554996 BODY[2]
* 39 FETCH (UID 660554996 BODY[2] {44844}
)
IMAP0011 OK UID FETCH completed
----------------------------------
second attachment
------------------------
IMAP0012 UID FETCH 660554996 BODY[3]
* 39 FETCH (UID 660554996 BODY[3] {1270188}
)
IMAP0012 OK UID FETCH completed
--------------------------------------
Third attachment
--------------------------------------
IMAP0013 UID FETCH 660554996 BODY[4]
after that i have got many times this responses
* 39 FETCH (UID 660554996 BODY[3] * OK Reset Timeout or
simple "* OK Reset Timeout"
but some how i have tried to get response by giving same command again n again and then i got
{1270188} which is previous attachment size(Which is wrong) and then every thing goes wrong with Recieve() method --server give continuous response in byte in Recieve () which should not get.
---------------------
please if anybody have an idea about it and any clue will help me a lot ...
|
|
|
|
 |
|
 |
It's been long time but one thing is sure server is closing the connection. Probably you need to increase the timeout on server size. If you search for "Reset Timeout" in comments, you will see similar issues. There might be a bug in code where it doesn't clear the variable in it timesout.
|
|
|
|
 |
|
 |
thank you for reply rohit i am waiting for this .
now can you tell me how can i reset time out ?
or any hint that i can solve this problem cause i have another library which is free but i want to use your library
please look into this because i have modified your library vary much even i have solved some bugs which is critical but this one i cant resolve .
please help me cause i have something dependency on this library
|
|
|
|
 |
|
 |
Hi, is there any way to mark labels in the gmail using IMAP?
modified on Thursday, October 14, 2010 7:19 PM
|
|
|
|
 |
|
 |
Hello ,
I am trying to develop an application which base on IMAP server from where i am fetching unread mails one by one automatically and i process with email data like body ,attachments but if i failed to do process with email contents then i want to that mail's flag remain unseen or set unseen ,for that i select folder by examine command that will not set flag to "seen " then i read whole mail ,if i succeed then i set that email flag is "seen" by commanding select folder otherwise remain "unseen" .
and by doing this i get some time trouble like "* OK reset timeout".
so my question is is there any way to send command directly to server to set mail flag as "UNSEEN" like same as we can store flag as seen?
i cant find anything about it so please any help ....
i am using your library ..
these is all is my requirements to do with that other issues are still pending upon it please help me .
:(
|
|
|
|
 |
|
 |
You can set the flag by using -FLAG command which will remove the flag.
See example for how message is deleted by setting the delete flag. In that function, remove Deleted with Seen and replace +FLAG with -FLAG. Don't forget to remove expunge as it is not required.
|
|
|
|
 |
|
 |
ok..very very thanks it helps me a lot thank u very much i have read RFC but not paid attention on this ..
|
|
|
|
 |
|
 |
Hi, first: many thanks for your work!
However, I found a major bug in it:
The method ReceiveBuffer tries to receive nSize characters. It does so by calling StreamReader.Read with param nSize.
Problem is, that the stream may not be ready to deliver all the requested characters (when the message is very long), so that needs to be handled.
The same problem may occure with any attempt to receive a big size of characters from the stream.
To handle that issue, replace ReceiveBuffer method in ImapBase with:
protected int ReceiveBuffer(ref string sBuffer, int nSize)
{
int nRead = -1;
char[] cBuff = new Char[nSize + 1];
nRead = m_oRdStrm.Read(cBuff, 0, nSize);
while (nRead < nSize) {
Int32 nRest = nSize - nRead;
char[] cRestBuff = new Char[nRest + 1];
Int32 nRestRead = m_oRdStrm.Read(cRestBuff, 0, nRest);
Array.Copy(cRestBuff, 0, cBuff, nRead, nRestRead);
nRead += nRestRead;
if (nRestRead == 0) break;
}
string sTmp = new String(cBuff);
sBuffer = sTmp;
Log(LogTypeEnum.IMAP, sBuffer);
return nRead;
}
(the code was translated to vb.net and back)
Greetings,
CFloor
|
|
|
|
 |
|
 |
Sure, I will update the library with this fix.
Thx
|
|
|
|
 |
|
 |
Hi,
I needed to use this library to access gmail, so I implemented the use of SSL. Since I dont know where to upload the code, just drop me a note [dorphalsig NOSPAM AT NOSPAM gmail NOSPAM DOT NOSPAM COM
|
|
|
|
 |
|
 |
Can you please post your code as part of the comment or send me an email at rinku24@yahoo.com. I will try to include into this library.
Thx
|
|
|
|
 |
|
 |
can you post the code ?
JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
 |
|
 |
I was searching for a free library to take a look @ how its done.
God is a Sphere!
|
|
|
|
 |
|
 |
Hello,
i want to develop an application like email listener and i want to use IMAP protocol ,this is such nice library to use as i am new about this type of application..and i am facing some critical problems while fetching email attachments..server respond "*OK Reset time out" when email has more then 2 attachments .so wt i need to resolve this ?what is the problem ?is ther any time out for fetching attachments?
please help me about this somebody wake up ,i have lots of question about this library which is not posted rest of the posts..
please help me..
|
|
|
|
 |
|
 |
Can you send me the log? It seem server might have some timeout which could be causing that.
|
|
|
|
 |