You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by philguillard <ph...@gmail.com> on 2006/03/28 04:39:28 UTC

Re: »Ø¸´£º how to add users in a programming way?

Hi,

I suggest a DB repository, then you just need an O/R mapping or 
something to add users in the database.

<mailet match="RecipientIsRegex=list-*@domain.org" class="JDBCListserv">
	<data_source>maildb</data_source>
	<members_query>select email from MEMBER where mailinglist = 
?)</members_query>
	<cache_settings>false</cache_settings>
</mailet>

Phil

-=Kobye=- wrote:
> thanks.
> 
> But I can not find UserRepository in james java docs or mailet java docs .
> 
> Can you give more detail?
> 
> --
> I love Java!
> I love Sports!
> I love this Game !
> 
> home:http://www.jsports.org
> blog:
>     http://blog.csdn.net/jsports
>     http://blog.matrix.org.cn/page/jsports
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: »Ø¸´£º how to add users in a programming way?

Posted by Pierre Smits <pi...@gmail.com>.
The quirk is that passwords are generated in a James specific way. Therefore
the exact code for password generation in James must be used in your
programm to generate the passwords.

I am currently also programming a web based solution to do some delegated
user and mail management.

Regards,

Pierre

On 3/28/06, -=Kobye=- <ww...@gmail.com> wrote:
>
> hi,Phil,
>
> you mean, we  can directly operate the DB,
> when using   a DB repository?
> It sounds a good ide.
> I will try it.
>
>
> thanks
>
> Best Wishes
>
> >
> >
>
>
> --
> I love Java!
> I love Sports!
> I love this Game !
>
> home:http://www.jsports.org
> blog:
>     http://blog.csdn.net/jsports
>     http://blog.matrix.org.cn/page/jsports
>
>

Re: »Ø¸´£º how to add users in a programming way?

Posted by -=Kobye=- <ww...@gmail.com>.
 It sounds a better way.
 I will try too.

--
I love Java!
I love Sports!
I love this Game !

home:http://www.jsports.org
blog:
    http://blog.csdn.net/jsports
    http://blog.matrix.org.cn/page/jsports

Re: »Ø¸´£º how to add users in a programming way?

Posted by Bernd Fondermann <be...@googlemail.com>.
alternatively, you could use the RemoteManager commands (adduser,
deluser) programmatically.

see: http://james.apache.org/adding_users_2_1.html

On 3/28/06, -=Kobye=- <ww...@gmail.com> wrote:
>  hi,Phil,
>
> you mean, we  can directly operate the DB,
> when using   a DB repository?
>
> It sounds a good ide.
> I will try it.
>
>
> thanks
>
> Best Wishes
>
> >
> >
>
>
> --
> I love Java!
> I love Sports!
> I love this Game !
>
> home:http://www.jsports.org
> blog:
>     http://blog.csdn.net/jsports
>     http://blog.matrix.org.cn/page/jsports
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: »Ø¸´£º how to add users in a programming way?

Posted by -=Kobye=- <ww...@gmail.com>.
 hi,Phil,

you mean, we  can directly operate the DB,
when using   a DB repository?

It sounds a good ide.
I will try it.


thanks

Best Wishes

>
>


--
I love Java!
I love Sports!
I love this Game !

home:http://www.jsports.org
blog:
    http://blog.csdn.net/jsports
    http://blog.matrix.org.cn/page/jsports