In my program, I'm sending a command: "TOP X 200" to a POP3 server, for every mail from a given mailbox (X is the number of the mail), because I want to gather information about the mail's subject and attachment name. But in a lot of cases I don't need all these 200 lines because information I need are in, let's say, first 80 lines of a response for such a TOP command. While reading the response from the server, if I will find out that I already have the information I need and there are still 120 lines to read - do I must read them or is there a way to stop reading and going to the next mail? If so, how to do it and is it at least worth anything?
Bookmarks