From mime4j-dev-return-1545-apmail-james-mime4j-dev-archive=james.apache.org@james.apache.org Fri Jun 17 09:43:10 2011 Return-Path: X-Original-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B36A44B29 for ; Fri, 17 Jun 2011 09:43:10 +0000 (UTC) Received: (qmail 46199 invoked by uid 500); 17 Jun 2011 09:43:10 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 46174 invoked by uid 500); 17 Jun 2011 09:43:10 -0000 Mailing-List: contact mime4j-dev-help@james.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mime4j-dev@james.apache.org Delivered-To: mailing list mime4j-dev@james.apache.org Received: (qmail 46166 invoked by uid 99); 17 Jun 2011 09:43:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 09:43:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 09:43:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7CA7E41D661 for ; Fri, 17 Jun 2011 09:42:47 +0000 (UTC) Date: Fri, 17 Jun 2011 09:42:47 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: mime4j-dev@james.apache.org Message-ID: <2137469600.14318.1308303767507.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <455698579.63101.1303038245845.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MIME4J-193) Being able to write a message using dom api with no dependencies on the message package MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MIME4J-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050946#comment-13050946 ] Oleg Kalnichevski commented on MIME4J-193: ------------------------------------------ MimeWriter as a specific implementation of MessageFormatter makes no sense to me of what so ever. Oleg > Being able to write a message using dom api with no dependencies on the message package > --------------------------------------------------------------------------------------- > > Key: MIME4J-193 > URL: https://issues.apache.org/jira/browse/MIME4J-193 > Project: JAMES Mime4j > Issue Type: Wish > Components: dom > Affects Versions: 0.7 > Reporter: Stefano Bagnara > Fix For: 0.8 > > > While refactoring jDKIM against the latest mime4j trunk I found that the code now depends on "message" package because of MimeWriter.DEFAULT.writeTo calls. > At the same time I see we now have MessageServiceFactory.newMessageFormatter and MessageFormatter interface that expose a writeTo(Message, OutputStream) method: why don't we expose all of the other writeTo methods from MimeWriter, too? (and maybe MimeWriter should implement MessageFormatter so we don't need the MessageFormatterImpl class at all) > WDYT? -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira