[jira] Updated: (MIME4J-16) Allow exceptions from a ContentHandler

2007-05-24 Thread Jukka Zitting (JIRA)

 [ 
https://issues.apache.org/jira/browse/MIME4J-16?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jukka Zitting updated MIME4J-16:


Fix Version/s: 0.4

Sounds reasonable. Tagged this for 0.4

 Allow exceptions from a ContentHandler
 --

 Key: MIME4J-16
 URL: https://issues.apache.org/jira/browse/MIME4J-16
 Project: Mime4j
  Issue Type: Improvement
Reporter: Jukka Zitting
 Assigned To: Norman Maurer
 Fix For: 0.4

 Attachments: MimeException.patch


 There is currently no good way for a Mime4j ContentHandler to indicate that 
 it has failed to process a message event and that no further events should be 
 generated. Compare this with for example the SAX ContentHandler interface 
 that allows implementing classes to throw SAXExceptions.
 Being able to throw such processing exceptions is important for example for a 
 handler that wants to incrementally store a message in a backend store like a 
 relational database or a JCR content repository.
 My proposal is to add a new MimeException exception class and allow it to be 
 thrown from any of the ContentHandler methods. Such a change would be 
 incompatible with any parser and other classes that call the ContentHandler 
 methods (even indirectly, for example through the MimeStreamParser class), 
 but existing classes that implement the ContentHandler interface would not be 
 affected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Commented: (MIME4J-5) Mime4j takes really long to parse big messages

2007-05-24 Thread Jukka Zitting (JIRA)

[ 
https://issues.apache.org/jira/browse/MIME4J-5?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498611
 ] 

Jukka Zitting commented on MIME4J-5:


Any active progress on this? I might want to take a shot at fixing this.

 Mime4j takes really long to parse big messages
 --

 Key: MIME4J-5
 URL: https://issues.apache.org/jira/browse/MIME4J-5
 Project: Mime4j
  Issue Type: Bug
Affects Versions: 0.3
Reporter: Norman Maurer
 Assigned To: Niklas Therning
 Fix For: 0.4


 From ml:
 Mime4j has general demonstrable performance problems:
 http://buni.org/bugzilla/show_bug.cgi?id=137
 http://blog.buni.org/blog/mbarker/Meldware/2007/01/27/Look-out-Its-behind-you
 I'd suggest a general code review for the byte at a time + buffered input 
 stream anti-pattern
 and general refactoring to do things in blocks where possible.
 -Andy

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r541332 - in /james/mime4j/trunk/stage/org.apache.james: jars/maven-skin-1.1.jar poms/james-parent-1.1.pom poms/james-project-1.1.pom poms/maven-skin-1.1.pom xmls/james-parent-1.1-site.xml

2007-05-24 Thread norman
Author: norman
Date: Thu May 24 08:43:03 2007
New Revision: 541332

URL: http://svn.apache.org/viewvc?view=revrev=541332
Log:
Add official jars/pom/xml

Added:
james/mime4j/trunk/stage/org.apache.james/jars/maven-skin-1.1.jar   (with 
props)
james/mime4j/trunk/stage/org.apache.james/poms/james-parent-1.1.pom   (with 
props)
james/mime4j/trunk/stage/org.apache.james/poms/james-project-1.1.pom   
(with props)
james/mime4j/trunk/stage/org.apache.james/poms/maven-skin-1.1.pom   (with 
props)
james/mime4j/trunk/stage/org.apache.james/xmls/james-parent-1.1-site.xml   
(with props)
james/mime4j/trunk/stage/org.apache.james/xmls/james-project-1.1-site.xml   
(with props)

Added: james/mime4j/trunk/stage/org.apache.james/jars/maven-skin-1.1.jar
URL: 
http://svn.apache.org/viewvc/james/mime4j/trunk/stage/org.apache.james/jars/maven-skin-1.1.jar?view=autorev=541332
==
Binary file - no diff available.

Propchange: james/mime4j/trunk/stage/org.apache.james/jars/maven-skin-1.1.jar
--
svn:mime-type = application/octet-stream

Added: james/mime4j/trunk/stage/org.apache.james/poms/james-parent-1.1.pom
URL: 
http://svn.apache.org/viewvc/james/mime4j/trunk/stage/org.apache.james/poms/james-parent-1.1.pom?view=autorev=541332
==
--- james/mime4j/trunk/stage/org.apache.james/poms/james-parent-1.1.pom (added)
+++ james/mime4j/trunk/stage/org.apache.james/poms/james-parent-1.1.pom Thu May 
24 08:43:03 2007
@@ -0,0 +1,385 @@
+?xml version=1.0 encoding=UTF-8?
+project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
+  !--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+License); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+  --
+  modelVersion4.0.0/modelVersion
+  groupIdorg.apache.james/groupId
+  artifactIdjames-parent/artifactId
+  nameApache JAMES Parent POM/name
+  version1.1/version
+  description
+The Apache JAMES Parent POM
+  /description
+
+  prerequisites
+maven2.0.6/maven
+  /prerequisites
+  
+  modules
+modulemaven-skin/module
+moduleproject/module
+  /modules
+
+  urlhttp://james.apache.org//url
+  inceptionYear2006/inceptionYear
+  packagingpom/packaging
+
+  dependencies
+  /dependencies
+
+  organization
+nameThe Apache Software Foundation/name
+urlhttp://www.apache.org/url
+  /organization
+
+  licenses
+license
+  nameApache License, Version 2.0/name
+  urlhttp://www.apache.org/licenses/LICENSE-2.0.html/url
+  distributionrepo/distribution
+/license
+  /licenses
+
+  issueManagement
+systemJIRA/system
+urlhttp://issues.apache.org/jira/browse/JAMES/url
+  /issueManagement
+
+  developers
+developer
+  idbago/id
+  nameStefano Bagnara/name
+  emailbago at apache.org/email
+  timezone2/timezone
+  roles
+roleDeveloper/role
+  /roles
+/developer
+developer
+  idnorman/id
+  nameNorman Maurer/name
+  emailnorman at apache.org/email
+  timezone2/timezone
+  roles
+roleDeveloper/role
+  /roles
+/developer
+developer
+  idserge/id
+  nameSerge Knystautas/name
+  emailsergek at lokitech.com/email
+  timezone /
+  roles
+roleDeveloper/role
+  /roles
+/developer
+developer
+  idbenrdf/id
+  nameBernd Fondermann/name
+  emailbf_jak at brainlounge.de/email
+  timezone /
+  roles
+roleDeveloper/role
+  /roles
+/developer
+developer
+  idsbrewin/id
+  nameSteve Brewin/name
+  emailsbrewin at synsys.com/email
+  timezone /
+  roles
+roleDeveloper/role
+  /roles
+/developer
+developer
+  idhilmer/id
+  !-- This is not correctly handled by maven release plugin --
+  !-- nameS#248;ren Hilmer/name --
+  nameSoren Hilmer/name
+  emailsh at widetrail.dk/email
+  timezone /
+  roles
+roleDeveloper/role
+  /roles
+/developer
+

