You should not post the same question to both (user/dev) mailing lists. 

You should not reply to both your question in both lists.

You should start looking at bundled mailet sources so you understand how
internal things works.

You can find a few component/service looked up in the service() method of
some mailet. You will find the name of that services and their interfaces.

I think you can accomplish your need by writing your own mailets but you
need to understand more of James before.

Look at the AvalonListservManager to see how a GenericListservManager is
bound to Avalon and its services/components:
---
UsersStore usersStore = (UsersStore)
compMgr.lookup("org.apache.james.services.UsersStore");
String repName = getInitParameter("repositoryName");

members = (UsersRepository) usersStore.getRepository(repName); 
---

Stefano

> -----Messaggio originale-----
> Da: Pietro Marrone [mailto:[EMAIL PROTECTED] 
> Inviato: giovedì 27 ottobre 2005 9.09
> A: James Users List
> Oggetto: Re: Comparing users from two mailing lists
> 
> Pietro Marrone wrote:
> 
> > Hello,
> > I have two mailing list, say "*A*" and "*B*", I need on 
> command (say 
> > sendind a mail to a special address) check all users 
> subscibed on list 
> > *A* and comparing with users on *B*, and on certein condition 
> > subscribe the *A* users on *B* list.
> >
> > I tryed both with mailet and extending baseCommand, but 
> both of them 
> > give me problems (al least I'm not able to complete the task):
> >
> > - With mailet I can't get the users from the lists
> > - Extending baseCommand I can get the users from the list where the 
> > command belongs but I can't get the users from the other list.
> >
> > Cuold anyone help me, I spend two days on this problem.
> >
> > Regards
> >
> 
> Why nobody help me?
> At least someone tell me what my question isn't evaluated
> 
> Regards
> 
> 
> ---------------------------------------------------------------------
> 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