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

Reply via email to