imap extension, pop3 and UIDL, is it possible?
Posted 05 October 2006 - 10:19 PM
Quick question, is there any way, at all, to get the UIDL data from a pop3 server using just the php imap extension functions?
I’m currently using PEAR's Net_POP3 package to get the e-mails, and this returns the UIDL successfully. However that package isn’t as feature rich as the imap extension, so I’m still having to use other packages and functions to perform additional tasks (such as Mail_mime).
If I can use the imap extension I would like to, but I don’t want to do it unless I can do the whole job with it. I don’t want to write my own function or use another class to get the UIDL data, as that requires making two connections to the mail server, and is generally pretty sloppy.
Thanks in advance,
Posted 05 October 2006 - 10:33 PM
$obj_header = imap_headerinfo ( $box, $number ); $uidl = $obj_header->message_id;
Please understand PHP gives you core functions, but that does not mean you can not do the some thing some other way that the core doesn't support, sometimes your made up way will even be 5X to 10X faster than the core way! In this case it shouldn't case a problem, because I would think you still need the header info, so it wouldn't be a extra function call!
Posted 05 October 2006 - 10:38 PM
I read somewhere that the author said it simply cannot be done, but i know thats wrong seeing as the PEAR packages can do it, and you can very easily get the UIDLs using telnet or something.
Posted 05 October 2006 - 10:59 PM
Posted 05 October 2006 - 11:05 PM
Posted 05 October 2006 - 11:15 PM
Posted 05 October 2006 - 11:21 PM
Posted 05 October 2006 - 11:40 PM
Posted 06 October 2006 - 06:53 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users