It is currently Wed May 22, 2013 7:19 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 336 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 23  Next
Author Message
 Post subject:
PostPosted: Tue Jan 03, 2006 11:00 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
netmaestro wrote:
I've played with it some and I must say it is two thumbs up. Very easy to use and gets the job done nicely.

Thanks.
netmaestro wrote:
One thing I noticed though, is that PurePOP3_GetMessageInfo() reports one attachment for a message that does not have any files attached. I'm guessing the message itself is counted as an attachment? Do we have to subtract 1 from that number to get the number of attached files? btw, thanks for the nice lib!

To find attachements, the lib is searching for boundaries. The problem is, when a message has different content types like 'plain text' and 'html text', it also has boundaries. I have to do some researches to find all possible content types to distinguish between text coding alternatives and real attachements.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 03, 2006 8:15 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1115
Location: North by Northwest
@Gnozal,
maybe I didn't make myself clear enough.

The text is 3 chars short.
So if the text is:
"Hello 1"
I get:
"Hell"

If PurePOP3_GetMessageSize() returns the value obtained with the POP3 'LIST' command, would this mean that the mail server reports less than it actually is?
What can be done about it?
The PurePOP3-DEBUG-RETR.txt file has all the text that was sent...

Another question: How to open a POP3 connection if there is a proxy?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 04, 2006 9:04 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
fsw wrote:
If PurePOP3_GetMessageSize() returns the value obtained with the POP3 'LIST' command, would this mean that the mail server reports less than it actually is?
What can be done about it?
Strange, I never had this problem.
And yes, PurePOP3_GetMessageSize() returns the value obtained with the POP3 'LIST' command, nothing more, nothing less.
Code:
      SendAMessage("LIST " + Str(MessageNumber) + #CrLf)
      Response = WaitForCompleteMessage()
      ; '+OK MessageNb Size' -> +OK 48 1832
      If Left(Response, 3) = #PurePOP3_Response_OK
        RValue = Val(StringField(Response, 3, " "))
      Else
        RValue = #PurePOP3_BadResponse
      EndIf
Does the PurePOP3_GetMessageTextInMemory() function work ?
fsw wrote:
The PurePOP3-DEBUG-RETR.txt file has all the text that was sent...
Perhaps because PurePOP3_RetrieveMessage() allocates 1000 more bytes than PurePOP3_GetMessageSize() returns.
fsw wrote:
Another question: How to open a POP3 connection if there is a proxy?
I don't know ... I never got anything to work. All the forum examples don't work or only if the proxy supports the 'connect' method wich is disabled for obvious security reasons by many system administrators.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 19, 2006 12:39 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
Update [both libs : PB3.94 and PB4.00]

A lot of code updated

Changes :
- some bugs fixed
- better attachment handling
- better multipart/mixed/alternative... message handling
- retrieve plain or html text, quoted-printable
or base64 encoded

Still beta status ; use trace mode to help debugging.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 03, 2006 1:12 am 
Offline
Enthusiast
Enthusiast

Joined: Fri May 21, 2004 3:31 pm
Posts: 151
Hi Gnozal,

with the library pure_pop3 for PB4 is not possible to save a coded 8bit/base64 attachment.
if you use the function

PurePOP3_ListAttachementsForMessage()

the function return "no attachment".

tested with the code example PurePop3_Test1.pb.


any idea?

Best
jpd


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 03, 2006 9:49 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
jpd wrote:
Hi Gnozal,

with the library pure_pop3 for PB4 is not possible to save a coded 8bit/base64 attachment.
if you use the function

PurePOP3_ListAttachementsForMessage()

the function return "no attachment".

any idea?

Best
jpd
Without an example, no : I need to see the raw e-mail message. Could you post (or PM me) a dump of the file ?
Use PurePOP3_Trace(#True) before your code and send me the PurePOP3-DEBUG*.txt files.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: debug File
PostPosted: Mon Jul 03, 2006 11:30 am 
Offline
Enthusiast
Enthusiast

Joined: Fri May 21, 2004 3:31 pm
Posts: 151
Hi Gnozal,

The debug-file was send on your email account.

jpd


Top
 Profile  
 
 Post subject: Re: debug File
PostPosted: Mon Jul 03, 2006 1:23 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
jpd wrote:
Hi Gnozal,

The debug-file was send on your email account.

jpd
Thanks.
I found the problem : PurePOP3 doesn't find the message boundary.
It should be like : boundary="ThisIsTheBoundary"
In your message, it is boundary=ThisIsTheBoundary (the quotes are missing) ; I don't know if this is complient with the POP3 specifications.

Anyway, I will change the code to handle this.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 03, 2006 1:45 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri May 21, 2004 3:31 pm
Posts: 151
Hi Gnozal,

I have to thanks for the fast reply and analyse of this problem!


Best

jpd


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 03, 2006 2:07 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
Update (both libs)

- fixed the boundary problem (I hope)

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 03, 2006 2:57 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri May 21, 2004 3:31 pm
Posts: 151
Hi Gnozal,

super! the new library solve the problem with base64 coded mail.

Thanks very much!

jpd


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 2:16 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 28, 2006 6:55 pm
Posts: 145
Location: Schröttersburg
Hi, your lib is just great.

Will there be a possibility to view the status of downloading messages (and attachments) ?
Something like PurePOP3_GetBytesDownloaded().

It would be nice to see something like that in a ProgressBar.
Especially with emails and/or attachments bigger than <for example> 10MB.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 7:57 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
klaver wrote:
Hi, your lib is just great.

Will there be a possibility to view the status of downloading messages (and attachments) ?
Something like PurePOP3_GetBytesDownloaded().

It would be nice to see something like that in a ProgressBar.
Especially with emails and/or attachments bigger than <for example> 10MB.
I will think about it for the next version.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 8:52 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 28, 2006 6:55 pm
Posts: 145
Location: Schröttersburg
When will be next version?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 11, 2006 7:37 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
klaver wrote:
When will be next version?
When I have some time ... When it's done ...

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 336 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 23  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye