 |
|
 |
Hi,
I am looking for a way to cycle through a POP3 emailbox and just get all attachments from all the emails in this box, and then delete the emails.
Is this possible with this codeproject ?
In the demo files it only mentions there are attachments, but doesn't do anything with it.
I preffer it to be a non-GUI commandline tool, just fetching the emails and save all attachments in a folder.
|
|
|
|
 |
|
 |
Hello everybody,
I used this library for one of my windows service and it works fine on my local machine. But when i try to install it on one of our server it throws following exception and making the service to stop. Please help me.
RecieveCallback errorThe I/O operation has been aborted because of either a thread exit or an application requeststack trace: at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at Tecture.LibPOP3.POP3.ReceiveCallback(IAsyncResult ar).
-Thanks
|
|
|
|
 |
|
 |
Just wanted to say thanks for the great library! There were a few bugs to track down, which have been talked about in other posts, but on the whole this is really useful (and will save me a load of effort in other projects). Couldn't get the demonstration project to work at all, but that doesn't really matter so long as the library itself works. Cheers for posting.
|
|
|
|
 |
|
 |
this line:
client.Connect( remoteEP);
throws an exception, but none of both objects are null ?
|
|
|
|
 |
|
 |
I'm using this class in a web environment. I've fixed this error un-commenting the line:
tClient.Join();
Now the question is: My server gives back an error, the string is "500 STAT command unrecognized". It give us to two problems:
1. What command is your lib using and isn´t recognized?
2. Your lib doesn´t take it as an error because it doesn´t start with "-ERR"
if(lastMsg.StartsWith("-ERR")) //if there is an error
Can you help me, please?
|
|
|
|
 |
|
 |
when i use your demo and select action->receive menu ,ProgressBar Is completed but i cant see anything in grid .why?
i change server and username and pasword only. is it enought?
|
|
|
|
 |
|
 |
SUAR KA BACHHA.
SAALA CODE KAAM HI NAHI KARTA HAI.
ATTACHMENTS DOWNLOAD TO DOOOOR KA BAAT HAI.
ITS WORTHLESS CODE.
pLEASE DON'T WASTE TIME EXPLORING IT.
mustafa
|
|
|
|
 |
|
|
 |
|
 |
original code :
if(tmp.msgSize==(tmp.retrSize-3))
modified code :
if(tmp.msgSize <= tmp.retrSize)
Test Mail info. :
Char-set : ks_c_5601-1987
Encoding : Base64
|
|
|
|
 |
|
 |
Yep - I just found/fixed that same bug. There's another one too:
Line 224 and 232 both have the same issue. StringBuilder.Append is used with "SomeString" + crlf - crlf is a char arry and so doesn't cast to string implicitly correctly. Split it into 2 s.Append statements and it's all good though.
if(delAfterRead && numMsg>0) //we want to delete them from server
{
state=STATE.DELE;
delMsg=1;
s.Append("DELE ");
s.Append(delMsg);
s.Append(crlf);
Send(client ,s.ToString());
}
else //leave them and disconnect
{
state=STATE.ENDRETR;
error="Session ended\r\n";
s.Append("QUIT ");
s.Append(crlf);
Send(client,s.ToString());
}
|
|
|
|
 |
|
 |
hi there. i'd like to ask if i will be able to use this library using vb.net webforms? would appreciate feedback. thanks.
|
|
|
|
 |
|
 |
Dear All,
I am looking for a Open Source C# for POP3 with attachment base on .Net framework 1.1 and special support HTML encode/decode if everyone know where on internet can download that open source.
Thank you advance,
TungBui
|
|
|
|
 |
|
|
 |
|
 |
Dear sir,
I have a problem when i connect to server get message and message error notify as follow could you tell me how to with that bugs,
Many thanks
RecieveCallback errorSystem.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at PramodSingh.LibPOP3.POP3.ReceiveCallback(IAsyncResult ar) in d:\dot net examples\email\pop3demo_src\pop3demo\cpop3.cs:line 349
|
|
|
|
 |
|
 |
I'm having a little problem with PramodKumarSingh mail problem.
In the constructor POP3(string UserName,string Password,string Server,bool DelAfterRead) I set the DelAfterReader = true, but the messages still stay in pop3 server and I can download them in my Outlook. Any help would be great.
Thanks,
Agus
|
|
|
|
 |
