🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.programmer
Article #161

Re: Problems with blocking socket

#161
From: Manish Jethani
Date: Mon, 11 Feb 2002 14:37
18 lines
1515 bytes
Rosinger wrote:

>                 out.print (username + "\n");

If you really want to auth, it should be:
                  out.print("USER " + username
                    + "\r\n"); /* end with \r\n */

>                 while ((line = in.readLine()) != null)

The USER command of pop3 will return just a single line.  And
the connection does not get closed (unlike in HTTP), so you
should read just one line and don't wait for EOF
(readLine() == null).

Check the POP3 rfc - http://www.ietf.org/rfc/rfc1939.txt .

Manish
Technical Details
Message-ID: <3C67D724.C0EF5565@yahoo.com>
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!203.129.234.34!not-for-mail
References: <3C67B406.1070407@optushome.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,610ca5e9d6f87bb8
X-Google-Attributes: gid10d6db,public
X-Google-Thread: 10a146,610ca5e9d6f87bb8
X-Google-Attributes: gid10a146,public
X-Google-ArrivalTime: 2002-02-11 06:38:15 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!203.129.234.34!not-for-mail
From: Manish Jethani <manish0x00@yahoo.com>
Newsgroups: comp.lang.java.programmer,aus.computers.java
Subject: Re: Problems with blocking socket
Date: Mon, 11 Feb 2002 20:07:24 +0530
Lines: 18
Message-ID: <3C67D724.C0EF5565@yahoo.com>
References: <3C67B406.1070407@optushome.com.au>
NNTP-Posting-Host: 203.129.234.34
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: fu-berlin.de 1013438293 47574889 203.129.234.34 (16 [55764])
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en