Article View: be.comp.programming
Article #11640Re: Q: POP3 Protocol
From: Wimjan
Date: Tue, 29 Jan 2002 14:23
Date: Tue, 29 Jan 2002 14:23
42 lines
2533 bytes
2533 bytes
SLE schreef: >Ben een kleine mail-checker aan het schrijven, die nagaat hoeveel mails er >op een POP3 host klaar staan via een socket op poort 110 en de commando's >STAT en LIST - werkt prima. Ik zou echter ook de mail headings van elk >bericht willen analyseren om de FROM en SUBJECT informatie te visualeren. > >Probleem: het RETR x commando haalt het volledige bericht op. Bestaat er dus >een soort break commando om het RETR commando na x bytes te cancellen? > Waarom gebruik je het commando 'top' niet? <citaat van http://www.cs.cf.ac.uk/Dave/Internet/node93.html> TOP msg n -- valid in the TRANSACTION state. If the POP3 server issues a positive response, then the response given is multi-line. After the initial +OK, the POP3 server sends the headers of the message, the blank line separating the headers from the body, and then the number of lines indicated message's body, being careful to byte-stuff the termination character (as with all multi- line responses). Note: that if the number of lines requested by the POP3 client is greater than than the number of lines in the body, then the POP3 server sends the entire message. </citaat> 'top 1 0' lijkt alleen de headers terug te geven, precies wat je wilt. Omdat top niet gegarandeerd hoeft te zijn geimplementeerd op elke pop3- server is het wellicht een idee om dat eerst even te testen. Werkt het (dwz je krijgt een OK terug) dan gebruik je het, werkt het niet dan zul je toch het hele bericht moeten ophalen. >Thanks, > >SLE Groet, Wimjan -- Wil je je website gratis, snel en eenvoudig opgeven bij ~25 zoekmachines? Probeer dan eens <http://inventio.nl/~wjsubmit>
Technical Details
Message-ID:
<MPG.16c0b82af852b01e989e0c@news.cis.dfn.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!fluweelblad.leidenuniv.NL!not-for-mailReferences:
<3c5695df$0$75156$ba620e4c@news.skynet.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: fcea4,d0f1a727837584c7 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2002-01-29 06:23:52 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!fluweelblad.leidenuniv.NL!not-for-mail From: news@spambait.virtualave.net (Wimjan) Newsgroups: be.comp.programming Subject: Re: Q: POP3 Protocol Date: Tue, 29 Jan 2002 15:23:47 +0100 Lines: 42 Message-ID: <MPG.16c0b82af852b01e989e0c@news.cis.dfn.de> References: <3c5695df$0$75156$ba620e4c@news.skynet.be> NNTP-Posting-Host: fluweelblad.leidenuniv.nl (132.229.149.131) Content-Type: text/plain; charset=ISO-8859-1 X-Trace: fu-berlin.de 1012314228 39242377 132.229.149.131 (16 [23630]) X-Newsreader: MicroPlanet Gravity v2.12