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.