From mime4j-dev-return-1394-apmail-james-mime4j-dev-archive=james.apache.org@james.apache.org Sun Apr 17 10:28:46 2011 Return-Path: Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: (qmail 32709 invoked from network); 17 Apr 2011 10:28:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Apr 2011 10:28:46 -0000 Received: (qmail 17493 invoked by uid 500); 17 Apr 2011 10:28:46 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 17441 invoked by uid 500); 17 Apr 2011 10:28:46 -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 17253 invoked by uid 99); 17 Apr 2011 10:28:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Apr 2011 10:28:45 +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; Sun, 17 Apr 2011 10:28:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CA2C8A5F41 for ; Sun, 17 Apr 2011 10:28:05 +0000 (UTC) Date: Sun, 17 Apr 2011 10:28:05 +0000 (UTC) From: "Stefano Bagnara (JIRA)" To: mime4j-dev@james.apache.org Message-ID: <829382767.63076.1303036085824.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (MIME4J-191) API doesn't expose anymore a method to write out header fields 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 API doesn't expose anymore a method to write out header fields -------------------------------------------------------------- Key: MIME4J-191 URL: https://issues.apache.org/jira/browse/MIME4J-191 Project: JAMES Mime4j Issue Type: Bug Components: dom Affects Versions: 0.7 Reporter: Stefano Bagnara Fix For: 0.7 jDKIM used this code to convert a List (mime4j) into a List of folded headers Strings: ---- private List convertFields(List res) { List res2 = new LinkedList(); for (Field f : res) { ByteArrayOutputStream bos = new ByteArrayOutputStream(); String field = null; try { f.writeTo(bos); field = new String(bos.toByteArray()); } catch (IOException e) { } res2.add(field); } return res2; } ----- I checked out MimeWriter but it doesn't expose any "Field" related writer. What API replaces the Field.writeTo method? -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira