james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Showalter (JIRA)" <mime4j-...@james.apache.org>
Subject [jira] [Created] (MIME4J-234) Valid email with X-YMail-OSG signature causes line-length exception during parsing
Date Wed, 06 Nov 2013 04:33:20 GMT
Jim Showalter created MIME4J-234:
------------------------------------

             Summary: Valid email with X-YMail-OSG signature causes line-length exception
during parsing
                 Key: MIME4J-234
                 URL: https://issues.apache.org/jira/browse/MIME4J-234
             Project: James Mime4j
          Issue Type: Bug
          Components: parser (core)
    Affects Versions: 0.7.2
            Reporter: Jim Showalter
            Priority: Blocker


Try to create a message from the text below and you'll get:

org.apache.james.mime4j.io.MaxLineLimitException: Maximum line length limit exceeded
	at org.apache.james.mime4j.parser.AbstractEntity.fillFieldBuffer(AbstractEntity.java:138)
	at org.apache.james.mime4j.parser.AbstractEntity.parseField(AbstractEntity.java:184)
	at org.apache.james.mime4j.parser.MimeEntity.advance(MimeEntity.java:130)
	at org.apache.james.mime4j.parser.MimeTokenStream.next(MimeTokenStream.java:356)
	at org.apache.james.mime4j.parser.MimeStreamParser.parse(MimeStreamParser.java:144)
	at org.apache.james.mime4j.message.Message.<init>(Message.java:141)
	at org.apache.james.mime4j.message.Message.<init>(Message.java:100)

The text of the message:

================================================
Return-Path: <someuser@somewhere.net>
X-Original-To: somesender@origin.com
Delivered-To: someserver@origin.com
Received: from anotherserver.net (anotherserver.net [10.128.0.16])
	by anotherserver2.net (Postfix) with ESMTP id 81892846D4
	for <somesender@origin.com>; Fri,  1 Nov 2013 09:07:05 -0700 (PDT)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ag4CAJDQc1JiiNkdm2dsb2JhbADGAw4BAQEBARwJ
X-IPAS-Result: Ag4CAJDQc1JiiNkdm2dsb2JhbADGAw4BAQEBARwJ
X-IronPort-AV: E=Sophos;i="4.93,618,1378882800"; 
   d="scan'208,217";a="6976190"
Received: from nm19-vm6.bullet.mail.gq1.yahoo.com ([98.136.217.29])
  by qdcapmailin.data.ie.intuit.net with ESMTP/TLS/DHE-RSA-AES256-SHA; 01 Nov 2013 09:07:02
