http://git-wip-us.apache.org/repos/asf/james-project/blob/b3f60b8e/mailbox/store/src/test/resources/eml/spamMail.eml ---------------------------------------------------------------------- diff --git a/mailbox/store/src/test/resources/eml/spamMail.eml b/mailbox/store/src/test/resources/eml/spamMail.eml index 2359ec3..4c239ca 100644 --- a/mailbox/store/src/test/resources/eml/spamMail.eml +++ b/mailbox/store/src/test/resources/eml/spamMail.eml @@ -1,143 +1,144 @@ -Return-Path: <[email protected]> -Received: from mx1.minet.net (mx1.minet.net [192.168.102.25]) - by imap (Cyrus v2.4.16-Debian-2.4.16-4+deb7u1) with LMTPA; - Wed, 03 Jun 2015 11:05:45 +0200 -X-Sieve: CMU Sieve 2.4 -Received: from smtp.minet.net (smtp.minet.net [192.168.102.18]) - by mx1.minet.net (Postfix) with ESMTP id F06FE610F72; - Wed, 3 Jun 2015 11:05:48 +0200 (CEST) -Received: from listes.minet.net (listes.minet.net [192.168.102.29]) - by smtp.minet.net (Postfix) with ESMTP id AAB15610F70; - Wed, 3 Jun 2015 09:05:48 +0000 (UTC) -DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=minet.net; s=mail; - t=1433322348; bh=8OtmVRMX7IWWyQo8WQIi5rKeDEQFghSX2r1WN9/pqUk=; - h=From:Date:To:Subject:List-Id:List-Unsubscribe:List-Post:List-Help: - List-Subscribe:From; - b=UkthSFXn5mtPnn7sYvDJIxgCk1O36L0p+hTOnI/xTF2WRMGJyXtLyCdFdE5jQ5gE4 - EGNdhwmfjaKsoE7IDtc/4GrPvbnM8i9ojpSOBW1hXJPOeYnRgah/4gsXsMJWvmmq/A - 4oTnw8ZswFXiShDmBMyaSEZuVrWTdaPBgUhVhGw8= -Received: from listes.minet.net (listes.minet.net [127.0.0.1]) - by listes.minet.net (Postfix) with ESMTP id 9CD5BA27FF9; - Wed, 3 Jun 2015 09:05:48 +0000 (UTC) -X-Original-To: [email protected] -Delivered-To: [email protected] -Received: from mx1.minet.net (mx1.minet.net [192.168.102.25]) - by listes.minet.net (Postfix) with ESMTP id B8C1FA27FEF - for <[email protected]>; Wed, 3 Jun 2015 09:05:46 +0000 (UTC) -Received: from localhost (spam.minet.net [192.168.102.97]) - by mx1.minet.net (Postfix) with ESMTP id AD28B610F6D - for <[email protected]>; Wed, 3 Jun 2015 11:05:46 +0200 (CEST) -Content-Type: multipart/mixed; boundary="----------=_1433322346-12583-0" -Content-Transfer-Encoding: 7bit -MIME-Version: 1.0 -From: "Content-filter at spam.minet.net" <[email protected]> -Date: Wed, 3 Jun 2015 09:05:46 +0000 (UTC) -To: <[email protected]> -Message-ID: <[email protected]> -Subject: [root] UNCHECKED contents in mail FROM <[email protected]> -X-BeenThere: [email protected] -X-Mailman-Version: 2.1.15 -Precedence: list -List-Id: <root.listes.minet.net> -List-Unsubscribe: <https://listes.minet.net/cgi-bin/mailman/options/root>, - <mailto:[email protected]?subject=unsubscribe> -List-Post: <mailto:[email protected]> -List-Help: <mailto:[email protected]?subject=help> -List-Subscribe: <https://listes.minet.net/cgi-bin/mailman/listinfo/root>, - <mailto:[email protected]?subject=subscribe> -Errors-To: [email protected] -Sender: "root" <[email protected]> - -This is a multi-part message in MIME format... - -------------=_1433322346-12583-0 -Content-Type: text/plain; charset="UTF-8" -Content-Disposition: inline -Content-Transfer-Encoding: 7bit - -No viruses were found. - -Content type: Unchecked -Internal reference code for the message is 12583-16/Ss-IZaXqmZao - -According to a 'Received:' trace, the message apparently originated at: - [198.252.153.129], [127.0.0.1] localhost [127.0.0.1] Authenticated sender: - quentin.h - -Return-Path: <[email protected]> -From: Quentin <[email protected]> -Message-ID: <[email protected]> -Subject: =?UTF-8?B?UmU6IEZ3ZDogW1RtcGxhYl0gW0FQUEVMIEEgUEFSVElDSVBBVElPTl0=?= - =?UTF-8?B?IFdvb3QgZGV2aWNlcyAjMiAgOiB2ZW5leiBmYWlyZSBsZXVyIGhhY2tmw6p0ZSA=?= - =?UTF-8?B?YXV4IHBldGl0ZXMgbWFjaGluZXMgcHJvZ3JhbW1hYmxlcyBsZXMgNi03IGp1aW4=?= - =?UTF-8?B?IGF1IEphcmRpbiBkJ2FsaWNlL0JsYWNrbG9vcA==?= -Not quarantined. - -The message WILL BE relayed to: -<[email protected]> - - -------------=_1433322346-12583-0 -Content-Type: text/rfc822-headers; name="header" -Content-Disposition: inline; filename="header" -Content-Transfer-Encoding: 7bit -Content-Description: Message header section - -Return-Path: <[email protected]> -Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=198.252.153.129; helo=mx1.riseup.net; [email protected]; [email protected] -Authentication-Results: mx2.minet.net; dkim=pass - reason="1024-bit key; insecure key" - header.d=riseup.net [email protected] header.b=RVs2xP3R; - dkim-adsp=pass; dkim-atps=neutral -Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) - (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) - (No client certificate requested) - by mx2.minet.net (Postfix) with ESMTPS id 6D9E0A27FCA - for <[email protected]>; Wed, 3 Jun 2015 11:05:44 +0200 (CEST) -Received: from plantcutter.riseup.net (plantcutter-pn.riseup.net [10.0.1.121]) - (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) - (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) - by mx1.riseup.net (Postfix) with ESMTPS id 5CC6541A75; - Wed, 3 Jun 2015 09:05:42 +0000 (UTC) -DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; - t=1433322342; bh=Lz3x5ntYzOhQOpyviKamr5VE0TinfpBCnsivvJzojYk=; - h=Date:From:To:Subject:References:In-Reply-To:From; - b=RVs2xP3RV4zWi3Jbs6p85cO8s44yLq1LXxwe6NQvgZjsHQdWaMY16jQzSbCRRdCRY - IesTpg1mncqIinhXxL9grw2+0MgO+E0HM0ZPZzXM/xNTGZpALI1X6tDM0rxB+GEnHa - NfGRbWnesWFLyba7am02KbTKeKq7svIBBmSbaFsE= -Received: from [127.0.0.1] (localhost [127.0.0.1]) - (Authenticated sender: quentin.h) - with ESMTPSA id 6DBAC20827 -Message-ID: <[email protected]> -Date: Wed, 03 Jun 2015 11:05:37 +0200 -From: Quentin <[email protected]> -User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 -MIME-Version: 1.0 -To: Yann Sionneau <[email protected]>, =?UTF-8?B?U3TDqXBoYW5pZSBPdWlsbG9u?= - <[email protected]>, =?UTF-8?B?TmF0YWxpYSBDYWxkZXJvbiBCZWx0csOhbg==?= - <[email protected]> -Subject: =?UTF-8?B?UmU6IEZ3ZDogW1RtcGxhYl0gW0FQUEVMIEEgUEFSVElDSVBBVElPTl0=?= - =?UTF-8?B?IFdvb3QgZGV2aWNlcyAjMiAgOiB2ZW5leiBmYWlyZSBsZXVyIGhhY2tmw6p0ZSA=?= - =?UTF-8?B?YXV4IHBldGl0ZXMgbWFjaGluZXMgcHJvZ3JhbW1hYmxlcyBsZXMgNi03IGp1aW4=?= - =?UTF-8?B?IGF1IEphcmRpbiBkJ2FsaWNlL0JsYWNrbG9vcA==?= -References: <[email protected]> <[email protected]> -In-Reply-To: <[email protected]> -OpenPGP: id=AA5EE4B4EA20E2BEAA70B98E49CBF006922B990A; - url=pgp.mit.edu -Content-Type: multipart/encrypted; - protocol="application/pgp-encrypted"; - boundary="M0xVhKIvXqi85dG57o5RfCUAoFwhAw1Nh" -X-Virus-Scanned: clamav-milter 0.98.7 at mx1 -X-Virus-Status: Clean - -------------=_1433322346-12583-0 -Content-Type: text/plain; charset="iso-8859-1" -MIME-Version: 1.0 -Content-Transfer-Encoding: quoted-printable -Content-Disposition: inline - -_______________________________________________ -root mailing list [email protected] -https://listes.minet.net/cgi-bin/mailman/listinfo/root -------------=_1433322346-12583-0-- +Return-Path: <[email protected]> +Received: from mx1.minet.net (mx1.minet.net [192.168.102.25]) + by imap (Cyrus v2.4.16-Debian-2.4.16-4+deb7u1) with LMTPA; + Wed, 03 Jun 2015 11:05:45 +0200 +X-Sieve: CMU Sieve 2.4 +Received: from smtp.minet.net (smtp.minet.net [192.168.102.18]) + by mx1.minet.net (Postfix) with ESMTP id F06FE610F72; + Wed, 3 Jun 2015 11:05:48 +0200 (CEST) +Received: from listes.minet.net (listes.minet.net [192.168.102.29]) + by smtp.minet.net (Postfix) with ESMTP id AAB15610F70; + Wed, 3 Jun 2015 09:05:48 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=minet.net; s=mail; + t=1433322348; bh=8OtmVRMX7IWWyQo8WQIi5rKeDEQFghSX2r1WN9/pqUk=; + h=From:Date:To:Subject:List-Id:List-Unsubscribe:List-Post:List-Help: + List-Subscribe:From; + b=UkthSFXn5mtPnn7sYvDJIxgCk1O36L0p+hTOnI/xTF2WRMGJyXtLyCdFdE5jQ5gE4 + EGNdhwmfjaKsoE7IDtc/4GrPvbnM8i9ojpSOBW1hXJPOeYnRgah/4gsXsMJWvmmq/A + 4oTnw8ZswFXiShDmBMyaSEZuVrWTdaPBgUhVhGw8= +Received: from listes.minet.net (listes.minet.net [127.0.0.1]) + by listes.minet.net (Postfix) with ESMTP id 9CD5BA27FF9; + Wed, 3 Jun 2015 09:05:48 +0000 (UTC) +X-Original-To: [email protected] +Delivered-To: [email protected] +Received: from mx1.minet.net (mx1.minet.net [192.168.102.25]) + by listes.minet.net (Postfix) with ESMTP id B8C1FA27FEF + for <[email protected]>; Wed, 3 Jun 2015 09:05:46 +0000 (UTC) +Received: from localhost (spam.minet.net [192.168.102.97]) + by mx1.minet.net (Postfix) with ESMTP id AD28B610F6D + for <[email protected]>; Wed, 3 Jun 2015 11:05:46 +0200 (CEST) +Content-Type: multipart/mixed; boundary="----------=_1433322346-12583-0" +Content-Transfer-Encoding: 7bit +MIME-Version: 1.0 +From: "Content-filter at spam.minet.net" <[email protected]> +Date: Wed, 3 Jun 2015 09:05:46 +0000 (UTC) +To: <[email protected]> +Message-ID: <[email protected]> +Subject: [root] UNCHECKED contents in mail FROM <[email protected]> +X-BeenThere: [email protected] +X-Mailman-Version: 2.1.15 +Precedence: list +List-Id: <root.listes.minet.net> +List-Unsubscribe: <https://listes.minet.net/cgi-bin/mailman/options/root>, + <mailto:[email protected]?subject=unsubscribe> +List-Post: <mailto:[email protected]> +List-Help: <mailto:[email protected]?subject=help> +List-Subscribe: <https://listes.minet.net/cgi-bin/mailman/listinfo/root>, + <mailto:[email protected]?subject=subscribe> +Errors-To: [email protected] +Sender: "root" <[email protected]> + + +This is a multi-part message in MIME format... + +------------=_1433322346-12583-0 +Content-Type: text/plain; charset="UTF-8" +Content-Disposition: inline +Content-Transfer-Encoding: 7bit + +No viruses were found. + +Content type: Unchecked +Internal reference code for the message is 12583-16/Ss-IZaXqmZao + +According to a 'Received:' trace, the message apparently originated at: + [198.252.153.129], [127.0.0.1] localhost [127.0.0.1] Authenticated sender: + quentin.h + +Return-Path: <[email protected]> +From: Quentin <[email protected]> +Message-ID: <[email protected]> +Subject: =?UTF-8?B?UmU6IEZ3ZDogW1RtcGxhYl0gW0FQUEVMIEEgUEFSVElDSVBBVElPTl0=?= + =?UTF-8?B?IFdvb3QgZGV2aWNlcyAjMiAgOiB2ZW5leiBmYWlyZSBsZXVyIGhhY2tmw6p0ZSA=?= + =?UTF-8?B?YXV4IHBldGl0ZXMgbWFjaGluZXMgcHJvZ3JhbW1hYmxlcyBsZXMgNi03IGp1aW4=?= + =?UTF-8?B?IGF1IEphcmRpbiBkJ2FsaWNlL0JsYWNrbG9vcA==?= +Not quarantined. + +The message WILL BE relayed to: +<[email protected]> + + +------------=_1433322346-12583-0 +Content-Type: text/rfc822-headers; name="header" +Content-Disposition: inline; filename="header" +Content-Transfer-Encoding: 7bit +Content-Description: Message header section + +Return-Path: <[email protected]> +Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=198.252.153.129; helo=mx1.riseup.net; [email protected]; [email protected] +Authentication-Results: mx2.minet.net; dkim=pass + reason="1024-bit key; insecure key" + header.d=riseup.net [email protected] header.b=RVs2xP3R; + dkim-adsp=pass; dkim-atps=neutral +Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mx2.minet.net (Postfix) with ESMTPS id 6D9E0A27FCA + for <[email protected]>; Wed, 3 Jun 2015 11:05:44 +0200 (CEST) +Received: from plantcutter.riseup.net (plantcutter-pn.riseup.net [10.0.1.121]) + (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) + (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) + by mx1.riseup.net (Postfix) with ESMTPS id 5CC6541A75; + Wed, 3 Jun 2015 09:05:42 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; + t=1433322342; bh=Lz3x5ntYzOhQOpyviKamr5VE0TinfpBCnsivvJzojYk=; + h=Date:From:To:Subject:References:In-Reply-To:From; + b=RVs2xP3RV4zWi3Jbs6p85cO8s44yLq1LXxwe6NQvgZjsHQdWaMY16jQzSbCRRdCRY + IesTpg1mncqIinhXxL9grw2+0MgO+E0HM0ZPZzXM/xNTGZpALI1X6tDM0rxB+GEnHa + NfGRbWnesWFLyba7am02KbTKeKq7svIBBmSbaFsE= +Received: from [127.0.0.1] (localhost [127.0.0.1]) + (Authenticated sender: quentin.h) + with ESMTPSA id 6DBAC20827 +Message-ID: <[email protected]> +Date: Wed, 03 Jun 2015 11:05:37 +0200 +From: Quentin <[email protected]> +User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 +MIME-Version: 1.0 +To: Yann Sionneau <[email protected]>, =?UTF-8?B?U3TDqXBoYW5pZSBPdWlsbG9u?= + <[email protected]>, =?UTF-8?B?TmF0YWxpYSBDYWxkZXJvbiBCZWx0csOhbg==?= + <[email protected]> +Subject: =?UTF-8?B?UmU6IEZ3ZDogW1RtcGxhYl0gW0FQUEVMIEEgUEFSVElDSVBBVElPTl0=?= + =?UTF-8?B?IFdvb3QgZGV2aWNlcyAjMiAgOiB2ZW5leiBmYWlyZSBsZXVyIGhhY2tmw6p0ZSA=?= + =?UTF-8?B?YXV4IHBldGl0ZXMgbWFjaGluZXMgcHJvZ3JhbW1hYmxlcyBsZXMgNi03IGp1aW4=?= + =?UTF-8?B?IGF1IEphcmRpbiBkJ2FsaWNlL0JsYWNrbG9vcA==?= +References: <[email protected]> <[email protected]> +In-Reply-To: <[email protected]> +OpenPGP: id=AA5EE4B4EA20E2BEAA70B98E49CBF006922B990A; + url=pgp.mit.edu +Content-Type: multipart/encrypted; + protocol="application/pgp-encrypted"; + boundary="M0xVhKIvXqi85dG57o5RfCUAoFwhAw1Nh" +X-Virus-Scanned: clamav-milter 0.98.7 at mx1 +X-Virus-Status: Clean + +------------=_1433322346-12583-0 +Content-Type: text/plain; charset="iso-8859-1" +MIME-Version: 1.0 +Content-Transfer-Encoding: quoted-printable +Content-Disposition: inline + +_______________________________________________ +root mailing list [email protected] +https://listes.minet.net/cgi-bin/mailman/listinfo/root +------------=_1433322346-12583-0--
http://git-wip-us.apache.org/repos/asf/james-project/blob/b3f60b8e/mailbox/store/src/test/resources/eml/spamMail.json ---------------------------------------------------------------------- diff --git a/mailbox/store/src/test/resources/eml/spamMail.json b/mailbox/store/src/test/resources/eml/spamMail.json index dfa60a4..aa86788 100644 --- a/mailbox/store/src/test/resources/eml/spamMail.json +++ b/mailbox/store/src/test/resources/eml/spamMail.json @@ -124,7 +124,7 @@ ], "attachments": [ { - "textContent": "No viruses were found.\n\nContent type: Unchecked\nInternal reference code for the message is 12583-16/Ss-IZaXqmZao\n\nAccording to a 'Received:' trace, the message apparently originated at:\n [198.252.153.129], [127.0.0.1] localhost [127.0.0.1] Authenticated sender:\n quentin.h\n\nReturn-Path: <[email protected]>\nFrom: Quentin <[email protected]>\nMessage-ID: <[email protected]>\nSubject: =?UTF-8?B?UmU6IEZ3ZDogW1RtcGxhYl0gW0FQUEVMIEEgUEFSVElDSVBBVElPTl0=?=\n =?UTF-8?B?IFdvb3QgZGV2aWNlcyAjMiAgOiB2ZW5leiBmYWlyZSBsZXVyIGhhY2tmw6p0ZSA=?=\n =?UTF-8?B?YXV4IHBldGl0ZXMgbWFjaGluZXMgcHJvZ3JhbW1hYmxlcyBsZXMgNi03IGp1aW4=?=\n =?UTF-8?B?IGF1IEphcmRpbiBkJ2FsaWNlL0JsYWNrbG9vcA==?=\nNot quarantined.\n\nThe message WILL BE relayed to:\n<[email protected]>\n\n", + "textContent": "No viruses were found.\r\n\r\nContent type: Unchecked\r\nInternal reference code for the message is 12583-16/Ss-IZaXqmZao\r\n\r\nAccording to a 'Received:' trace, the message apparently originated at:\r\n [198.252.153.129], [127.0.0.1] localhost [127.0.0.1] Authenticated sender:\r\n quentin.h\r\n\r\nReturn-Path: <[email protected]>\r\nFrom: Quentin <[email protected]>\r\nMessage-ID: <[email protected]>\r\nSubject: =?UTF-8?B?UmU6IEZ3ZDogW1RtcGxhYl0gW0FQUEVMIEEgUEFSVElDSVBBVElPTl0=?=\r\n =?UTF-8?B?IFdvb3QgZGV2aWNlcyAjMiAgOiB2ZW5leiBmYWlyZSBsZXVyIGhhY2tmw6p0ZSA=?=\r\n =?UTF-8?B?YXV4IHBldGl0ZXMgbWFjaGluZXMgcHJvZ3JhbW1hYmxlcyBsZXMgNi03IGp1aW4=?=\r\n =?UTF-8?B?IGF1IEphcmRpbiBkJ2FsaWNlL0JsYWNrbG9vcA==?=\r\nNot quarantined.\r\n\r\nThe message WILL BE relayed to:\r\n<[email protected]>\r\n\r\n", "mediaType": "text", "subtype": "plain", "fileName": null, @@ -144,7 +144,7 @@ } }, { - "textContent": "Return-Path: <[email protected]>\nReceived-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=198.252.153.129; helo=mx1.riseup.net; [email protected]; [email protected]\nAuthentication-Results: mx2.minet.net; dkim=pass\n\treason=\"1024-bit key; insecure key\"\n\theader.d=riseup.net [email protected] header.b=RVs2xP3R;\n\tdkim-adsp=pass; dkim-atps=neutral\nReceived: from mx1.riseup.net (mx1.riseup.net [198.252.153.129])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby mx2.minet.net (Postfix) with ESMTPS id 6D9E0A27FCA\n\tfor <[email protected]>; Wed, 3 Jun 2015 11:05:44 +0200 (CEST)\nReceived: from plantcutter.riseup.net (plantcutter-pn.riseup.net [10.0.1.121])\n\t(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))\n\t(Client CN \"*.riseup.net\", Issuer \"COMODO RSA Domain Validation Secure Server CA\" (verified OK))\n\tby mx1.riseup.net (Postfix) wi th ESMTPS id 5CC6541A75;\n\tWed, 3 Jun 2015 09:05:42 +0000 (UTC)\nDKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;\n\tt=1433322342; bh=Lz3x5ntYzOhQOpyviKamr5VE0TinfpBCnsivvJzojYk=;\n\th=Date:From:To:Subject:References:In-Reply-To:From;\n\tb=RVs2xP3RV4zWi3Jbs6p85cO8s44yLq1LXxwe6NQvgZjsHQdWaMY16jQzSbCRRdCRY\n\t IesTpg1mncqIinhXxL9grw2+0MgO+E0HM0ZPZzXM/xNTGZpALI1X6tDM0rxB+GEnHa\n\t NfGRbWnesWFLyba7am02KbTKeKq7svIBBmSbaFsE=\nReceived: from [127.0.0.1] (localhost [127.0.0.1])\n\t(Authenticated sender: quentin.h)\n\twith ESMTPSA id 6DBAC20827\nMessage-ID: <[email protected]>\nDate: Wed, 03 Jun 2015 11:05:37 +0200\nFrom: Quentin <[email protected]>\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0\nMIME-Version: 1.0\nTo: Yann Sionneau <[email protected]>, =?UTF-8?B?U3TDqXBoYW5pZSBPdWlsbG9u?=\n <[email protected]>, =?UTF-8?B?TmF0YWxpYSBDYWxkZXJvbiBCZWx0csOhbg==?=\n <[email protected]>\nSubject: =?UTF-8?B?UmU6IE Z3ZDogW1RtcGxhYl0gW0FQUEVMIEEgUEFSVElDSVBBVElPTl0=?=\n =?UTF-8?B?IFdvb3QgZGV2aWNlcyAjMiAgOiB2ZW5leiBmYWlyZSBsZXVyIGhhY2tmw6p0ZSA=?=\n =?UTF-8?B?YXV4IHBldGl0ZXMgbWFjaGluZXMgcHJvZ3JhbW1hYmxlcyBsZXMgNi03IGp1aW4=?=\n =?UTF-8?B?IGF1IEphcmRpbiBkJ2FsaWNlL0JsYWNrbG9vcA==?=\nReferences: <[email protected]> <[email protected]>\nIn-Reply-To: <[email protected]>\nOpenPGP: id=AA5EE4B4EA20E2BEAA70B98E49CBF006922B990A;\n\turl=pgp.mit.edu\nContent-Type: multipart/encrypted;\n protocol=\"application/pgp-encrypted\";\n boundary=\"M0xVhKIvXqi85dG57o5RfCUAoFwhAw1Nh\"\nX-Virus-Scanned: clamav-milter 0.98.7 at mx1\nX-Virus-Status: Clean\n", + "textContent": "Return-Path: <[email protected]>\r\nReceived-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=198.252.153.129; helo=mx1.riseup.net; [email protected]; [email protected]\r\nAuthentication-Results: mx2.minet.net; dkim=pass\r\n\treason=\"1024-bit key; insecure key\"\r\n\theader.d=riseup.net [email protected] header.b=RVs2xP3R;\r\n\tdkim-adsp=pass; dkim-atps=neutral\r\nReceived: from mx1.riseup.net (mx1.riseup.net [198.252.153.129])\r\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\r\n\t(No client certificate requested)\r\n\tby mx2.minet.net (Postfix) with ESMTPS id 6D9E0A27FCA\r\n\tfor <[email protected]>; Wed, 3 Jun 2015 11:05:44 +0200 (CEST)\r\nReceived: from plantcutter.riseup.net (plantcutter-pn.riseup.net [10.0.1.121])\r\n\t(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))\r\n\t(Client CN \"*.riseup.net\", Issuer \"COMODO RSA Domain Validation Secure Server CA\" (verified OK))\r\n\tby mx1.riseup.net (Postfix) with ESMTPS id 5CC6541A75;\r\n\tWed, 3 Jun 2015 09:05:42 +0000 (UTC)\r\nDKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;\r\n\tt=1433322342; bh=Lz3x5ntYzOhQOpyviKamr5VE0TinfpBCnsivvJzojYk=;\r\n\th=Date:From:To:Subject:References:In-Reply-To:From;\r\n\tb=RVs2xP3RV4zWi3Jbs6p85cO8s44yLq1LXxwe6NQvgZjsHQdWaMY16jQzSbCRRdCRY\r\n\t IesTpg1mncqIinhXxL9grw2+0MgO+E0HM0ZPZzXM/xNTGZpALI1X6tDM0rxB+GEnHa\r\n\t NfGRbWnesWFLyba7am02KbTKeKq7svIBBmSbaFsE=\r\nReceived: from [127.0.0.1] (localhost [127.0.0.1])\r\n\t(Authenticated sender: quentin.h)\r\n\twith ESMTPSA id 6DBAC20827\r\nMessage-ID: <[email protected]>\r\nDate: Wed, 03 Jun 2015 11:05:37 +0200\r\nFrom: Quentin <[email protected]>\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0\r\nMIME-Version: 1.0\r\nTo: Yann Sionneau <[email protected]>, =?UTF-8?B?U3TDqXBoYW5pZSBPdWlsbG9u?=\r\n <[email protected]>, =?UTF-8?B?TmF0YWxpYSBDYWxkZXJvbiBCZWx 0csOhbg==?=\r\n <[email protected]>\r\nSubject: =?UTF-8?B?UmU6IEZ3ZDogW1RtcGxhYl0gW0FQUEVMIEEgUEFSVElDSVBBVElPTl0=?=\r\n =?UTF-8?B?IFdvb3QgZGV2aWNlcyAjMiAgOiB2ZW5leiBmYWlyZSBsZXVyIGhhY2tmw6p0ZSA=?=\r\n =?UTF-8?B?YXV4IHBldGl0ZXMgbWFjaGluZXMgcHJvZ3JhbW1hYmxlcyBsZXMgNi03IGp1aW4=?=\r\n =?UTF-8?B?IGF1IEphcmRpbiBkJ2FsaWNlL0JsYWNrbG9vcA==?=\r\nReferences: <[email protected]> <[email protected]>\r\nIn-Reply-To: <[email protected]>\r\nOpenPGP: id=AA5EE4B4EA20E2BEAA70B98E49CBF006922B990A;\r\n\turl=pgp.mit.edu\r\nContent-Type: multipart/encrypted;\r\n protocol=\"application/pgp-encrypted\";\r\n boundary=\"M0xVhKIvXqi85dG57o5RfCUAoFwhAw1Nh\"\r\nX-Virus-Scanned: clamav-milter 0.98.7 at mx1\r\nX-Virus-Status: Clean\r\n", "mediaType": "text", "subtype": "rfc822-headers", "fileName": "header", @@ -190,7 +190,7 @@ } } ], - "textBody": "No viruses were found.\n\nContent type: Unchecked\nInternal reference code for the message is 12583-16/Ss-IZaXqmZao\n\nAccording to a 'Received:' trace, the message apparently originated at:\n [198.252.153.129], [127.0.0.1] localhost [127.0.0.1] Authenticated sender:\n quentin.h\n\nReturn-Path: <[email protected]>\nFrom: Quentin <[email protected]>\nMessage-ID: <[email protected]>\nSubject: =?UTF-8?B?UmU6IEZ3ZDogW1RtcGxhYl0gW0FQUEVMIEEgUEFSVElDSVBBVElPTl0=?=\n =?UTF-8?B?IFdvb3QgZGV2aWNlcyAjMiAgOiB2ZW5leiBmYWlyZSBsZXVyIGhhY2tmw6p0ZSA=?=\n =?UTF-8?B?YXV4IHBldGl0ZXMgbWFjaGluZXMgcHJvZ3JhbW1hYmxlcyBsZXMgNi03IGp1aW4=?=\n =?UTF-8?B?IGF1IEphcmRpbiBkJ2FsaWNlL0JsYWNrbG9vcA==?=\nNot quarantined.\n\nThe message WILL BE relayed to:\n<[email protected]>\n\n", + "textBody": "No viruses were found.\r\n\r\nContent type: Unchecked\r\nInternal reference code for the message is 12583-16/Ss-IZaXqmZao\r\n\r\nAccording to a 'Received:' trace, the message apparently originated at:\r\n [198.252.153.129], [127.0.0.1] localhost [127.0.0.1] Authenticated sender:\r\n quentin.h\r\n\r\nReturn-Path: <[email protected]>\r\nFrom: Quentin <[email protected]>\r\nMessage-ID: <[email protected]>\r\nSubject: =?UTF-8?B?UmU6IEZ3ZDogW1RtcGxhYl0gW0FQUEVMIEEgUEFSVElDSVBBVElPTl0=?=\r\n =?UTF-8?B?IFdvb3QgZGV2aWNlcyAjMiAgOiB2ZW5leiBmYWlyZSBsZXVyIGhhY2tmw6p0ZSA=?=\r\n =?UTF-8?B?YXV4IHBldGl0ZXMgbWFjaGluZXMgcHJvZ3JhbW1hYmxlcyBsZXMgNi03IGp1aW4=?=\r\n =?UTF-8?B?IGF1IEphcmRpbiBkJ2FsaWNlL0JsYWNrbG9vcA==?=\r\nNot quarantined.\r\n\r\nThe message WILL BE relayed to:\r\n<[email protected]>\r\n\r\n", "htmlBody": null, "isAnswered": false, "isDeleted": false, @@ -202,5 +202,5 @@ "users": [ "username" ], - "text": "Content-filter at spam.minet.net [email protected] [email protected] [email protected] [root] UNCHECKED contents in mail FROM <[email protected]> No viruses were found.\n\nContent type: Unchecked\nInternal reference code for the message is 12583-16/Ss-IZaXqmZao\n\nAccording to a 'Received:' trace, the message apparently originated at:\n [198.252.153.129], [127.0.0.1] localhost [127.0.0.1] Authenticated sender:\n quentin.h\n\nReturn-Path: <[email protected]>\nFrom: Quentin <[email protected]>\nMessage-ID: <[email protected]>\nSubject: =?UTF-8?B?UmU6IEZ3ZDogW1RtcGxhYl0gW0FQUEVMIEEgUEFSVElDSVBBVElPTl0=?=\n =?UTF-8?B?IFdvb3QgZGV2aWNlcyAjMiAgOiB2ZW5leiBmYWlyZSBsZXVyIGhhY2tmw6p0ZSA=?=\n =?UTF-8?B?YXV4IHBldGl0ZXMgbWFjaGluZXMgcHJvZ3JhbW1hYmxlcyBsZXMgNi03IGp1aW4=?=\n =?UTF-8?B?IGF1IEphcmRpbiBkJ2FsaWNlL0JsYWNrbG9vcA==?=\nNot quarantined.\n\nThe message WILL BE relayed to:\n<[email protected]>\n\n" + "text": "Content-filter at spam.minet.net [email protected] [email protected] [email protected] [root] UNCHECKED contents in mail FROM <[email protected]> No viruses were found.\r\n\r\nContent type: Unchecked\r\nInternal reference code for the message is 12583-16/Ss-IZaXqmZao\r\n\r\nAccording to a 'Received:' trace, the message apparently originated at:\r\n [198.252.153.129], [127.0.0.1] localhost [127.0.0.1] Authenticated sender:\r\n quentin.h\r\n\r\nReturn-Path: <[email protected]>\r\nFrom: Quentin <[email protected]>\r\nMessage-ID: <[email protected]>\r\nSubject: =?UTF-8?B?UmU6IEZ3ZDogW1RtcGxhYl0gW0FQUEVMIEEgUEFSVElDSVBBVElPTl0=?=\r\n =?UTF-8?B?IFdvb3QgZGV2aWNlcyAjMiAgOiB2ZW5leiBmYWlyZSBsZXVyIGhhY2tmw6p0ZSA=?=\r\n =?UTF-8?B?YXV4IHBldGl0ZXMgbWFjaGluZXMgcHJvZ3JhbW1hYmxlcyBsZXMgNi03IGp1aW4=?=\r\n =?UTF-8?B?IGF1IEphcmRpbiBkJ2FsaWNlL0JsYWNrbG9vcA==?=\r\nNot quarantined.\r\n\r\nThe message WILL BE relayed to:\r\n<[email protected]>\r\n\r\n" } http://git-wip-us.apache.org/repos/asf/james-project/blob/b3f60b8e/mailbox/store/src/test/resources/eml/twoAttachments.eml ---------------------------------------------------------------------- diff --git a/mailbox/store/src/test/resources/eml/twoAttachments.eml b/mailbox/store/src/test/resources/eml/twoAttachments.eml index 85f0e3b..1d3fa14 100644 --- a/mailbox/store/src/test/resources/eml/twoAttachments.eml +++ b/mailbox/store/src/test/resources/eml/twoAttachments.eml @@ -1,73 +1,73 @@ -Return-Path: <[email protected]> -Received: from alderaan.linagora.com (smtp.linagora.dc1 [172.16.18.53]) - by imap (Cyrus v2.2.13-Debian-2.2.13-19+squeeze3) with LMTPA; - Fri, 27 Feb 2015 20:32:14 +0100 -X-Sieve: CMU Sieve 2.2 -Received: from canondir.par.lng (unknown [92.103.166.6]) - (using TLSv1 with cipher AES256-SHA (256/256 bits)) - (No client certificate requested) - by alderaan.linagora.com (Postfix) with ESMTPSA id BAB0D728 - for <[email protected]>; Fri, 27 Feb 2015 20:31:38 +0100 (CET) -X-Priority: 3 (Normal) -From: "From" - <[email protected]> -To: "To" - <[email protected]> -Subject: [8/10]Attached Image light with text -Date: Fri, 27 Mar 2015 21:48:38 +0100 -Message-Id: <[email protected]> -Mime-Version: 1.0 -Content-Type: multipart/mixed; - boundary="AHNPACBLDCDIDAGGGDDFAABECGCA" - ---AHNPACBLDCDIDAGGGDDFAABECGCA -Content-Type: text/html; charset=utf-8; format=flowed -Content-Transfer-Encoding: 8bit - -<b>html</b> - ---AHNPACBLDCDIDAGGGDDFAABECGCA -Content-Type: image/jpeg; - name="4037_014.jpg" -Content-Transfer-Encoding: base64 -Content-Disposition: attachment; - filename="4037_014.jpg" - -/9j/4X2cRXhpZgAASUkqAAgAAAANAA8BAgAKAAAAqgAAABABAgAJAAAAtAAAABIBAwABAAAA -AQAAABoBBQABAAAAvgAAABsBBQABAAAAxgAAACgBAwABAAAAAgAAADEBAgAKAAAAzgAAADIB -AgAUAAAA2AAAABMCAwABAAAAAgAAAGmHBAABAAAAfAIAAKXEBwDQAAAA7AAAANLGBwBAAAAA -vAEAANPGBwCAAAAA/AEAAEwqAABQYW5hc29uaWMARE1DLUZaNDUAALQAAAABAAAAtAAAAAEA -AABWZXIuMS4wICAAMjAxNDowMjoyNSAxMDozMjowOQBQcmludElNADAyNTAAAA4AAQAWABYA -AgAAAAAAAwBkAAAABwAAAAAACAAAAAAACQAAAAAACgAAAAAACwCsAAAADAAAAAAADQAAAAAA -DgDEAAAAAAEFAAAAAQEBAAAAEAGAAAAACREAABAnAAALDwAAECcAAJcFAAAQJwAAsAgAABAn -AAABHAAAECcAAF4CAAAQJwAAiwAAABAnAADLAwAAECcAAOUbAAAQJwAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - ---AHNPACBLDCDIDAGGGDDFAABECGCA -Content-Type: image/jpeg; - name="4037_015.jpg" -Content-Transfer-Encoding: base64 -Content-Disposition: attachment; - filename="4037_015.jpg" - -iVBORw0KGgoAAAANSUhEUgAABYUAAAL4CAIAAACrzA8fAAAACXBIWXMAAAsTAAALEwEAmpwY -AAAAB3RJTUUH3wMNDiUMca0XkQAAIABJREFUeNq8vWm0bdlVHja/tc+99zX13qv2VSeVmlIv -FSqEOhA2AoEhxMRBg8QOyEkG6WMDSZzhMQTGDDcwiJPhBBMby4SMDJthgmOMAYvGMcF0QgIU -WRKobymp+qpX9fp779nry4+9mjnnWuuc80qMvCpdvXrv3nP22Xutueb85je/D1/3+q+ipF9z -nGfGdZznGCMjKaSIkJQwBYSAEMI0Tatptdrb21utVqvVtJKAAAABEAAiUP+IiECYfsfyJf1B -10+cOHH48OGVlZVSypaWlv379zc2Nr722msNDQ2u+y9zaYQeAQAAAACCHgEAAAB0y969e+ON -KnpOe3v7JZdccj6fwPXr10+aNKnAB956663Zs2fjTgMAAADOKzhOAQAAAFCYs+yO0XfNNQAA -AAAA/nNBfgQAAADQDVddddW6detSqdQZ7JvL5W655RZIEgAAAAAAEayKigqcBQAAAKAAhw8f -3rZt25AhQwYNGpTJZHq4V2tr6/bt25csWbJjxw6cQwAAAACACMiPAAAAAAAAAAAAQH8D/wgA -AAAAAAAAAAD0N9AjAAAAAAAAAAAA0N9AjwAAAAAAAAAAAEB/Az0CAAAAAAAAAAAA/Q30CAAA -AAAAAAAAAPQ30CMAAAAAAAAAAADQ30CPAAAAAAAAAAAAQH/z/0IKJwmNQbpqAAAAAElFTkSu -QmCC - ---AHNPACBLDCDIDAGGGDDFAABECGCA-- +Return-Path: <[email protected]> +Received: from alderaan.linagora.com (smtp.linagora.dc1 [172.16.18.53]) + by imap (Cyrus v2.2.13-Debian-2.2.13-19+squeeze3) with LMTPA; + Fri, 27 Feb 2015 20:32:14 +0100 +X-Sieve: CMU Sieve 2.2 +Received: from canondir.par.lng (unknown [92.103.166.6]) + (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) + by alderaan.linagora.com (Postfix) with ESMTPSA id BAB0D728 + for <[email protected]>; Fri, 27 Feb 2015 20:31:38 +0100 (CET) +X-Priority: 3 (Normal) +From: "From" + <[email protected]> +To: "To" + <[email protected]> +Subject: [8/10]Attached Image light with text +Date: Fri, 27 Mar 2015 21:48:38 +0100 +Message-Id: <[email protected]> +Mime-Version: 1.0 +Content-Type: multipart/mixed; + boundary="AHNPACBLDCDIDAGGGDDFAABECGCA" + +--AHNPACBLDCDIDAGGGDDFAABECGCA +Content-Type: text/html; charset=utf-8; format=flowed +Content-Transfer-Encoding: 8bit + +<b>html</b> + +--AHNPACBLDCDIDAGGGDDFAABECGCA +Content-Type: image/jpeg; + name="4037_014.jpg" +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; + filename="4037_014.jpg" + +/9j/4X2cRXhpZgAASUkqAAgAAAANAA8BAgAKAAAAqgAAABABAgAJAAAAtAAAABIBAwABAAAA +AQAAABoBBQABAAAAvgAAABsBBQABAAAAxgAAACgBAwABAAAAAgAAADEBAgAKAAAAzgAAADIB +AgAUAAAA2AAAABMCAwABAAAAAgAAAGmHBAABAAAAfAIAAKXEBwDQAAAA7AAAANLGBwBAAAAA +vAEAANPGBwCAAAAA/AEAAEwqAABQYW5hc29uaWMARE1DLUZaNDUAALQAAAABAAAAtAAAAAEA +AABWZXIuMS4wICAAMjAxNDowMjoyNSAxMDozMjowOQBQcmludElNADAyNTAAAA4AAQAWABYA +AgAAAAAAAwBkAAAABwAAAAAACAAAAAAACQAAAAAACgAAAAAACwCsAAAADAAAAAAADQAAAAAA +DgDEAAAAAAEFAAAAAQEBAAAAEAGAAAAACREAABAnAAALDwAAECcAAJcFAAAQJwAAsAgAABAn +AAABHAAAECcAAF4CAAAQJwAAiwAAABAnAADLAwAAECcAAOUbAAAQJwAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + +--AHNPACBLDCDIDAGGGDDFAABECGCA +Content-Type: image/jpeg; + name="4037_015.jpg" +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; + filename="4037_015.jpg" + +iVBORw0KGgoAAAANSUhEUgAABYUAAAL4CAIAAACrzA8fAAAACXBIWXMAAAsTAAALEwEAmpwY +AAAAB3RJTUUH3wMNDiUMca0XkQAAIABJREFUeNq8vWm0bdlVHja/tc+99zX13qv2VSeVmlIv +FSqEOhA2AoEhxMRBg8QOyEkG6WMDSZzhMQTGDDcwiJPhBBMby4SMDJthgmOMAYvGMcF0QgIU +WRKobymp+qpX9fp779nry4+9mjnnWuuc80qMvCpdvXrv3nP22Xutueb85je/D1/3+q+ipF9z +nGfGdZznGCMjKaSIkJQwBYSAEMI0Tatptdrb21utVqvVtJKAAAABEAAiUP+IiECYfsfyJf1B +10+cOHH48OGVlZVSypaWlv379zc2Nr722msNDQ2u+y9zaYQeAQAAAACCHgEAAAB0y969e+ON +KnpOe3v7JZdccj6fwPXr10+aNKnAB956663Zs2fjTgMAAADOKzhOAQAAAFCYs+yO0XfNNQAA +AAAA/nNBfgQAAADQDVddddW6detSqdQZ7JvL5W655RZIEgAAAAAAEayKigqcBQAAAKAAhw8f +3rZt25AhQwYNGpTJZHq4V2tr6/bt25csWbJjxw6cQwAAAACACMiPAAAAAAAAAAAAQH8D/wgA +AAAAAAAAAAD0N9AjAAAAAAAAAAAA0N9AjwAAAAAAAAAAAEB/Az0CAAAAAAAAAAAA/Q30CAAA +AAAAAAAAAPQ30CMAAAAAAAAAAADQ30CPAAAAAAAAAAAAQH/z/0IKJwmNQbpqAAAAAElFTkSu +QmCC + +--AHNPACBLDCDIDAGGGDDFAABECGCA-- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
