Unix Programming - POP3 TOP command

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > May 2007 > POP3 TOP command





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author POP3 TOP command
chsalvia@gmail.com

2007-05-20, 7:19 am

The RFC which describes POP3 seems to be a bit uninformative when it
comes to the TOP command. I realize the point of TOP is so that the
client only needs to download a few lines from the server, rather than
an entire email message. But what constitutes a line? The RFC seems
to imply that all email messages are neatly delineated by CRLF pairs.
But an email message can go on for paragraphs sometimes without a
CRLF. So what is a "line" then? Can TOP be implemented by simply
picking an arbitrary number of characters, and counting that as a
line? Or do POP3 servers always parse email messages so that the body
of the message is divided up by CRLF pairs?

Barry Margolin

2007-05-20, 1:23 pm

In article <1179650011.594153.124490@n59g2000hsh.googlegroups.com>,
chsalvia@gmail.com wrote:

> The RFC which describes POP3 seems to be a bit uninformative when it
> comes to the TOP command. I realize the point of TOP is so that the
> client only needs to download a few lines from the server, rather than
> an entire email message. But what constitutes a line? The RFC seems
> to imply that all email messages are neatly delineated by CRLF pairs.
> But an email message can go on for paragraphs sometimes without a
> CRLF. So what is a "line" then? Can TOP be implemented by simply
> picking an arbitrary number of characters, and counting that as a
> line? Or do POP3 servers always parse email messages so that the body
> of the message is divided up by CRLF pairs?


Section 3 says:

Responses to certain commands are multi-line. In these cases, which
are clearly indicated below, after sending the first line of the
response and a CRLF, any additional lines are sent, each terminated
by a CRLF pair.

That seems to be the only definition of "line" in the RFC.

BTW, why are you asking a network protocol question in a Unix newsgroup?
comp.protocols.tcp-ip would seem to be more appropriate.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com