You can use this module for working with pop3 servers. It support koi-8 codepage,attachments,decoding a titles with base64 and UUEncode methods. you can easy add new codepage with only 1-2 lines of code
now see the example file (button 'decoder' used for decoding messages and retriving correct text and attachments)
Changelog:0.4
Some bugs fixed and added optimizations to Client-Server process
_________________________
0.3
First public release
________________________________________________________________ SMTPClient
Version 0.2b
You can use this module for working with smtp servers. It support authorisation, koi-8 codepage, attachments.
Warning
This is BETA version, does not support messages with attachments and has some bugs
Changelog:
0.2b
Adding algorithm for retrieving your public IP adress (it cost ~0.6kb and can be switch off-use property 'GetIpAtConnect').
Some bugs fixed and now server doesn't add SPAM label to our letters:sign0161:
_________________________
0.1b
First public release
I will test it this evening. I see from your description that it supports downloading attachments as well. This mean, I guess, that you have included MIME-support. Well done.
I will also try it on my device. I wrote some time ago a test project/application handling SMTP-POP3 on my device. It worked nicely apart from getting errors when downloading larger attachments (for instance a 3.5 MB mp3-song). The errors were out-of-memory errors. I needed to sort out the buffering/saving of the stream but I never resolved it. I also managed to get it to work with SSL for use with GMail (google) but I never finished this project (like many others). :sign0161:
I wrote an SMTP mailer for B4P a while ago...if someone is interested, i can post it here.It currently supports LOGIN method only, but this is supported by almost all SMTP.The code can be easily extended, the only issue will be TLS/SSL, where i do not have a lib for.Of course i wrote a POP3 retriever as well...but since here is already one posted, probably another one is not needed...
I still haven't tried your code on my device but in my test-application which I wrote months ago, I got out-of-memory exceptions when downloading large attachments. But I guess, I would get the error also afterwards when I would decode the attachment.
But as I said in my previous post, this was surely due to my code and due to the fact I was doing this on the device with limited memory. In order to resolve that, I would need to edit the code and make sure to not keep all the data in memory. The download pipe is a stream so I would need to load the data in chunks. When writing the file, I would have a stream and I could write it a chunk at a time. But as I said, I never got around to adapt my code and I abandoned the project.