You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/08/13 15:55:02 UTC

[incubator-ponymail-unit-tests] 01/02: formatflowed didn't work, so parsing broke there. fixing that.

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 d5c875d31c3e00aea5f907df78b355cb9eb81ae2
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Thu Aug 13 17:42:27 2020 +0200

    formatflowed didn't work, so parsing broke there. fixing that.
    
    formatflowed expects bytes, but we are passing it a string and quietly
    catching the exception (iow we're not converting it).
    
    While not a good thing, it doesn't impact message handling terribly much
    except for in the permalink generation for generators that make use of
    the parsed body. Therefore, I am proposing we adopt the conversion fix
    in Foal and leave as is in the current pony mail.
---
 yaml/parsing-users-httpd-2020-07.yaml | 30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

diff --git a/yaml/parsing-users-httpd-2020-07.yaml b/yaml/parsing-users-httpd-2020-07.yaml
index c7d5c0f..214b420 100644
--- a/yaml/parsing-users-httpd-2020-07.yaml
+++ b/yaml/parsing-users-httpd-2020-07.yaml
@@ -1,4 +1,6 @@
 args:
+  cmd: tests/test-parsing.py --generate yaml/parsing-users-httpd-2020-07.yaml --mbox
+    corpus/users_httpd_apache_org_2020-07.mbox --rootdir /x1/incubator-ponymail-foal/
   parse_html: false
 parsing:
   corpus/users_httpd_apache_org_2020-07.mbox:
@@ -35,7 +37,7 @@ parsing:
     index: 5
     message-id: <CA...@mail.gmail.com>
   - attachments: []
-    body_sha3_256: cf40c4d920b02bfe991c6aaac89ec4c07482f3aa6857574c07886db1198466ac
+    body_sha3_256: b78291663dc09749e706e42c046b27349e36d4ffa40d6ff077608fd7c48efd7c
     index: 6
     message-id: <fd...@unclassified.de>
   - attachments: []
@@ -127,7 +129,7 @@ parsing:
     index: 26
     message-id: <CA...@mail.gmail.com>
   - attachments: []
-    body_sha3_256: 31e3c092db596fbb49c49767e04cf2ac909d2efac6bc306a29b5f72b9d7d1758
+    body_sha3_256: 9096676b9c96df55154be6524d698861b457734b2cc261a6cd7e12fa08a57d5c
     index: 27
     message-id: <ec...@schramm.by>
   - attachments: []
@@ -163,15 +165,15 @@ parsing:
     index: 35
     message-id: <91...@jala.com>
   - attachments: []
-    body_sha3_256: f8006d4fbee08e789e05344f53ccdab133dc9b89652397b50d2b99db1218ccd8
+    body_sha3_256: 045106f2ca8548c55c3fb447efb2cf8c3c0f985f44f01d2c47d391960f388cd4
     index: 36
     message-id: <68...@schramm.by>
   - attachments: []
-    body_sha3_256: dbd9564e1f71ecae7f81c145c5dc176e400aa18cf75d2776b57fcb5a64e093b2
+    body_sha3_256: 033dd075514a783a117372b057ed996b538b95497940b0b09e35c06f5f63d55b
     index: 37
     message-id: <c4...@schramm.by>
   - attachments: []
-    body_sha3_256: 4cf29595b37921266310a3a36283255a476d3ab88b2c7e59f6bef331dc1be031
+    body_sha3_256: a74fa72ac35a4b0a974b42fa4abcbf2b56e3025e8e532ab61d211b71acec5a6f
     index: 38
     message-id: <51...@schramm.by>
   - attachments:
@@ -183,7 +185,7 @@ parsing:
     index: 39
     message-id: <8A...@me.com>
   - attachments: []
-    body_sha3_256: 75422724d6c8912eea2882c2f33307f5b5089eabf64e3aae98799164c4d18f20
+    body_sha3_256: 3d4124fa87d0a85a21098ef7783d644c41cac5ba20054039331662140c0f0033
     index: 40
     message-id: <13...@netrition.com>
   - attachments: []
@@ -227,7 +229,7 @@ parsing:
     index: 50
     message-id: <CA...@mail.gmail.com>
   - attachments: []
-    body_sha3_256: 0c6bdf6b5607e0b01796b3f6cf3a7a1ac4a343d04d06b5466a28271bbe96f607
+    body_sha3_256: d6e5c818b1144f11b9bfc3f803eba97b1b214422544628614c3e6a984745a3a3
     index: 51
     message-id: <5F...@connotech.com>
   - attachments: []
@@ -255,11 +257,11 @@ parsing:
     index: 57
     message-id: <92...@gmail.com>
   - attachments: []
-    body_sha3_256: 6ae2e1b570a1812571b175e9328ec5014043ec6c793234113a6b133d7df3eadb
+    body_sha3_256: 7fcae7a66cd2ee9f82a064fa7d6c90b18832079becaa2c624edef1b7793722ff
     index: 58
     message-id: <5F...@connotech.com>
   - attachments: []
-    body_sha3_256: b82a53d848253a2ee404b60a653ca2103e8c95d2e2c6ab4127038c2aaa69b0c2
+    body_sha3_256: e963d116d8e54809be2a7be7e3f273db2e7540d3c02214f94d3c96c9504b9a25
     index: 59
     message-id: <52...@gmail.com>
   - attachments: []
@@ -287,7 +289,7 @@ parsing:
     index: 65
     message-id: <02...@mail.ru>
   - attachments: []
-    body_sha3_256: a2dabee90df9ab56b72620f713e72f49f2a4b0f0f4ec406818ba312c0c9c19c0
+    body_sha3_256: 40b45e093fce03f47a500f9bc2a901062010cfa590ac806e6874d603496417cb
     index: 66
     message-id: <73...@hotmail.com>
   - attachments: []
@@ -379,7 +381,7 @@ parsing:
     index: 86
     message-id: <03...@mail.ru>
   - attachments: []
-    body_sha3_256: 7b64b0ea3b10b18ae05ccdae511a8c959c4e7fc9d9e03de84e9ce97144a9d3b8
+    body_sha3_256: d20b877bedcd0f820c7a6c39a68c196d0abb30ae99db0be72211631716d8ade5
     index: 87
     message-id: <36...@gmx.de>
   - attachments: []
@@ -399,7 +401,7 @@ parsing:
     index: 91
     message-id: <20...@apache.open.source.it>
   - attachments: []
-    body_sha3_256: 516a84f7188abece2980dd6b84e096df127cee5ac139a1f1ab283add4b6e752a
+    body_sha3_256: 6ef178a04e40c97ed8e7b5dc9336a3219490aca03fc7a26ca1917ed233e93209
     index: 92
     message-id: <fc...@gmail.com>
   - attachments: []
@@ -423,11 +425,11 @@ parsing:
     index: 97
     message-id: <TY...@TY2PR01MB3052.jpnprd01.prod.outlook.com>
   - attachments: []
-    body_sha3_256: 5cd65cc06d2e216428bc53514f1e1ed5a4567cb19a4ba029b926b85ff8ff0648
+    body_sha3_256: 59ab162fd494ee8f06cf30e59f0d66036ae3f5e3fde1b05863e4784b1ef4ef16
     index: 98
     message-id: <69...@netrition.com>
   - attachments: []
-    body_sha3_256: 6edad4206465d0b3412582a78e3d05a198dac7d4513df849e7e1653be1cd5a59
+    body_sha3_256: fc1552fd231d9cfc552ec6108a9e26942cf6e3afb6434aafc6db22396f76d82b
     index: 99
     message-id: <d0...@netrition.com>
   - attachments: []