[PATCH 3/3] test mailinfo rfc3676 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adds format=flowed and format=flowed delsp=yes messages to the
sample.mbox for testing rfc3676 support.

Signed-off-by: Jay Soffian <jaysoffian@xxxxxxxxx>
---
I added two tests. The previous patch only added one. This also I think
does a better job of checking the new code.

 t/t5100-mailinfo.sh |    2 +-
 t/t5100/info0009    |    5 ++
 t/t5100/info0010    |    5 ++
 t/t5100/msg0009     |   12 +++++
 t/t5100/msg0010     |   12 +++++
 t/t5100/patch0009   |   24 ++++++++++
 t/t5100/patch0010   |   24 ++++++++++
 t/t5100/sample.mbox |  122 +++++++++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 205 insertions(+), 1 deletions(-)
 create mode 100644 t/t5100/info0009
 create mode 100644 t/t5100/info0010
 create mode 100644 t/t5100/msg0009
 create mode 100644 t/t5100/msg0010
 create mode 100644 t/t5100/patch0009
 create mode 100644 t/t5100/patch0010

diff --git a/t/t5100-mailinfo.sh b/t/t5100-mailinfo.sh
index 9b1a745..aaf9889 100755
--- a/t/t5100-mailinfo.sh
+++ b/t/t5100-mailinfo.sh
@@ -11,7 +11,7 @@ test_expect_success 'split sample box' \
 	'git mailsplit -o. ../t5100/sample.mbox >last &&
 	last=`cat last` &&
 	echo total is $last &&
-	test `cat last` = 8'
+	test `cat last` = 10'
 
 for mail in `echo 00*`
 do
diff --git a/t/t5100/info0009 b/t/t5100/info0009
new file mode 100644
index 0000000..850ee58
--- /dev/null
+++ b/t/t5100/info0009
@@ -0,0 +1,5 @@
+Author: Jay Soffian
+Email: jaysoffian@xxxxxxxxxxx
+Subject: Add lorum ipsum text
+Date: Fri, 15 Feb 2008 21:16:18 -0000
+
diff --git a/t/t5100/info0010 b/t/t5100/info0010
new file mode 100644
index 0000000..4a7d931
--- /dev/null
+++ b/t/t5100/info0010
@@ -0,0 +1,5 @@
+Author: Jay Soffian
+Email: jay@xxxxxxxxxxx
+Subject: Add lorum ipsum text
+Date: Fri, 15 Feb 2008 21:15:32 -0000
+
diff --git a/t/t5100/msg0009 b/t/t5100/msg0009
new file mode 100644
index 0000000..38e4d57
--- /dev/null
+++ b/t/t5100/msg0009
@@ -0,0 +1,12 @@
+The text was added twice, once pre-wrapped, once as a single long line,
+which will be flowed.
+
+The next two lines test for space stuffing:
+From nobody
+>
+
+Let's also add some non-ASCII characters:
+
+â?  â?¡ â?¢ â?£ â?¤ â?¥ â?¦ â?§ â?¨ â?©
+
+Signed-off-by: Jay Soffian <jaysoffian@xxxxxxxxxxx>
diff --git a/t/t5100/msg0010 b/t/t5100/msg0010
new file mode 100644
index 0000000..38e4d57
--- /dev/null
+++ b/t/t5100/msg0010
@@ -0,0 +1,12 @@
+The text was added twice, once pre-wrapped, once as a single long line,
+which will be flowed.
+
+The next two lines test for space stuffing:
+From nobody
+>
+
+Let's also add some non-ASCII characters:
+
+â?  â?¡ â?¢ â?£ â?¤ â?¥ â?¦ â?§ â?¨ â?©
+
+Signed-off-by: Jay Soffian <jaysoffian@xxxxxxxxxxx>
diff --git a/t/t5100/patch0009 b/t/t5100/patch0009
new file mode 100644
index 0000000..946cd9b
--- /dev/null
+++ b/t/t5100/patch0009
@@ -0,0 +1,24 @@
+---
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+ lorum.txt |    8 ++++++++
+ 1 files changed, 8 insertions(+), 0 deletions(-)
+
+diff --git a/lorum.txt b/lorum.txt
+index cbe5415..c04a705 100644
+--- a/lorum.txt
++++ b/lorum.txt
+@@ -1,2 +1,10 @@
+ From nobody
++Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
++Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
++tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
++veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
++commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
++velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
++occaecat cupidatat non proident, sunt in culpa qui officia deserunt
++mollit anim id est laborum.
+ >
+-- 
+1.5.4.1.1281.g75df
+
diff --git a/t/t5100/patch0010 b/t/t5100/patch0010
new file mode 100644
index 0000000..946cd9b
--- /dev/null
+++ b/t/t5100/patch0010
@@ -0,0 +1,24 @@
+---
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+ lorum.txt |    8 ++++++++
+ 1 files changed, 8 insertions(+), 0 deletions(-)
+
+diff --git a/lorum.txt b/lorum.txt
+index cbe5415..c04a705 100644
+--- a/lorum.txt
++++ b/lorum.txt
+@@ -1,2 +1,10 @@
+ From nobody
++Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
++Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
++tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
++veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
++commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
++velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
++occaecat cupidatat non proident, sunt in culpa qui officia deserunt
++mollit anim id est laborum.
+ >
+-- 
+1.5.4.1.1281.g75df
+
diff --git a/t/t5100/sample.mbox b/t/t5100/sample.mbox
index 070c166..895ec7f 100644
--- a/t/t5100/sample.mbox
+++ b/t/t5100/sample.mbox
@@ -407,3 +407,125 @@ Subject: [PATCH] another patch
 
 Hey you forgot the patch!
 
