hat jemand Erfahrung mit Gnozal's PurePOP3 library? Ich habe es bisher nicht geschafft, Attachments zu speichern.
Die Funktion PurePOP3_GetMessageInfo() zeigt mir zwar an, dass ich ein Attachment habe, jedoch wird dieses mit PurePOP3_ListAttachementsForMessage() und PurePOP3_SaveAttachementsToFile("") nicht erkannt und nicht gespeichert. Das zur Library mitgelieferte Beispiel meldet immer "No attachments".
Code: Alles auswählen
Connected
You have 1 messages(s)
Message(s) total size : 17909 bytes
Message 1 size : 17909 bytes
Retrieve message 1
--------------
Message info : Delivery-date: Wed, 6 Jun 2007 23:17:38 +0200 Subject: A test From: Me <from@address.domain.tld> Attachements:1 Length:17930
Message text :
Its a test ...
--------------
No attachments
Hier noch die Log-Datei vom Debug-Modus der Lib
Code: Alles auswählen
RECEIVE : +OK POP3 My.Server.Name minipop server ready
SEND : USER MyUsername
RECEIVE : +OK User name accepted, password please
SEND : PASS MySecretPassword
RECEIVE : +OK Mailbox open, 1 messages
SEND : STAT
RECEIVE : +OK 1 17900
SEND : LIST 1
RECEIVE : +OK 1 17900
SEND : RETR 1
- RECEIVED (Buffer) : 6544 BYTES
<dump>
+OK 17900 octets
Return-Path: from@address.domain.tld>
Date: Wed, 6 Jun 2007 00:00:49 +0200
From: Me <from@address.domain.tld>
To: to@address.domain.tld
Subject: A test
Message-Id: <1234567890@myMessageId>
Organization:
Mime-Version: 1.0
Content-Type: multipart/mixed;
boundary="Multipart=_Wed__6_Jun_2007_23_01_49_+0200_m_aM2uZhWmf=enXL"
Status: RO
This is a multi-part message in MIME format.
--Multipart=_Wed__6_Jun_2007_23_01_49_+0200_m_aM2uZhWmf=enXL
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Its a test ...
--Multipart=_Wed__6_Jun_2007_23_01_49_+0200_m_aM2uZhWmf=enXL
Content-Type: image/png;
name="pic.png"
Content-Disposition: attachment;
filename="pic.png"
Content-Transfer-Encoding: base64
iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAB3RJTUUH1QcMCgIz9qDC1gAAIABJ
...
WZM1WZM1WZM1Wa++/n+m5FAVEbfsYgAAAABJRU5ErkJggg==
--Multipart=_Wed__6_Jun_2007_23_01_49_+0200_m_aM2uZhWmf=enXL--
.
</dump>
* END OF COM [CRLF . CRLF]
* RECEIVED (TOTAL) : 17921 BYTES
* DUMP n°0 in file <PurePOP3-DEBUG-RETR-000.txt>
SEND : QUIT
RECEIVE : +OK See you later!
Besten Dank,
Horst
(WinXP, Purebasic 4.0.1)