You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Charles Benett <ch...@benett1.demon.co.uk> on 2001/08/03 10:32:01 UTC
Contributions (Was Re: cvs commit: jakarta-james/src/conf
spool.properties)
Oki DZ wrote:
>
> On Thu, 2 Aug 2001, Charles Benett wrote:
>
> > I haven't tried it, but it should be as simple as ./build.sh
> > -Dproposal.dir="${proposal.base}/okis-proposal" -Dwith.proposal=true
>
> I did that when I tried to use Serge's noparse-mimemessage. But that's
> the command for getting the appropriate files in the build directory (ie:
> not for submission).
>
> As I understand it, the proposal directories contain the source which
> would eventually become included in the distribution.
Correct
> I was thinking about
> a "contrib" directory, where the source files would be in there and be
> used according to the user's needs. For example, mailets. I believe that
> there would be more mailets being written (by non-committers), and I don't
> think that putting them all in the .sar file would be useful. So, the
> contrib directory would be a nice place to put them; and then have the
> mailets included by executing the build.sh command with the appropriate
> options.
>
> That's just about semantics (different rendering of the word "proposal"),
> though; if what is meant with "proposal" also represent what I meant with
> the "contrib" above, then there's no reason in creating a new directory.
> We can use what's already available. But... I don't think that creating a
> "contrib" directory would be costly. Besides, it would make ones more
> relaxed in submitting codes; they don't have to be committers.
>
> Well, I believe that I still have something missing; if you submit source
> files to the CVS, should the package names have "org.apache" in them? I
> guess not. If it is, then it's too restrictive. If the restriction should
> be in place, then the "contrib" might be an acceptable solution; so that
> ones could submit codes with any package names they like. And also, the
> submitted codes don't have to be working out of the box; eg: a submitter
> might upload a mail repository that expects totally different database
> schema for the repository table.
>
> The mail repository may not be needed by most of the James users, but
> somebody might badly need it given the same environment where James is
> expected to be run. Think about a mail repository that implements direct
> calls to MySQL client libraries via JNI (Java Native Interface) to speed
> things up. I believe such repository doesn't belong to the main branch in
> the CVS; the code wouldn't be that portable, tightly tied to the operating
> system where the repository should be run. But it would be really nice if
> the code is accessible by the James users at large, and it would need a
> nice place where to put it.
If the code is contributed to james, ie the copyright is assigned to the
Apache Software Foundation, then I think it should go in the main source
with an org.apache.james.* package. There is then a separate question
of comiling sars with the particular set of classes someone wants. But
the default distribution would probably have the whole lot.
If the copyright is not assigned to the ASF, I'm not sure we can include
it in the cvs repository. (We'd need to check, if that is what you are
proposing.) If we can't include it in the repository, maybe we could
have a webpage that lists james-compatible code and links to sites where
they can be downloaded.
Clearly, a straight contribution would be preferable.
>
> > BTW, what are you working on?
>
> MySQLMailRepository, MySQLSpoolRepository, and UsersMySQLRepository that
> implement Turbine's db connection pooling. The spool repository implements
> a global cache that temporarily stores the list of the messages that
> resides in the spool; so that when the spool repository's accept() method
> gets invoked (after the first invocation), there would be no additional
> SQL query sent to the db server. This would make the spool works faster I
> believe, even if the db pooling is already there.
In general, I have no problem with james having alternative
implementations, so long as there are good reasons for each one.
If you are happy to assign contribute the code to apache and people on
the list who know more about dbs than me agree, we could include your
stuff as well as Serge's.
Charles
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org
Re: Contributions (Was Re: cvs commit: jakarta-james/src/conf spool.properties)
Posted by Peter Donald <do...@apache.org>.
On Fri, 3 Aug 2001 18:32, Charles Benett wrote:
> If the copyright is not assigned to the ASF, I'm not sure we can include
> it in the cvs repository. (We'd need to check, if that is what you are
> proposing.)
Nope you can not unless it is never worked upon/changed by Apache peoples
(like SAX or JAXP classes) however even then they have to be under a license
that is usable by Apache.
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org
Re: Contributions (Was Re: cvs commit: jakarta-james/src/conf spool.properties)
Posted by Harmeet <ha...@kodemuse.com>.
> BTW, I'm not quite familiar with CVS; what is the exact command to have
> the diff files? I have tried okidz@bdg:~/jakarta-james$cfs diff -u, but I
> don't think that it's the right command. I have some new classes too. I
> don't know how to take them into account.
If you use emacs cvs-mode-diff-cvs would help.
Don't know the command line syntax, but http://www.cvshome.org/ should help.
Harmeet
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org
Re: Contributions (Was Re: cvs commit: jakarta-james/src/conf spool.properties)
Posted by Oki DZ <ok...@pindad.com>.
On Fri, 3 Aug 2001, Charles Benett wrote:
> If the code is contributed to james, ie the copyright is assigned to the
Yes, that's what I've been thinking.
> Apache Software Foundation, then I think it should go in the main source
> with an org.apache.james.* package.
I see.
>There is then a separate question
> of comiling sars with the particular set of classes someone wants. But
> the default distribution would probably have the whole lot.
>
> If the copyright is not assigned to the ASF, I'm not sure we can include
> it in the cvs repository. (We'd need to check, if that is what you are
> proposing.) If we can't include it in the repository, maybe we could
> have a webpage that lists james-compatible code and links to sites where
> they can be downloaded.
This would be too much trouble, I think
> Clearly, a straight contribution would be preferable.
Quite understandable.
> In general, I have no problem with james having alternative
> implementations, so long as there are good reasons for each one.
One of my reasons was to provide proof of concept code. I don't think that
quickly implementing new ideas on the main branch is a good thing; eg:
temporary storage on local filesystems for James which uses db
repositories. The feature might be good, but is it the right solution?
Couldn't it be regarded as half cooked? Think about not just a temporary
file storage but also a cache that automatically retrieves all the rest of
the data once a user tries to fetch the mail via POP; meaning: when the
pop server sending out a message, it also retrieves the rest in the
background. If there were 10 messages left, then there would be 10
concurrent connections to the database. But then again, that scenario
would be good if the db server and James were in separate machines. If in
a single machine, that wouldn't be appropriate.
On the other hand, I have some unproven ideas that I'd like to be
implemented; ie: the use of a global cache that temporarily stored message
names in the spool repository, so that each invocation of accept() method
doesn't have to execute a query to the db server. Asking in this list
so that the feature can be implemented is the right thing to do. But if I
have time to implement it, that would make the implementation faster,
right? Problem is, the differences in the code is not only in
JDBCMail/SpoolRepository, but also in some other classes. Quickly
integrating it with James, even with the classes in the proposals
directory, is not quite acceptable. But of course, I'd like others to test
my code.
> If you are happy to assign contribute the code to apache and people on
> the list who know more about dbs than me agree, we could include your
> stuff as well as Serge's.
I think I'm going to test my code and let it running for a while. Then I'm
going to rename the package names, create some diff files, and send it to
you.
BTW, I'm not quite familiar with CVS; what is the exact command to have
the diff files? I have tried okidz@bdg:~/jakarta-james$cfs diff -u, but I
don't think that it's the right command. I have some new classes too. I
don't know how to take them into account.
Oki
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org