+From jaysoffian Fri Feb 15 21:16:18 2008
+Message-ID: <47B6011E.3070904@xxxxxxxxxxx>
+From: Jay Soffian <jaysoffian@xxxxxxxxxxx>
+User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031)
+MIME-Version: 1.0
+To: jay@xxxxxxxxxxx
+Subject: [PATCH] Add lorum ipsum text
+Content-Type: text/plain; charset=UTF-8; format=flowed
+Content-Transfer-Encoding: 8bit
+Date: Fri, 15 Feb 2008 21:16:18 -0000
+
+The text was added twice, once pre-wrapped, once as a single long line,
+which will be flowed.
+
+The next two lines test for space stuffing:
+ From nobody
+ >
+
+Let's also add some non-ASCII characters:
+
+â?  â?¡ â?¢ â?£ â?¤ â?¥ â?¦ â?§ â?¨ â?©
+
+Signed-off-by: Jay Soffian <jaysoffian@xxxxxxxxxxx>
+---
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 
+tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim 
+veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea 
+commodo consequat. Duis aute irure dolor in reprehenderit in voluptate 
+velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint 
+occaecat cupidatat non proident, sunt in culpa qui officia deserunt 
+mollit anim id est laborum.
+
+  lorum.txt |    8 ++++++++
+  1 files changed, 8 insertions(+), 0 deletions(-)
+
+diff --git a/lorum.txt b/lorum.txt
+index cbe5415..c04a705 100644
+--- a/lorum.txt
++++ b/lorum.txt
+@@ -1,2 +1,10 @@
+  From nobody
++Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do 
+eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad 
+minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip 
+ex ea commodo consequat. Duis aute irure dolor in reprehenderit in 
+voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur 
+sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt 
+mollit anim id est laborum.
++Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
++tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
++veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
++commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
++velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
++occaecat cupidatat non proident, sunt in culpa qui officia deserunt
++mollit anim id est laborum.
+  >
+-- 
+1.5.4.1.1281.g75df
+
+From jaysoffian Fri Feb 15 21:15:32 2008
+Message-Id: <091C406F-24BE-4D13-AD75-0F60F0D1A532@xxxxxxxxxxx>
+From: Jay Soffian <jay@xxxxxxxxxxx>
+To: Jay Soffian <jay@xxxxxxxxxxx>
+Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes
+Content-Transfer-Encoding: quoted-printable
+Mime-Version: 1.0 (Apple Message framework v919.2)
+Subject: [PATCH] Add lorum ipsum text
+X-Mailer: Apple Mail (2.919.2)
+Date: Fri, 15 Feb 2008 21:15:32 -0000
+
+The text was added twice, once pre-wrapped, once as a single long line,
+which will be flowed.
+
+The next two lines test for space stuffing:
+ =46rom nobody
+ >
+
+Let's also add some non-ASCII characters:
+
+=E2=91=A0 =E2=91=A1 =E2=91=A2 =E2=91=A3 =E2=91=A4 =E2=91=A5 =E2=91=A6 =
+=E2=91=A7 =E2=91=A8 =E2=91=A9
+
+Signed-off-by: Jay Soffian <jaysoffian@xxxxxxxxxxx>
+---
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do =20
+eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad =20=
+
+minim veniam, quis nostrud exercitation ullamco laboris nisi ut =20
+aliquip ex ea commodo consequat. Duis aute irure dolor in =20
+reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla =20
+pariatur. Excepteur sint occaecat cupidatat non proident, sunt in =20
+culpa qui officia deserunt mollit anim id est laborum.
+
+  lorum.txt |    8 ++++++++
+  1 files changed, 8 insertions(+), 0 deletions(-)
+
+diff --git a/lorum.txt b/lorum.txt
+index cbe5415..c04a705 100644
+--- a/lorum.txt
++++ b/lorum.txt
+@@ -1,2 +1,10 @@
+  =46rom nobody
++Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do =20
+eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad =20=
+
+minim veniam, quis nostrud exercitation ullamco laboris nisi ut =20
+aliquip ex ea commodo consequat. Duis aute irure dolor in =20
+reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla =20
+pariatur. Excepteur sint occaecat cupidatat non proident, sunt in =20
+culpa qui officia deserunt mollit anim id est laborum.
++Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do =20
+eiusmod
++tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
++veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
++commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
++velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
++occaecat cupidatat non proident, sunt in culpa qui officia deserunt
++mollit anim id est laborum.
+  >
+--=20
+1.5.4.1.1281.g75df
+
-- 
1.5.4.1.1281.g75df

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux