Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

pop3Client module

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-03-2010, 12:25 PM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Talking pop3Client ans SMTPClient modules

POP3Client
Version 0.4


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
_________________________
0.1b
First public release


p.s. Thanks Agraham for help and bibls!
Attached Files
File Type: zip pop3Client.zip (3.6 KB, 38 views)
File Type: zip smtpClient.zip (2.8 KB, 30 views)
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;

Last edited by Byak@ : 08-13-2010 at 12:29 PM.
Reply With Quote
  #2 (permalink)  
Old 08-05-2010, 11:01 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Italy
Posts: 599
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi,

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).
__________________
rgds,
moster67
Reply With Quote
  #3 (permalink)  
Old 08-05-2010, 08:01 PM
Senior Member
 
Join Date: Apr 2008
Location: Duesseldorf, Germany
Posts: 154
Default

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...


regards,

TWELVE
Reply With Quote
  #4 (permalink)  
Old 08-06-2010, 02:20 PM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

2TWELVE)
your pop3 retriever can dowload a large attachments on device? (see post of moster67)

2Moster67
hi) when you have this error? when download a message or when decode and save attachments?
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
  #5 (permalink)  
Old 08-06-2010, 02:55 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Italy
Posts: 599
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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.

Quote:
Originally Posted by Byak@ View Post
2TWELVE)
your pop3 retriever can dowload a large attachments on device? (see post of moster67)

2Moster67
hi) when you have this error? when download a message or when decode and save attachments?
__________________
rgds,
moster67
Reply With Quote
  #6 (permalink)  
Old 08-13-2010, 12:27 PM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Can anyone (maybe Erel) rename this thread to "POP3Client and SMTPClient modules"?
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Properties module - useful module for working with properties / ini files Erel Code Samples & Tips 2 10-13-2011 09:02 PM
ExcelWriter Module v1.0 Cableguy Share Your Creations 6 07-15-2010 04:16 PM
Module Change Name doesn't (quite)! agraham Bug Reports 1 12-06-2009 05:29 PM
Results To Other Module ceaser Questions (Windows Mobile) 7 05-29-2009 04:10 PM
FolderChooser als Module Paulsche German Forum 2 04-03-2009 08:39 PM


All times are GMT. The time now is 07:19 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0