svn commit: r541340 - /james/mime4j/trunk/pom.xml

2007-05-24 Thread norman
Author: norman
Date: Thu May 24 09:02:12 2007
New Revision: 541340

URL: http://svn.apache.org/viewvc?view=revrev=541340
Log:
[maven-release-plugin] prepare release apache-mime4j-0.3

Modified:
james/mime4j/trunk/pom.xml

Modified: james/mime4j/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/james/mime4j/trunk/pom.xml?view=diffrev=541340r1=541339r2=541340
==
--- james/mime4j/trunk/pom.xml (original)
+++ james/mime4j/trunk/pom.xml Thu May 24 09:02:12 2007
@@ -30,7 +30,7 @@
   groupIdorg.apache.james/groupId
   artifactIdapache-mime4j/artifactId
   nameApache JAMES Mime4j/name
-  version0.3-SNAPSHOT/version
+  version0.3/version
   descriptionJava stream based MIME message parser/description
   urlhttp://james.apache.org/mime4j/url
   issueManagement
@@ -44,9 +44,9 @@
 /site
   /distributionManagement
   scm
-
connectionscm:svn:http://svn.apache.org/repos/asf/james/mime4j/trunk/connection
-
developerConnectionscm:svn:https://svn.apache.org/repos/asf/james/mime4j/trunk/developerConnection
-urlhttp://svn.apache.org/viewvc/james/mime4j/trunk//url
+
connectionscm:svn:http://svn.apache.org/repos/asf/james/mime4j/tags/apache-mime4j-0.3/connection
+
developerConnectionscm:svn:https://svn.apache.org/repos/asf/james/mime4j/tags/apache-mime4j-0.3/developerConnection
+urlhttp://svn.apache.org/viewvc/james/mime4j/tags/apache-mime4j-0.3/url
   /scm
   build
 plugins



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r541341 - in /james/mime4j/tags/apache-mime4j-0.3: ./ pom.xml