|
 |
Hi,
How to call the attachment method.I called it by giving a msgnumber =1 and checked for it.It says object reference not set.Pls let me know the complete implementation of Attachment of a File.
msgnumber=1
Pop3Client.SaveAttachments(msgNumber,dirPath);
thanks
dhinesh
Dhinesh
|
|
|
|
 |
|
 |
How can I implement a secure connection to a POP3-Server. Like in Outlook or Outlook express, there you can can connect to the POP3-Server on port 995 via SSL.
thx
|
|
|
|
 |
|
 |
Open source:
http://www.mentalis.org/soft/projects/ssocket/
|
|
|
|
 |
|
 |
this is a nice library, thx.
just 1 thing, i couldn't get the message's attachment. instead, i got the following:
This is a multimedia message in MIME . If you are reading this
prefix, your mail reader does not understand MIME. You may wish
to look into upgrading to a newer version of your mail reader.
--1881377853-9657367461-5441971988:=76309
Content-type: image/tiff; name="fax_1.tif"
Content-Transfer-Encoding: base64
--1198177853-9657367461-5441971988:=76309--
|
|
|
|
 |
|
 |
Overall this code is a great starting point as someone pointed out. I have the SoftArtisans POP3 Beta 2 dated 12 June 2002 w/source; this was designed as an Asp.Net component, I was planning on using it on my web site but haven’t as of yet. The code is no longer supported and SoftArtisans has said that this should become a community project. I don’t know about its suitability for Windows Apps; which is why I’m looking for better code like this project that can be fixed if we all work together. I’d be glad to share my fixes as I make them; I’m working on the Attachments now.
A few things I found odd:
//check if this is attachment or not
private bool IsAttachment(string src)
{
int where = src.IndexOf("Content-Disposition:");
changed it to
int where = src.IndexOf("Content-Type: multipart/alternative;");
. . .
I know this isn’t right but it works for this one attachment; I have a feeling that I don’t know enough about the POP3 protocol and I’m going to have to learn it even though this isn’t what I want to do, I’m off on the beaten path of the work I stated.
private void ParseMessage()
. . .
case STATE.RETR:
. . .
if(tmp.msgSize == (tmp.retrSize - 3))
changed it to
if(tmp.msgSize < (tmp.retrSize - 3))
As mentioned by someone else the problem appears to be the size reported but the fix gets me passed this issue but the problem remains.
Email me if you want.
Lessons learned from 911:
1. United We Stand.
2. United’s We Fall.
Gulf War Syndrome survivors never have a good day. http://www.vetshelpcenter.com/
|
|
|
|
 |
|
 |
Jeffrey, can u give me the SoftArtisans POP3 Beta 2 dated 12 June 2002 w/source because the site didn't support for download any more? thanks
|
|
|
|
 |
|
 |
Sorry I haven't checked back on this in a while and didn’t get the notice? Here is a link to SoftArtisans POP3 Beta 2 dated 12 June 2002 its 609kb; http://www.binarybit.net/Portals/_BinaryBitNet/Download/sapop3.zip
Lessons learned from 911:
1. United We Stand.
2. United’s We Fall.
Gulf War Syndrome survivors never have a good day. http://www.vetshelpcenter.com/
|
|
|
|
 |
 | Please  |  | Surya sekhar Bhattacharya | 18:04 3 Nov '04 |
|
 |
Jeffrey can you please give me the source code which u got from
softartisans.com since the site does't allow for downloads any more.
|
|
|
|
 |
|
 |
Sorry I haven't checked back on this in a while and didn’t get the notice? Here is a link to SoftArtisans POP3 Beta 2 dated 12 June 2002 its 609kb; http://www.binarybit.net/Portals/_BinaryBitNet/Download/sapop3.zip
Lessons learned from 911:
1. United We Stand.
2. United’s We Fall.
Gulf War Syndrome survivors never have a good day. http://www.vetshelpcenter.com/
|
|
|
|
 |
|
 |
Actually I think you need to search for "Content-Disposition: attachment" in the IsAttachment(string) method.
I used fetchmail and procmail to download some POP3 emails so I can see the raw data. There are examples of "Content-Disposition: inline" which is the message text. So you should specifically search for the "attachment" string.
|
|
|
|
 |