This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-unit-tests.git
commit 28055acf2b2a5fae51578fb64320a65d6fc2b9a6 Author: Daniel Gruno <[email protected]> AuthorDate: Wed Aug 12 09:56:11 2020 +0200 Miscellaneous parsing tests and corpus --- corpus/empty_attachment.mbox | 44 +++++++++++++++++++++ corpus/empty_body.mbox | 51 ++++++++++++++++++++++++ corpus/no_date.mbox | 5 +++ corpus/text_enriched.mbox | 87 +++++++++++++++++++++++++++++++++++++++++ yaml/parsing-miscellaneous.yaml | 26 ++++++++++++ 5 files changed, 213 insertions(+) diff --git a/corpus/empty_attachment.mbox b/corpus/empty_attachment.mbox new file mode 100644 index 0000000..07b490f --- /dev/null +++ b/corpus/empty_attachment.mbox @@ -0,0 +1,44 @@ +From tomcat-user-return-50118-qmlist-jakarta-archive-tomcat-user=jakarta.apache....@jakarta.apache.org Fri Jan 24 12:24:14 2003 +Return-Path: <tomcat-user-return-50118-qmlist-jakarta-archive-tomcat-user=jakarta.apache....@jakarta.apache.org> +Delivered-To: [email protected] +Received: (qmail 13295 invoked from network); 24 Jan 2003 12:24:14 -0000 +Received: from exchange.sun.com (192.18.33.10) + by 208.185.179.12.available.above.net with SMTP; 24 Jan 2003 12:24:14 -0000 +Received: (qmail 24215 invoked by uid 97); 24 Jan 2003 12:25:16 -0000 +Delivered-To: [email protected] +Received: (qmail 24199 invoked by uid 97); 24 Jan 2003 12:25:16 -0000 +Mailing-List: contact [email protected]; run by ezmlm +Precedence: bulk +List-Unsubscribe: <mailto:[email protected]> +List-Subscribe: <mailto:[email protected]> +List-Help: <mailto:[email protected]> +List-Post: <mailto:[email protected]> +List-Id: "Tomcat Users List" <tomcat-user.jakarta.apache.org> +Reply-To: "Tomcat Users List" <[email protected]> +Delivered-To: mailing list [email protected] +Received: (qmail 24187 invoked by uid 98); 24 Jan 2003 12:25:15 -0000 +X-Antivirus: nagoya (v4218 created Aug 14 2002) +Message-ID: <004201c2c3a3$82f86e40$160aa8c0@win98> +From: "Henry" <[email protected]> +To: "Tomcat Users List" <[email protected]> +Subject: how do I detect alive sessions at this moment? +Date: Fri, 24 Jan 2003 20:24:15 +0800 +MIME-Version: 1.0 +Content-Type: multipart/alternative; + boundary="----=_NextPart_000_003F_01C2C3E6.90B6F900" +X-Priority: 3 +X-MSMail-Priority: Normal +X-Mailer: Microsoft Outlook Express 6.00.2800.1106 +X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 +X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N +X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N + +------=_NextPart_000_003F_01C2C3E6.90B6F900 +Content-Type: text/plain; + charset="big5" +Content-Transfer-Encoding: quoted-printable + + +------=_NextPart_000_003F_01C2C3E6.90B6F900-- + + diff --git a/corpus/empty_body.mbox b/corpus/empty_body.mbox new file mode 100644 index 0000000..d1f849b --- /dev/null +++ b/corpus/empty_body.mbox @@ -0,0 +1,51 @@ +From issues-return-129-apmail-ponymail-issues-archive=ponymail.apache....@ponymail.incubator.apache.org Thu Nov 17 00:49:30 2016 +Return-Path: <issues-return-129-apmail-ponymail-issues-archive=ponymail.apache....@ponymail.incubator.apache.org> +X-Original-To: [email protected] +Delivered-To: [email protected] +Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) + by minotaur.apache.org (Postfix) with SMTP id A72D919611 + for <[email protected]>; Thu, 17 Nov 2016 00:49:30 +0000 (UTC) +Received: (qmail 22868 invoked by uid 500); 17 Nov 2016 00:49:30 -0000 +Delivered-To: [email protected] +Received: (qmail 22841 invoked by uid 500); 17 Nov 2016 00:49:30 -0000 +Mailing-List: contact [email protected]; run by ezmlm +Precedence: bulk +List-Help: <mailto:[email protected]> +List-Unsubscribe: <mailto:[email protected]> +List-Post: <mailto:[email protected]> +List-Id: <issues.ponymail.incubator.apache.org> +Reply-To: [email protected] +Delivered-To: mailing list [email protected] +Received: (qmail 22832 invoked by uid 99); 17 Nov 2016 00:49:30 -0000 +Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) + by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2016 00:49:30 +0000 +Received: from localhost (localhost [127.0.0.1]) + by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2614B1A00A2 + for <[email protected]>; Thu, 17 Nov 2016 00:49:30 +0000 (UTC) +X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org +X-Spam-Flag: NO +X-Spam-Score: -7.019 +X-Spam-Level: +X-Spam-Status: No, score=-7.019 tagged_above=-999 required=6.31 + tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, + RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, + RP_MATCHES_RCVD=-2.999] autolearn=disabled +Received: from mx1-lw-eu.apache.org ([10.40.0.8]) + by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) + with ESMTP id XffM2rPGCqQk for <[email protected]>; + Thu, 17 Nov 2016 00:49:29 +0000 (UTC) +Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) + by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id DD1285FCC9 + for <[email protected]>; Thu, 17 Nov 2016 00:49:28 +0000 (UTC) +Received: (qmail 22820 invoked by uid 99); 17 Nov 2016 00:49:28 -0000 +Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) + by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2016 00:49:28 +0000 +Received: by minotaur.apache.org (Postfix, from userid 1721) + id D69A719610; Thu, 17 Nov 2016 00:49:27 +0000 (UTC) +To: [email protected] +Subject: Test email with empty body +Message-Id: <[email protected]> +Date: Thu, 17 Nov 2016 00:49:27 +0000 (UTC) +From: [email protected] (Sebastian Bazley) + + diff --git a/corpus/no_date.mbox b/corpus/no_date.mbox new file mode 100644 index 0000000..220af97 --- /dev/null +++ b/corpus/no_date.mbox @@ -0,0 +1,5 @@ +From +List-Id: <[email protected]> + +No date + diff --git a/corpus/text_enriched.mbox b/corpus/text_enriched.mbox new file mode 100644 index 0000000..cb4b797 --- /dev/null +++ b/corpus/text_enriched.mbox @@ -0,0 +1,87 @@ +From tomcat-user-return-34660-apmail-jakarta-tomcat-user-archive=jakarta.apache....@jakarta.apache.org Mon May 14 19:23:38 2001 +Return-Path: <tomcat-user-return-34660-apmail-jakarta-tomcat-user-archive=jakarta.apache....@jakarta.apache.org> +Delivered-To: [email protected] +Received: (qmail 71623 invoked by uid 500); 14 May 2001 19:23:25 -0000 +Mailing-List: contact [email protected]; run by ezmlm +Precedence: bulk +Reply-To: [email protected] +list-help: <mailto:[email protected]> +list-unsubscribe: <mailto:[email protected]> +list-post: <mailto:[email protected]> +List-Id: <tomcat-user.jakarta.apache.org> +Delivered-To: mailing list [email protected] +Received: (qmail 71599 invoked from network); 14 May 2001 19:23:07 -0000 +Received: from netgate.emmes.com ([email protected]) + by h31.sny.collab.net with SMTP; 14 May 2001 19:23:07 -0000 +Received: from kumar ([10.0.0.229]) + by netgate.emmes.com (8.9.3/8.9.3) with SMTP id OAA09624 + for <[email protected]>; Mon, 14 May 2001 14:58:19 -0400 +Message-Id: <[email protected]> +X-Sender: [email protected] +X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) +Date: Mon, 14 May 2001 15:23:21 -0400 +To: [email protected] +From: Kumar Thotapally <[email protected]> +Subject: Virtual Hosts +Mime-Version: 1.0 +Content-Type: text/enriched; charset="us-ascii" +X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N + +Hi, + + +I am able to startup and shutdown multiple JVMs (using server1.xml ... +etc). I created applications (for example, JVM1, JVM2) under web-apps. + + +When I enter http://localhost:8007/jvm1/servlet/HelloWorld1 in my +browser, + +it works fine. + + +However, with the following code in server1.xml : + + +<fontfamily><param>Courier New</param><bigger> <<ContextManager +debug="0" workDir="work_jvm1" showDebugInfo="true" > + +</bigger></fontfamily> + +followed by + +<fontfamily><param>Courier New</param><bigger> <<!-- @@@ the /jvm1 +context --> + + + <<Host name="www.tomcat1.com" > + + <<Context path="/jvm1" + + docBase="webapps/jvm1" + + crossContext="false" + +</bigger></fontfamily><fontfamily><param>Courier New</param><bigger> +debug="1" + + reloadable="true" > + + <</Context> + + <</Host> + +</bigger></fontfamily>along with other contexts. + + +When I enter www.tomcat1.com, I am not able to get the result. + + +Any suggestions? + + +Thanks, + + +Kumar. + diff --git a/yaml/parsing-miscellaneous.yaml b/yaml/parsing-miscellaneous.yaml new file mode 100644 index 0000000..ec5f522 --- /dev/null +++ b/yaml/parsing-miscellaneous.yaml @@ -0,0 +1,26 @@ +args: + cmd: tests/test-parsing.py --rootdir /x1/pypony/ --mbox corpus/empty_attachment.mbox + corpus/empty_body.mbox corpus/no_date.mbox corpus/text_enriched.mbox --generate + yaml/parsing-miscellaneous.yaml + parse_html: false +parsing: + corpus/empty_attachment.mbox: + - attachments: [] + body_sha3_256: a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a + index: 0 + message-id: <004201c2c3a3$82f86e40$160aa8c0@win98> + corpus/empty_body.mbox: + - attachments: [] + body_sha3_256: a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a + index: 0 + message-id: <[email protected]> + corpus/no_date.mbox: + - attachments: [] + body_sha3_256: d8e5444ff55847c68aa94019af9cfc2527597f07a80444ea4ca4a96e6de48bc6 + index: 0 + message-id: '' + corpus/text_enriched.mbox: + - attachments: [] + body_sha3_256: a8001fbfc118043dc5ddfc4dec185ccd8e6a03505f64adf4ffe5f91ffb66fe48 + index: 0 + message-id: <[email protected]>