-0700
Received: from [216.39.60.182] by nm19.bullet.mail.gq1.yahoo.com with NNFMP; 01 Nov 2013 16:07:01
-0000
Received: from [208.71.42.199] by tm18.bullet.mail.gq1.yahoo.com with NNFMP; 01 Nov 2013 16:07:00
-0000
Received: from [127.0.0.1] by smtp210.mail.gq1.yahoo.com with NNFMP; 01 Nov 2013 16:07:00
-0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1383322020;
bh=Rlmq+DH4B1Q/HElDNPZNyQz7jX6mf4Fy3HJA+O4J7V0=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:From:Content-Type:Subject:Date:Message-Id:To:Mime-Version:X-Mailer;
b=NTdKm3BUjawnp/k8NZ7FPaSOub4cAzlo/ZwomtqujzJentsPr3zYngl/C5HGeWQQE2ItqxV1YtQE0vv9TPwgIZwgwuvffcnmrgRwJK4Ui12SRkoBWVgX0y4EKwKs6epuSiyORNKWFDFPl0OuLxIZQ4hvaEQ+dWhJrXJVYwla/sQ=
X-Yahoo-Newman-Id: 148369.97395.bm@smtp210.mail.gq1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: 5RbwHqUVM1mIP6P7TOMwim3Ke9UGgmf7.Ue3DsLFY8XoQGE
 QAYurqzEI6qQTnuFYz8IQQoB5wZ_KRniipNv5De_4toWVbCalRcUBt1DV6Vf
 vuw7DbBpKECNcxFVgw1ZUC48AgjaOA0NzoadheAQzjbCbahGg0_UQSDHCYz_
 A2JfYljcLdgIAKQY6nBMm.Fz9Em3rTeh0Ws53r7LEPJ1Ej0kwiVWvgZrKN_5
 0wvpSxxc9B_2dVaIDAEXHlJNaiihZPDPlH5yWpNH5r7i5UGYGbETm8UzWumc
 zchtyA0umF7A4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A_bs9Q5EmoRbg3y3w8
 ym577mFYu629wQxrwfPSLKSTar1cQZcDUSo3YDLk9og315clzqRcJgioq5R2
 TWGreT47nS1jyynWsGRMyfsUtPY2L4TjMdFVldOWCnNSe3NxilhSBXSD6I3c
 mHAzaL13fzw_neJJOvwRp6yjAE.PQ6U6IFHx4YfYqWz1f1vAte73PE0Xg1on
 EiXQP9_Dyt1LODJde9TjOI5eWYDWYy0Uq5aIJDv1GHhDFWtMpD73uAKj1tvP
 ukak.in26NX1uLemab6dgH0MMHI70deWV3wG.z9l6Umjq.2Kj4ZUYKE1Elp9
 M9th6bIN2.XVhLESOW.2Kec5ld.QVgb.w0neQC4PXBGQtrkZzGQcXuYgvw7h
 E1B5rDB.45X_jNhEUQGn3TQd_5lvCniMjSHkpOpBkQoQIzAa9gXJfRpwk2NL
 _eA4I3SwCkFhEPjeQgiReaRd976SjEtq2cfTAHtEZBibLt.LwWvHl.fHEM4N
 YUpt_q0JVfOlpMQh_RwJJM5poPHD.aMt.pqLqYzW915FNiaIKewTgUny1yun
 4hrkdo6GVUXS32xgDF3jUmO1gSES4X07GcccJIOMScoQ7fAzOR8iAspYjvGF
 ftEEMZBN0M3Vf8qCzU786n_qFru.iE6anDEbtFYT8aqwmplusVZ6NDqvcA8G
 f6zFUM4cDSYkW9T.aOZmYE8RMhq2d18oeWQyL7_ivJ0KGIr4RxwdvYd8OCLK
 Z0Qgr9wSn0xml6uJU2OQP6WjGh44JbRypfG6VNmPpEakUT_5m9WdrS5OS3w7
 B6cYmpKhNJzSXrZ6CrlvCsMPataH5Q9L79BIVqm32DqkWTOYHxA--
X-Yahoo-SMTP: VoZM2KqswBAy6X1xO6iouMAaMFLHQTM5YNoT.aWKlKM28w--
X-Rocket-Received: from [192.168.1.5] (myip@70.193.199.204 with )
        by smtp210.mail.gq1.yahoo.com with SMTP; 01 Nov 2013 09:07:00 -0700 PDT
From: Some User <someuser@somewhere.net>
Content-Type: multipart/alternative; boundary="Apple-Mail=_68A40F58-9203-4568-BC97-8DB4A7E43FD8"
Subject: Some subject
Date: Fri, 1 Nov 2013 12:06:53 -0400
Message-Id: <3CC329EE-CCB3-4FA6-B1BD-322C9D49FDED@ymail.com>
To: "Some Company" <somesender@origin.com>
Mime-Version: 1.0 (Apple Message framework v1283)
X-Mailer: Apple Mail (2.1283)

--Apple-Mail=_68A40F58-9203-4568-BC97-8DB4A7E43FD8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

--Apple-Mail=_68A40F58-9203-4568-BC97-8DB4A7E43FD8--



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message