From mime4j-dev-return-1140-apmail-james-mime4j-dev-archive=james.apache.org@james.apache.org Thu Dec 16 17:00:51 2010 Return-Path: Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: (qmail 66393 invoked from network); 16 Dec 2010 17:00:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Dec 2010 17:00:50 -0000 Received: (qmail 87265 invoked by uid 500); 16 Dec 2010 17:00:50 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 87219 invoked by uid 500); 16 Dec 2010 17:00:49 -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 87211 invoked by uid 99); 16 Dec 2010 17:00:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Dec 2010 17:00:48 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tonyzakula@gmail.com designates 209.85.212.49 as permitted sender) Received: from [209.85.212.49] (HELO mail-vw0-f49.google.com) (209.85.212.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Dec 2010 17:00:41 +0000 Received: by vws5 with SMTP id 5so1428069vws.22 for ; Thu, 16 Dec 2010 09:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=dH7nBEUL3kR6LXyE/cukGmz5jNKVP0fjRWCwbVr7Xco=; b=GKn7tUyR7NtBVZqKJDNd0If+xFQRal5LUeUk+J8S2JxhZdXMtsV4V8Xg54pjXWruYq m9tcYQjNgFy0jezre0VcGocvjZeXTq8zkHHG3ldnfgboDLicV5q9gmJTGmzeEx11Gc4L 31pNw9j/dizbzNxru6YM2XFBXE+d/EKzGenm0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kAvh6HX/Of0fBzulgbkuoFgls3n4BC3/menUmnxqaHYuaTKGS8uxN+gvn0ivcjtxdz ul1piQJ9Nh8yYlzWryVIyct+hTAk949A6uNDFHh31XAvYW94ayFtbq4swE224Oax6fyl dHStHEC7SRCrA0upc8Tcj/lF36N+pZQha5Kcs= MIME-Version: 1.0 Received: by 10.229.218.210 with SMTP id hr18mr1810266qcb.220.1292518820836; Thu, 16 Dec 2010 09:00:20 -0800 (PST) Received: by 10.229.127.22 with HTTP; Thu, 16 Dec 2010 09:00:20 -0800 (PST) Date: Thu, 16 Dec 2010 11:00:20 -0600 Message-ID: Subject: Best way to build a parser? From: Tony Zakula To: mime4j-dev@james.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hi, I recently downloaded Mime4J. I used it in conjunction with the Rhino Javascript engine to build a prototype. I took an email saved to a file from an email server, and using the example program that builds a Java tree as an example, I built a JSON object that matches the tree for the same message. My next task would be to begin adding pieces to grab quoted text and things like that. But before I go there, I was wondering if this would be a proper approach, or if anyone had any advice. I plan to contribute this back to an open source project I am working with and another developer had the question of whether it was parsing maildir or mbox. Isn't this only client side? Any information on that would be helpful. Great project and thanks to the developers of this. It is very straight forward to use. Tony Z