2007-05-24 Thread norman
Author: norman
Date: Thu May 24 09:02:21 2007
New Revision: 541341

URL: http://svn.apache.org/viewvc?view=revrev=541341
Log:
[maven-release-plugin]  copy for tag apache-mime4j-0.3

Added:
james/mime4j/tags/apache-mime4j-0.3/
  - copied from r541332, james/mime4j/trunk/
james/mime4j/tags/apache-mime4j-0.3/pom.xml
  - copied unchanged from r541340, james/mime4j/trunk/pom.xml


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r541342 - /james/mime4j/trunk/pom.xml

2007-05-24 Thread norman
Author: norman
Date: Thu May 24 09:02:27 2007
New Revision: 541342

URL: http://svn.apache.org/viewvc?view=revrev=541342
Log:
[maven-release-plugin] prepare for next development iteration

Modified:
james/mime4j/trunk/pom.xml

Modified: james/mime4j/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/james/mime4j/trunk/pom.xml?view=diffrev=541342r1=541341r2=541342
==
--- james/mime4j/trunk/pom.xml (original)
+++ james/mime4j/trunk/pom.xml Thu May 24 09:02:27 2007
@@ -30,7 +30,7 @@
   groupIdorg.apache.james/groupId
   artifactIdapache-mime4j/artifactId
   nameApache JAMES Mime4j/name
-  version0.3/version
+  version0.4-SNAPSHOT/version
   descriptionJava stream based MIME message parser/description
   urlhttp://james.apache.org/mime4j/url
   issueManagement
@@ -44,9 +44,9 @@
 /site
   /distributionManagement
   scm
-
connectionscm:svn:http://svn.apache.org/repos/asf/james/mime4j/tags/apache-mime4j-0.3/connection
-
developerConnectionscm:svn:https://svn.apache.org/repos/asf/james/mime4j/tags/apache-mime4j-0.3/developerConnection
-urlhttp://svn.apache.org/viewvc/james/mime4j/tags/apache-mime4j-0.3/url
+
connectionscm:svn:http://svn.apache.org/repos/asf/james/mime4j/trunk/connection
+
developerConnectionscm:svn:https://svn.apache.org/repos/asf/james/mime4j/trunk/developerConnection
+urlhttp://svn.apache.org/viewvc/james/mime4j/trunk//url
   /scm
   build
 plugins



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JAMES v Java 6

2007-05-24 Thread Noel J. Bergman
Please note that JAMES will not build with Java 6 unless Mordred is removed
or updated.  Incompatible changes in JDBC.

--- Noel



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Nightly builds and deprecation warnings

2007-05-24 Thread Stefano Bagnara
Noel J. Bergman ha scritto:
 The log size crept up again, over 100K to about 110K.  I am turning off
 deprecation warnings for the nightly build, which cuts the report size by
 about 50%.  That will permit the messages to be posted to the list again.
 This change is only a command line change for the script, nothing in SVN.
 
   --- Noel

Thank you,
Stefano


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[VOTE] mime4j and james-project

2007-05-24 Thread Norman Maurer
Hi all,

I finally found the time todo the releases for mime4j and james-project.
I will try to add a small HOWTO later for the release stuff with maven.

So please review and vote:
http://people.apache.org/~norman/staging-repository/


mime4j:

-1 [  ]
+0 [  ]
+1 [  ]


james-project:

-1 [  ]
+0 [  ]
+1 [  ]

bye
Norman


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [VOTE] mime4j and james-project

2007-05-24 Thread Noel J. Bergman
Norman Maurer wrote:

 I finally found the time todo the releases for mime4j

Does it build with Ant?

 and james-project.

Why is this something that needs to be and should be released?

--- Noel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JAMES v Java 6

2007-05-24 Thread Norman Maurer
Thx for the info :-)

bye
Norman


Noel J. Bergman schrieb:
 Please note that JAMES will not build with Java 6 unless Mordred is removed
 or updated.  Incompatible changes in JDBC.

   --- Noel



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 !DSPAM:1,4655b75779385358399506!


   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to determine incoming mails and outgoing mails.

2007-05-24 Thread Norman Maurer
Hi,

maybe you can use the HostIsLocal matcher. See:

http://james.apache.org/server/2.3.1/provided_matchers.html

bye
Norman

ketanbparekh schrieb:
 Hi all,

 I am using james 2.3.0 along with jsieve to filter mails. We will be using
 two sieve script files one for filtering incoming mails(for detecing spam
 content and other such stuffs) and one for outgoing mails(to check whether
 any confidential information is not going out for enterprise).


 How can it be determined whether the mail is incoming or outgoing so as the
 corresponding filter will be invoked.?

 Also what to do for scenarios if mail is sent to some users of local domain
 while some of remote domain.?

 Thanks in Advance,
 Ketan.B.Parekh

   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JAMES v Java 6

2007-05-24 Thread Stefano Bagnara
Noel J. Bergman ha scritto:
 Please note that JAMES will not build with Java 6 unless Mordred is removed
 or updated.  Incompatible changes in JDBC.
 
   --- Noel

Right.
Also the SSL support does not work with Java6.

Stefano


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [VOTE] mime4j and james-project

2007-05-24 Thread Stefano Bagnara
Noel J. Bergman ha scritto:
 Norman Maurer wrote:
 
 I finally found the time todo the releases for mime4j
 
 Does it build with Ant?

No, mime4j has always been a maven project. I moved it from maven1 to
maven2 more than 1 year ago when revamping our website.

 and james-project.
 
 Why is this something that needs to be and should be released?

It is the abstract project from which every of our m2 projects
inherits. It contains common infrastructure for JAMES projects.

If you don't know Maven2 just thing that it is object oriented so we are
able to place common things in a single place without repeating
everything in each of our projects.

Currently Mime4j and jSPF builds depend on james-project but also every
other of our product depends on it for the website part.

Stefano


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [VOTE] mime4j and james-project

2007-05-24 Thread Stefano Bagnara
Norman Maurer ha scritto:
 Hi all,
 
 I finally found the time todo the releases for mime4j and james-project.
 I will try to add a small HOWTO later for the release stuff with maven.
 
 So please review and vote:
 http://people.apache.org/~norman/staging-repository/
 
 
 mime4j:
 
 +1 [X] Stefano Bagnara

 james-project:
 
 +1 [X] Stefano Bagnara

I verified that they are java 1.4 compatible (v48), verified a couple of
signatures and verified contents.

I just noticed that we created a source.jar and a sources.jar files:
they differ because the source.jar is only a collection of java source
files in the src/main folder instead sources.jar is intended to be used
for debugging and include also (javacc/jjtree) generated java files.

I don't care too much if we release both or only one of them: in my
intention there was the sources.jar (with generated stuff) but maven2
also did the source when using the release profile (I forgot about
this when preparing)

I didn't test the code at all because I don't use mime4j in any project
so I'm not able to test this.

Thank you so much for taking care of this 2 years old pending release,
Stefano

PS: IMO you could have even used a single vote because mime4j
includes/depends on james-project and we can't release it without
releasing james-project first.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



UsersRepository w/ SSL SOAP service

2007-05-24 Thread Michael Valenty

I am running James 2.3.1 and JDK 1.5.0_11. While attempting to invoke an ssl
web service from MyUsersRepository to authenticate user credentials, I get
the following error:

javax.net.ssl.SSLKeyException: RSA premaster secret error

I do not get this error when calling the web service from a test client,
only in the context of MyUsersRepository.
-- 
View this message in context: 
http://www.nabble.com/UsersRepository-w--SSL-SOAP-service-tf3813480.html#a10795114
Sent from the James - Dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JAMES v Java 6

2007-05-24 Thread Kevin Jackson

Right.
Also the SSL support does not work with Java6.


Has anyone found out what's causing this problem? I recall it was
something to do with the available algorithms and some internal change
from Java5 - Java6.

It's not great having 2 vms on our server (Java5 for james, and Java6
for tomcat)

Kev

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [VOTE] mime4j and james-project

2007-05-24 Thread Noel J. Bergman
Stefano Bagnara wrote:
 Noel J. Bergman ha scritto:
  Norman Maurer wrote:
 I finally found the time todo the releases for mime4j
 Does it build with Ant?
 No, mime4j has always been a maven project. I moved it from maven1 to
 maven2 more than 1 year ago when revamping our website.

Well, then I can't vote for it in its current form, because I don't install
maven.

 and james-project.
 Why is this something that needs to be and should be released?
 It is the abstract project from which every of our m2 projects
 inherits. It contains common infrastructure for JAMES projects.

But why does it need to be released?  What is the point of releasing it?  If
it is for building, then they can check it out of SVN.  We are releasing jar
files and a source snapshot.

 Currently Mime4j and jSPF builds depend on james-project but also every
 other of our product depends on it for the website part.

That's for doing a build.  I don't see this james-project thing as an actual
release component.

--- Noel



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]