You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2016/11/23 16:45:37 UTC
incubator-ponymail git commit: Add tests to show encoding error where
charset does not match text
Repository: incubator-ponymail
Updated Branches:
refs/heads/master 5eb648e0b -> c4fdeadd9
Add tests to show encoding error where charset does not match text
The test was extracted from
http://spamassassin.apache.org/publiccorpus/20030228_easy_ham.tar.bz2
The version in resources/valid is the original
The version in resources/pass has a fixed charset declaration
Note: although strictly speaking the original mbox contents are broken,
mail archivers should still be able to handle it
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/c4fdeadd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/c4fdeadd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/c4fdeadd
Branch: refs/heads/master
Commit: c4fdeadd961d596d06e41a4d3b7c0543e71c82f4
Parents: 5eb648e
Author: Sebb <se...@apache.org>
Authored: Wed Nov 23 16:44:27 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Wed Nov 23 16:44:27 2016 +0000
----------------------------------------------------------------------
...2ff6189badfe70c2fe3c972466a2_fixcharset.mbox | 76 ++++++++++++++++++++
.../00439.982a2ff6189badfe70c2fe3c972466a2.mbox | 75 +++++++++++++++++++
2 files changed, 151 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/c4fdeadd/test/resources/pass/00439.982a2ff6189badfe70c2fe3c972466a2_fixcharset.mbox
----------------------------------------------------------------------
diff --git a/test/resources/pass/00439.982a2ff6189badfe70c2fe3c972466a2_fixcharset.mbox b/test/resources/pass/00439.982a2ff6189badfe70c2fe3c972466a2_fixcharset.mbox
new file mode 100644
index 0000000..2790253
--- /dev/null
+++ b/test/resources/pass/00439.982a2ff6189badfe70c2fe3c972466a2_fixcharset.mbox
@@ -0,0 +1,76 @@
+From fork-admin@xent.com Thu Sep 5 11:31:43 2002
+Return-Path: <fo...@xent.com>
+Delivered-To: yyyy@localhost.spamassassin.taint.org
+Received: from localhost (jalapeno [127.0.0.1])
+ by jmason.org (Postfix) with ESMTP id 02A0716F21
+ for <jm...@localhost>; Thu, 5 Sep 2002 11:28:50 +0100 (IST)
+Received: from jalapeno [127.0.0.1]
+ by localhost with IMAP (fetchmail-5.9.0)
+ for jm@localhost (single-drop); Thu, 05 Sep 2002 11:28:50 +0100 (IST)
+Received: from xent.com ([64.161.22.236]) by dogma.slashnull.org
+ (8.11.6/8.11.6) with ESMTP id g857d0Z09055 for <jm...@jmason.org>;
+ Thu, 5 Sep 2002 08:39:01 +0100
+Received: from lair.xent.com (localhost [127.0.0.1]) by xent.com (Postfix)
+ with ESMTP id 353312940DF; Thu, 5 Sep 2002 00:36:03 -0700 (PDT)
+Delivered-To: fork@spamassassin.taint.org
+Received: from localhost.localdomain
+ (dsl-208-151-246-47.dsl.easystreet.com [208.151.246.47]) by xent.com
+ (Postfix) with ESMTP id 4F30B2940AA for <fo...@xent.com>; Thu,
+ 5 Sep 2002 00:35:33 -0700 (PDT)
+Received: (from karl@localhost) by localhost.localdomain (8.11.6/8.11.6)
+ id g857oAO12400; Thu, 5 Sep 2002 00:50:10 -0700
+X-Authentication-Warning: localhost.localdomain: karl set sender to
+ kra@monkey.org using -f
+To: bitbitch@magnesium.net
+Cc: "'fork@spamassassin.taint.org'" <fo...@spamassassin.taint.org>
+Subject: Re: Re[2]: Java is for kiddies
+References: <80...@mis-exchange.mv.timesten.com>
+ <14...@magnesium.net>
+From: Karl Anderson <kr...@monkey.org>
+Organization: Ape Mgt.
+In-Reply-To: bitbitch@magnesium.net's message of
+ "Wed, 4 Sep 2002 23:07:41 -0400"
+Message-Id: <m3...@localhost.localdomain>
+User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.7
+MIME-Version: 1.0
+X-Content-Type: text/plain; charset=us-ascii
+Content-Type: text/plain; charset=Windows-1252
+Sender: fork-admin@xent.com
+Errors-To: fork-admin@xent.com
+X-Beenthere: fork@spamassassin.taint.org
+X-Mailman-Version: 2.0.11
+Precedence: bulk
+List-Help: <mailto:fork-request@xent.com?subject=help>
+List-Post: <ma...@spamassassin.taint.org>
+List-Subscribe: <http://xent.com/mailman/listinfo/fork>, <mailto:fork-request@xent.com?subject=subscribe>
+List-Id: Friends of Rohit Khare <fork.xent.com>
+List-Unsubscribe: <http://xent.com/mailman/listinfo/fork>,
+ <mailto:fork-request@xent.com?subject=unsubscribe>
+List-Archive: <http://xent.com/pipermail/fork/>
+Date: 05 Sep 2002 00:50:10 -0700
+Content-Transfer-Encoding: 8bit
+X-MIME-Autoconverted: from quoted-printable to 8bit by dogma.slashnull.org
+ id g857d0Z09055
+
+bitbitch@magnesium.net writes:
+
+> SL> <snip>
+> SL> Misc rants about finding jobs, java vs C, what makes a good programmer, etc.
+> SL> </snip>
+> <snip>
+> SL> Okay, hmm, I thought twice about this, but what the hey, jobs are hard to
+> SL> come by. There's a company hiring in Mountain View, looking for a few good
+> </snip>
+>
+> I give Adam an hour or so to come up with an adequate number of
+> excuses as to why -this- job isn't worth it. :)
+
+http://www.netli.com/careers/index.htm
+
+>* Along with your resume, please answer this question: What does this \ufffdC\ufffd statement do? #define XY(s, m) (&((s *)0)->m)
+
+Besides provide job security?
+
+--
+Karl Anderson kra@monkey.org http://www.monkey.org/~kra/
+
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/c4fdeadd/test/resources/valid/00439.982a2ff6189badfe70c2fe3c972466a2.mbox
----------------------------------------------------------------------
diff --git a/test/resources/valid/00439.982a2ff6189badfe70c2fe3c972466a2.mbox b/test/resources/valid/00439.982a2ff6189badfe70c2fe3c972466a2.mbox
new file mode 100644
index 0000000..3125bef
--- /dev/null
+++ b/test/resources/valid/00439.982a2ff6189badfe70c2fe3c972466a2.mbox
@@ -0,0 +1,75 @@
+From fork-admin@xent.com Thu Sep 5 11:31:43 2002
+Return-Path: <fo...@xent.com>
+Delivered-To: yyyy@localhost.spamassassin.taint.org
+Received: from localhost (jalapeno [127.0.0.1])
+ by jmason.org (Postfix) with ESMTP id 02A0716F21
+ for <jm...@localhost>; Thu, 5 Sep 2002 11:28:50 +0100 (IST)
+Received: from jalapeno [127.0.0.1]
+ by localhost with IMAP (fetchmail-5.9.0)
+ for jm@localhost (single-drop); Thu, 05 Sep 2002 11:28:50 +0100 (IST)
+Received: from xent.com ([64.161.22.236]) by dogma.slashnull.org
+ (8.11.6/8.11.6) with ESMTP id g857d0Z09055 for <jm...@jmason.org>;
+ Thu, 5 Sep 2002 08:39:01 +0100
+Received: from lair.xent.com (localhost [127.0.0.1]) by xent.com (Postfix)
+ with ESMTP id 353312940DF; Thu, 5 Sep 2002 00:36:03 -0700 (PDT)
+Delivered-To: fork@spamassassin.taint.org
+Received: from localhost.localdomain
+ (dsl-208-151-246-47.dsl.easystreet.com [208.151.246.47]) by xent.com
+ (Postfix) with ESMTP id 4F30B2940AA for <fo...@xent.com>; Thu,
+ 5 Sep 2002 00:35:33 -0700 (PDT)
+Received: (from karl@localhost) by localhost.localdomain (8.11.6/8.11.6)
+ id g857oAO12400; Thu, 5 Sep 2002 00:50:10 -0700
+X-Authentication-Warning: localhost.localdomain: karl set sender to
+ kra@monkey.org using -f
+To: bitbitch@magnesium.net
+Cc: "'fork@spamassassin.taint.org'" <fo...@spamassassin.taint.org>
+Subject: Re: Re[2]: Java is for kiddies
+References: <80...@mis-exchange.mv.timesten.com>
+ <14...@magnesium.net>
+From: Karl Anderson <kr...@monkey.org>
+Organization: Ape Mgt.
+In-Reply-To: bitbitch@magnesium.net's message of
+ "Wed, 4 Sep 2002 23:07:41 -0400"
+Message-Id: <m3...@localhost.localdomain>
+User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.7
+MIME-Version: 1.0
+Content-Type: text/plain; charset=us-ascii
+Sender: fork-admin@xent.com
+Errors-To: fork-admin@xent.com
+X-Beenthere: fork@spamassassin.taint.org
+X-Mailman-Version: 2.0.11
+Precedence: bulk
+List-Help: <mailto:fork-request@xent.com?subject=help>
+List-Post: <ma...@spamassassin.taint.org>
+List-Subscribe: <http://xent.com/mailman/listinfo/fork>, <mailto:fork-request@xent.com?subject=subscribe>
+List-Id: Friends of Rohit Khare <fork.xent.com>
+List-Unsubscribe: <http://xent.com/mailman/listinfo/fork>,
+ <mailto:fork-request@xent.com?subject=unsubscribe>
+List-Archive: <http://xent.com/pipermail/fork/>
+Date: 05 Sep 2002 00:50:10 -0700
+Content-Transfer-Encoding: 8bit
+X-MIME-Autoconverted: from quoted-printable to 8bit by dogma.slashnull.org
+ id g857d0Z09055
+
+bitbitch@magnesium.net writes:
+
+> SL> <snip>
+> SL> Misc rants about finding jobs, java vs C, what makes a good programmer, etc.
+> SL> </snip>
+> <snip>
+> SL> Okay, hmm, I thought twice about this, but what the hey, jobs are hard to
+> SL> come by. There's a company hiring in Mountain View, looking for a few good
+> </snip>
+>
+> I give Adam an hour or so to come up with an adequate number of
+> excuses as to why -this- job isn't worth it. :)
+
+http://www.netli.com/careers/index.htm
+
+>* Along with your resume, please answer this question: What does this \ufffdC\ufffd statement do? #define XY(s, m) (&((s *)0)->m)
+
+Besides provide job security?
+
+--
+Karl Anderson kra@monkey.org http://www.monkey.org/~kra/
+