I understand now. The UIDL capa is listed correctly but only after a login
(in TRANSACTION state). So everything is fine with James.

It looks it is the client that access the James server that does not takes
in account the capabilities listed in TRANSACTION state. I'm using JavaMail
to access the pop3 server. The java mail POP3Folder does *not* return a
messageUID:
http://javamail.kenai.com/nonav/javadocs/com/sun/mail/pop3/POP3Folder.html#getUID%28javax.mail.Message%29




On Wed, Nov 14, 2012 at 10:56 AM, Jan Chaloupecky <[email protected]> wrote:

> Actually, how come that the UIDL is not listed in the CAPA even though the
> UidlCmdHandler() is added ? The UidlCmdHandler implements the
> CapaCapability so it should be visible, shouldn't it ?
>
>
> On Wed, Nov 14, 2012 at 10:29 AM, Jan Chaloupecky <[email protected]>wrote:
>
>> Hi,
>> I have a james pop3 server and it does support the UIDL command but the
>> default implementation of the CapaCmdHandler does not list the UIDL as a
>> available command.
>>
>> How can I add this capability to my server?
>>
>> I suppose I have to implement my own CapaCmdHandler but this leads me to
>> the question how to add one command handler to the POP3ProtocolHandlerChain
>> ? Currently I instantiate the POP3ProtocolHandlerChain using :
>>
>> > POP3ProtocolHandlerChain pop3ProtocolHandlerChain2 = new
>> POP3ProtocolHandlerChain(myPassHandler);
>>
>> This adds a list of the remaining default command handlers. If I just
>> want to add one custom command handler, am I supposed to add them ALL
>> manually ? e.g.
>>
>> > POP3ProtocolHandlerChain pop3ProtocolHandlerChain = new
>> POP3ProtocolHandlerChain();
>> > // this is the only custom handler
>> > pop3ProtocolHandlerChain.add(new MyCapaCmdHandler());
>> > // rest are defaults
>> > pop3ProtocolHandlerChainadd(new UserCmdHandler());
>> > pop3ProtocolHandlerChainadd(new ListCmdHandler());
>> > pop3ProtocolHandlerChainadd(new UidlCmdHandler());
>> > ...
>>
>>
>> cheers
>> --
>> Jan
>>
>
>
>
> --
> Jan
>



-- 
Jan

Reply via email to