Hi Stefano,

You're welcome :-)

I had no idea my problem would be useful for you, but I'm glad it is.
Anyway, thanks for committing the patch. Maybe it would be a better idea if I 
use an official release instead of the trunk code. I'll check for a release tag 
inside the subversion repository.

Regards,

Gregory
 

-----Message d'origine-----
De : Stefano Bagnara [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 10 mai 2006 18:29
À : James Users List
Objet : Re: POP3Server : STAT command not working !

Hi Gregory,

thank you for testing our "trunk" code. As you already seen we are applying few 
refactorings and I introduced this regression. Our tests didn't include the 
STAT command test and my manual POP3 session to test everything was working did 
not include a STAT command.

Btw I only missed to add the StatCmdHandler declaration in the default
POP3 configuration. I just committed a patch for this and now it should work 
again!

Thank you again for reporting this!

Stefano

Grégory Chazalon wrote:
> Hi,
>  
> I have set up a James instance from the source code in the main trunk 
> (Subversion repository).
> I'm able to send email by SMTP, but I cannot retrieve them using the POP3 
> protocol. 
> I get an error when trying to synchronize my Outlook Express, and the problem 
> seems to be the 'STAT' command that follows user authentication. It is simply 
> unknown by James (actually in the runtime configuration, since the class 
> STATCommandHandler is there in the jars).
>  
> Here is the log I got from the POP3Server :
>  
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> ----------------------------
> 10/05/06 15:56:05 INFO  pop3server: Added Commandhandler: 
> org.apache.james.pop3server.QuitCmdHandler
> 10/05/06 15:56:05 INFO  pop3server: Added Commandhandler: 
> org.apache.james.pop3server.TopCmdHandler
> 10/05/06 15:56:05 INFO  pop3server: Added Commandhandler: 
> org.apache.james.pop3server.UserCmdHandler
> 10/05/06 15:56:05 INFO  pop3server: Added Commandhandler: 
> org.apache.james.pop3server.ListCmdHandler
> 10/05/06 15:56:05 INFO  pop3server: Added Commandhandler: 
> org.apache.james.pop3server.UidlCmdHandler
> 10/05/06 15:56:05 INFO  pop3server: Added Commandhandler: 
> org.apache.james.pop3server.PassCmdHandler
> 10/05/06 15:56:05 INFO  pop3server: Added Commandhandler: 
> org.apache.james.pop3server.DeleCmdHandler
> 10/05/06 15:56:05 INFO  pop3server: Added Commandhandler: 
> org.apache.james.pop3server.RetrCmdHandler
> 10/05/06 15:56:05 INFO  pop3server: Added Commandhandler: 
> org.apache.james.pop3server.NoopCmdHandler
> 10/05/06 15:56:05 INFO  pop3server: Added Commandhandler: 
> org.apache.james.pop3server.RsetCmdHandler
> 10/05/06 15:56:05 DEBUG pop3server: POP3 Service init...
> 10/05/06 15:56:05 DEBUG pop3server: POP3 Service ...init end
> 10/05/06 15:56:05 INFO  pop3server: POP3 Service started plain:110
> 10/05/06 15:56:05 DEBUG pop3server: Using a bounded pool for POP3 
> Service handlers with upper limit 30
> 10/05/06 15:57:18 DEBUG pop3server: Retrieving a 
> org.apache.james.pop3server.POP3Handler from the pool
> 10/05/06 15:57:18 DEBUG pop3server: Getting Handler from pool.
> 10/05/06 15:57:18 INFO  pop3server: Connection from localhost 
> (127.0.0.1)
> 10/05/06 15:57:21 DEBUG pop3server: Sent: +OK adv-gchazalon POP3 
> server (JAMES POP3 Server 2.3-dev) ready
> 10/05/06 15:57:21 DEBUG pop3server: Calling start()
> 10/05/06 15:57:21 DEBUG pop3server: Command received: USER jack
> 10/05/06 15:57:21 DEBUG pop3server: Lookup command handler for 
> command: USER
> 10/05/06 15:57:21 DEBUG pop3server: Sent: +OK
> 10/05/06 15:57:21 DEBUG pop3server: Calling reset() for inactive 
> watchdog
> 10/05/06 15:57:21 DEBUG pop3server: Command received: PASS <password 
> omitted>
> 10/05/06 15:57:21 DEBUG pop3server: Lookup command handler for 
> command: PASS
> 10/05/06 15:57:21 DEBUG pop3server: Watchdog default Worker #6 has 
> time to sleep 120000
> 10/05/06 15:57:21 DEBUG pop3server: Sent: +OK Welcome jack
> 10/05/06 15:57:22 DEBUG pop3server: Calling reset() default Worker #6
> 10/05/06 15:57:22 DEBUG pop3server: Command received: STAT
> 10/05/06 15:57:22 DEBUG pop3server: Lookup command handler for 
> command: STAT
> 10/05/06 15:57:22 DEBUG pop3server: Sent: -ERR
> 10/05/06 15:57:22 DEBUG pop3server: Calling reset() default Worker #6
> 10/05/06 15:57:22 DEBUG pop3server: Calling stop() default Worker #6
> 10/05/06 15:57:22 INFO  pop3server: Connection for jack from localhost 
> (127.0.0.1) closed.
> 10/05/06 15:57:22 DEBUG pop3server: Closing socket.
> 10/05/06 15:57:22 DEBUG pop3server: Calling disposeWatchdog() default 
> Worker #6
> 10/05/06 15:57:22 DEBUG pop3server: Returning Handler to pool.
> 10/05/06 15:57:22 DEBUG pop3server: Returning a 
> org.apache.james.pop3server.POP3Handler to the pool
> 10/05/06 15:57:22 DEBUG pop3server: Watchdog default Worker #6 is exiting 
> run().
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> ----------------------
>  
> Note that the STATCommandHandler is not added to command handlers at startup, 
> which might be the cause of my problem.
>  
> Is it normal that my configuration does not support this command ?
> Does anyone have a clue ? 
>  
> Thanks in advance.
>  
>  
> Gregory


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to