Page 2 of 23

Posted: Tue Jan 03, 2006 11:00 am
by gnozal
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.

Posted: Tue Jan 03, 2006 8:15 pm
by fsw
@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

Posted: Wed Jan 04, 2006 9:04 am
by gnozal
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: Select all

      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.

Posted: Mon Jun 19, 2006 12:39 pm
by gnozal
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.

Posted: Mon Jul 03, 2006 1:12 am
by jpd
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

Posted: Mon Jul 03, 2006 9:49 am
by gnozal
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.

debug File

Posted: Mon Jul 03, 2006 11:30 am
by jpd
Hi Gnozal,

The debug-file was send on your email account.

jpd

Re: debug File

Posted: Mon Jul 03, 2006 1:23 pm
by gnozal
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.

Posted: Mon Jul 03, 2006 1:45 pm
by jpd
Hi Gnozal,

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


Best

jpd

Posted: Mon Jul 03, 2006 2:07 pm
by gnozal
Update (both libs)

- fixed the boundary problem (I hope)

Posted: Mon Jul 03, 2006 2:57 pm
by jpd
Hi Gnozal,

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

Thanks very much!

jpd

Posted: Thu Aug 10, 2006 2:16 am
by klaver
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.

Posted: Thu Aug 10, 2006 7:57 am
by gnozal
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.

Posted: Thu Aug 10, 2006 8:52 pm
by klaver
When will be next version?

Posted: Fri Aug 11, 2006 7:37 am
by gnozal
klaver wrote:When will be next version?
When I have some time ... When it's done ...