--===============0242380959== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by pch.mit.edu id k6FG6VDK028576 Tamas, Looks easy enough. Wish I knew what I was doing. Thanks, Ray On Sat, 15 Jul 2006 16:42:37 +0100, Tamas Rudnai wrote: >=A0Take a look at that RFC I have mentioned. > >=A0ftp://ftp.rfc-editor.org/in-notes/rfc1225.txt > > >=A0They wrote an example POP3 Session, I had extended it a bit with >=A0some comments for you: > >=A0S: >=A0... >=A0C: >=A0S: =A0 =A0+OK dewey POP3 server ready (Comments to: >=A0PostMaster@UDEL.EDU) C: =A0 =A0USER mrose S: =A0 =A0+OK mrose is a re= al >=A0hoopy frood C: =A0 =A0PASS secret >=A0S: =A0 =A0+OK mrose's maildrop has 2 messages (320 octets) C: =A0 =A0= STAT >=A0S: =A0 =A0+OK 2 320 > >=A0now you know you have two messages in the server... > >=A0C: =A0 =A0LIST >=A0S: =A0 =A0+OK 2 messages (320 octets) >=A0S: =A0 =A01 120 >=A0S: =A0 =A02 200 > >=A0OK, so you know the size of the messages, you can select any >=A0message that exceeds the size of x to be deleted, or read it: > >=A0S: =A0 =A0. >=A0C: =A0 =A0RETR 1 >=A0S: =A0 =A0+OK 120 octets >=A0S: =A0 =A0 >=A0S: =A0 =A0. > >=A0...or use TOP command: > >=A0C: =A0 =A0TOP 1 >=A0S: =A0 =A0+OK >=A0S: =A0 =A0=A0message, a blank line, and the first 10 lines of the body of the >=A0message>=A0S: =A0 =A0. > >=A0Now delete that message > >=A0C: =A0 =A0DELE 1 >=A0S: =A0 =A0+OK message 1 deleted > >=A0...and continue iteration till you have finished with all mails... > >=A0C: =A0 =A0RETR 2 >=A0S: =A0 =A0+OK 200 octets >=A0S: =A0 =A0 >=A0S: =A0 =A0. >=A0C: =A0 =A0DELE 2 >=A0S: =A0 =A0+OK message 2 deleted >=A0C: =A0 =A0QUIT >=A0S: =A0 =A0+OK dewey POP3 server signing off (maildrop empty) C: =A0=A0connection>=A0S: =A0 > >=A0That's as simple as that, just a matter of text parsing and to >=A0conversion from ascii to numeric (number of messages, size etc) > >=A0Regards, > >=A0Tamas --===============0242380959== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 7bit -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --===============0242380959==--