Ok, you completely misunderstood. Simply send the POP3 command UIDL to the server, take the resulting list of message numbers and UID's in the format of msgnum, space, UID. The UID has a format of (Davide correct me if I'm wrong, this is from the local mail name format) stime-seqnr.pid.hostname. If you sort the UID list by the stime-seqnr segment ascending, the message numbers will be in LIFO order, I believe you can even RETR UID to get the message without even using message number (although I may be wrong, I don't do much POP3 without a MUA or component written to do most of the work for me, why waste time reinventing the wheel).
Thanks, Chuck Frolick ArgoNet, Inc. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Devoyon Guillaume Sent: Friday, June 27, 2003 11:08 AM To: [EMAIL PROTECTED] Subject: [xmail] Re: LIFO format ? well, you are all right except one thing what my program is for..... My script is made in order to read email to pop server in live throw slow flow connections (9600bds). So, i will not tell to my program to load all mails (if there are 200) and next, sort them. The thing is that commercials emails programs like lotus notes or exchange have this option of lifo but not xmail (not commercial it's right ;-) ) So i'm looking if i could sort mails without collecting them via my program best regards Guillaume -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Charles Frolick Envoye : vendredi 27 juin 2003 17:25 A : [EMAIL PROTECTED] Objet : [xmail] Re: LIFO format ? I forgot about that, it wouldn't take much at all to fix the script. I'm also sure there is a MUA out there that does everything he is looking for without him writing a single line of code. Thanks, Chuck Frolick ArgoNet, Inc. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Davide Libenzi Sent: Friday, June 27, 2003 10:00 AM To: [EMAIL PROTECTED] Subject: [xmail] Re: LIFO format ? It's even easier. The first token ( '.' separator ) of the UID is the message timestamp. Sorting can be done with one line of perl code. It is obviously easier to upload work on the server though. I don't think so. - Davide - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
