Posted: Thu Jan 11, 2007 4:58 pm
Very *very* nice lib 
Is there anyway you could add a function to grab the complete header text (rather than having to examine the memory buffer).
eg:
Being able to parse the header easily would be great for checking against spam lists, etc

Is there anyway you could add a function to grab the complete header text (rather than having to examine the memory buffer).
eg:
Code: Select all
PurePOP3_GetMessageHeader()
Get header from retrieved message.
Must be used after PurePOP3_RetrieveMessage().
Returned values :
- String like 'Return-Path: <xxx@xxx.com><9>X-Original-To: xx@xxx.com<9>Delivered-To: xxx@xxx-xxx.xxx.com<9>Organization: xxx<9>Content-Type: text/plain; charset=us-ascii'
where <9> is TAB (ASCII code 9)
- Empty string : error
Example
If PurePOP3_RetrieveMessage(MessageNumber.l) > 0
Debug "Header info : " + PurePOP3_GetMessageHeader()
EndIf