Commit
Author: mdecimus [mauro@stalw.art]
Hash: 32edb1f5373df0f64f21fb43eb214d2842500ded
Timestamp: Fri, 01 Mar 2024 15:53:19 +0000 (8 months ago)

+39 -2668 +/-11 browse
v0.3.8
1diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
2deleted file mode 100644
3index e2b24cc..0000000
4--- a/.github/FUNDING.yml
5+++ /dev/null
6 @@ -1,13 +0,0 @@
7- # These are supported funding model platforms
8-
9- github: stalwartlabs
10- patreon: # Replace with a single Patreon username
11- open_collective: # Replace with a single Open Collective username
12- ko_fi: # Replace with a single Ko-fi username
13- tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
14- community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
15- liberapay: # Replace with a single Liberapay username
16- issuehunt: # Replace with a single IssueHunt username
17- otechie: # Replace with a single Otechie username
18- lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
19- custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
20 diff --git a/CHANGELOG.md b/CHANGELOG.md
21index 0dcb310..1af2114 100644
22--- a/CHANGELOG.md
23+++ b/CHANGELOG.md
24 @@ -1,3 +1,8 @@
25+ mail-auth 0.3.8
26+ ================================
27+ - Made `pct` field accessible.
28+ - ARF Feedback storage of messages of headers as strings.
29+
30 mail-auth 0.3.7
31 ================================
32 - Fix: Incorrect body hash when content is empty (#22)
33 diff --git a/Cargo.toml b/Cargo.toml
34index 8706b91..ea5babb 100644
35--- a/Cargo.toml
36+++ b/Cargo.toml
37 @@ -1,7 +1,7 @@
38 [package]
39 name = "mail-auth"
40 description = "DKIM, ARC, SPF and DMARC library for Rust"
41- version = "0.3.7"
42+ version = "0.3.8"
43 edition = "2021"
44 authors = [ "Stalwart Labs <hello@stalw.art>"]
45 license = "Apache-2.0 OR MIT"
46 diff --git a/examples/report_arf_generate.rs b/examples/report_arf_generate.rs
47index 0633fe5..6c35deb 100644
48--- a/examples/report_arf_generate.rs
49+++ b/examples/report_arf_generate.rs
50 @@ -38,7 +38,7 @@ fn main() {
51 .with_dkim_selector_dns("v=dkim1;")
52 .with_spf_dns("v=spf1")
53 .with_identity_alignment(IdentityAlignment::DkimSpf)
54- .with_message(&b"From: hello@world.org\r\nTo: ciao@mundo.org\r\n\r\n"[..])
55+ .with_message("From: hello@world.org\r\nTo: ciao@mondo.org\r\n\r\n")
56 .to_rfc5322(
57 ("DMARC Reports", "no-reply@example.org"),
58 "ruf@otherdomain.com",
59 diff --git a/resources/arf/004.json b/resources/arf/004.json
60index dc4fc0f..548bab5 100644
61--- a/resources/arf/004.json
62+++ b/resources/arf/004.json
63 @@ -29,1461 +29,5 @@
64 "spf_dns": null,
65 "identity_alignment": "Unspecified",
66 "message": null,
67- "headers": [
68- 65,
69- 117,
70- 116,
71- 104,
72- 101,
73- 110,
74- 116,
75- 105,
76- 99,
77- 97,
78- 116,
79- 105,
80- 111,
81- 110,
82- 45,
83- 82,
84- 101,
85- 115,
86- 117,
87- 108,
88- 116,
89- 115,
90- 58,
91- 32,
92- 98,
93- 111,
94- 120,
95- 46,
96- 109,
97- 121,
98- 100,
99- 111,
100- 109,
101- 97,
102- 105,
103- 110,
104- 46,
105- 110,
106- 97,
107- 109,
108- 101,
109- 59,
110- 10,
111- 9,
112- 100,
113- 107,
114- 105,
115- 109,
116- 61,
117- 102,
118- 97,
119- 105,
120- 108,
121- 32,
122- 114,
123- 101,
124- 97,
125- 115,
126- 111,
127- 110,
128- 61,
129- 34,
130- 115,
131- 105,
132- 103,
133- 110,
134- 97,
135- 116,
136- 117,
137- 114,
138- 101,
139- 32,
140- 118,
141- 101,
142- 114,
143- 105,
144- 102,
145- 105,
146- 99,
147- 97,
148- 116,
149- 105,
150- 111,
151- 110,
152- 32,
153- 102,
154- 97,
155- 105,
156- 108,
157- 101,
158- 100,
159- 34,
160- 32,
161- 40,
162- 50,
163- 48,
164- 52,
165- 56,
166- 45,
167- 98,
168- 105,
169- 116,
170- 32,
171- 107,
172- 101,
173- 121,
174- 59,
175- 32,
176- 117,
177- 110,
178- 112,
179- 114,
180- 111,
181- 116,
182- 101,
183- 99,
184- 116,
185- 101,
186- 100,
187- 41,
188- 32,
189- 104,
190- 101,
191- 97,
192- 100,
193- 101,
194- 114,
195- 46,
196- 100,
197- 61,
198- 105,
199- 110,
200- 116,
201- 101,
202- 114,
203- 112,
204- 117,
205- 98,
206- 108,
207- 105,
208- 99,
209- 97,
210- 116,
211- 105,
212- 111,
213- 110,
214- 46,
215- 111,
216- 114,
217- 103,
218- 32,
219- 104,
220- 101,
221- 97,
222- 100,
223- 101,
224- 114,
225- 46,
226- 105,
227- 61,
228- 64,
229- 105,
230- 110,
231- 116,
232- 101,
233- 114,
234- 112,
235- 117,
236- 98,
237- 108,
238- 105,
239- 99,
240- 97,
241- 116,
242- 105,
243- 111,
244- 110,
245- 46,
246- 111,
247- 114,
248- 103,
249- 32,
250- 104,
251- 101,
252- 97,
253- 100,
254- 101,
255- 114,
256- 46,
257- 98,
258- 61,
259- 34,
260- 80,
261- 114,
262- 115,
263- 84,
264- 78,
265- 110,
266- 117,
267- 72,
268- 34,
269- 59,
270- 10,
271- 9,
272- 100,
273- 107,
274- 105,
275- 109,
276- 45,
277- 97,
278- 116,
279- 112,
280- 115,
281- 61,
282- 110,
283- 101,
284- 117,
285- 116,
286- 114,
287- 97,
288- 108,
289- 10,
290- 82,
291- 101,
292- 99,
293- 101,
294- 105,
295- 118,
296- 101,
297- 100,
298- 58,
299- 32,
300- 102,
301- 114,
302- 111,
303- 109,
304- 32,
305- 100,
306- 115,
307- 108,
308- 98,
309- 45,
310- 48,
311- 48,
312- 50,
313- 45,
314- 50,
315- 48,
316- 50,
317- 45,
318- 49,
319- 53,
320- 48,
321- 45,
322- 49,
323- 50,
324- 55,
325- 46,
326- 48,
327- 48,
328- 50,
329- 46,
330- 50,
331- 48,
332- 50,
333- 46,
334- 112,
335- 111,
336- 111,
337- 108,
338- 115,
339- 46,
340- 118,
341- 111,
342- 100,
343- 97,
344- 102,
345- 111,
346- 110,
347- 101,
348- 45,
349- 105,
350- 112,
351- 46,
352- 100,
353- 101,
354- 32,
355- 40,
356- 100,
357- 115,
358- 108,
359- 98,
360- 45,
361- 49,
362- 56,
363- 56,
364- 45,
365- 48,
366- 57,
367- 57,
368- 45,
369- 48,
370- 56,
371- 48,
372- 45,
373- 48,
374- 50,
375- 57,
376- 46,
377- 49,
378- 56,
379- 56,
380- 46,
381- 48,
382- 57,
383- 57,
384- 46,
385- 112,
386- 111,
387- 111,
388- 108,
389- 115,
390- 46,
391- 118,
392- 111,
393- 100,
394- 97,
395- 102,
396- 111,
397- 110,
398- 101,
399- 45,
400- 105,
401- 112,
402- 46,
403- 100,
404- 101,
405- 32,
406- 91,
407- 49,
408- 56,
409- 56,
410- 46,
411- 57,
412- 57,
413- 46,
414- 56,
415- 48,
416- 46,
417- 50,
418- 57,
419- 93,
420- 41,
421- 10,
422- 9,
423- 98,
424- 121,
425- 32,
426- 115,
427- 97,
428- 105,
429- 110,
430- 97,
431- 121,
432- 46,
433- 105,
434- 110,
435- 116,
436- 101,
437- 114,
438- 112,
439- 117,
440- 98,
441- 108,
442- 105,
443- 99,
444- 97,
445- 116,
446- 105,
447- 111,
448- 110,
449- 46,
450- 111,
451- 114,
452- 103,
453- 32,
454- 40,
455- 80,
456- 111,
457- 115,
458- 116,
459- 102,
460- 105,
461- 120,
462- 41,
463- 32,
464- 119,
465- 105,
466- 116,
467- 104,
468- 32,
469- 69,
470- 83,
471- 77,
472- 84,
473- 80,
474- 65,
475- 32,
476- 105,
477- 100,
478- 32,
479- 54,
480- 66,
481- 66,
482- 50,
483- 51,
484- 65,
485- 50,
486- 68,
487- 51,
488- 10,
489- 9,
490- 102,
491- 111,
492- 114,
493- 32,
494- 60,
495- 97,
496- 100,
497- 100,
498- 114,
499- 101,
500- 115,
501- 115,
502- 64,
503- 109,
504- 121,
505- 111,
506- 116,
507- 104,
508- 101,
509- 114,
510- 100,
511- 111,
512- 109,
513- 97,
514- 105,
515- 110,
516- 46,
517- 110,
518- 97,
519- 109,
520- 101,
521- 62,
522- 59,
523- 32,
524- 84,
525- 117,
526- 101,
527- 44,
528- 32,
529- 32,
530- 53,
531- 32,
532- 79,
533- 99,
534- 116,
535- 32,
536- 50,
537- 48,
538- 50,
539- 49,
540- 32,
541- 48,
542- 48,
543- 58,
544- 51,
545- 54,
546- 58,
547- 53,
548- 50,
549- 32,
550- 45,
551- 48,
552- 52,
553- 48,
554- 48,
555- 32,
556- 40,
557- 69,
558- 68,
559- 84,
560- 41,
561- 10,
562- 68,
563- 75,
564- 73,
565- 77,
566- 45,
567- 70,
568- 105,
569- 108,
570- 116,
571- 101,
572- 114,
573- 58,
574- 32,
575- 79,
576- 112,
577- 101,
578- 110,
579- 68,
580- 75,
581- 73,
582- 77,
583- 32,
584- 70,
585- 105,
586- 108,
587- 116,
588- 101,
589- 114,
590- 32,
591- 118,
592- 50,
593- 46,
594- 49,
595- 49,
596- 46,
597- 48,
598- 32,
599- 115,
600- 97,
601- 105,
602- 110,
603- 97,
604- 121,
605- 46,
606- 105,
607- 110,
608- 116,
609- 101,
610- 114,
611- 112,
612- 117,
613- 98,
614- 108,
615- 105,
616- 99,
617- 97,
618- 116,
619- 105,
620- 111,
621- 110,
622- 46,
623- 111,
624- 114,
625- 103,
626- 32,
627- 54,
628- 66,
629- 66,
630- 50,
631- 51,
632- 65,
633- 50,
634- 68,
635- 51,
636- 10,
637- 68,
638- 75,
639- 73,
640- 77,
641- 45,
642- 83,
643- 105,
644- 103,
645- 110,
646- 97,
647- 116,
648- 117,
649- 114,
650- 101,
651- 58,
652- 32,
653- 118,
654- 61,
655- 49,
656- 59,
657- 32,
658- 97,
659- 61,
660- 114,
661- 115,
662- 97,
663- 45,
664- 115,
665- 104,
666- 97,
667- 50,
668- 53,
669- 54,
670- 59,
671- 32,
672- 99,
673- 61,
674- 114,
675- 101,
676- 108,
677- 97,
678- 120,
679- 101,
680- 100,
681- 47,
682- 114,
683- 101,
684- 108,
685- 97,
686- 120,
687- 101,
688- 100,
689- 59,
690- 10,
691- 9,
692- 100,
693- 61,
694- 105,
695- 110,
696- 116,
697- 101,
698- 114,
699- 112,
700- 117,
701- 98,
702- 108,
703- 105,
704- 99,
705- 97,
706- 116,
707- 105,
708- 111,
709- 110,
710- 46,
711- 111,
712- 114,
713- 103,
714- 59,
715- 32,
716- 115,
717- 61,
718- 100,
719- 101,
720- 102,
721- 97,
722- 117,
723- 108,
724- 116,
725- 59,
726- 32,
727- 116,
728- 61,
729- 49,
730- 54,
731- 51,
732- 51,
733- 52,
734- 48,
735- 56,
736- 54,
737- 49,
738- 50,
739- 59,
740- 10,
741- 9,
742- 98,
743- 104,
744- 61,
745- 113,
746- 49,
747- 47,
748- 79,
749- 80,
750- 83,
751- 110,
752- 43,
753- 86,
754- 88,
755- 116,
756- 101,
757- 89,
758- 50,
759- 43,
760- 68,
761- 72,
762- 88,
763- 113,
764- 79,
765- 73,
766- 103,
767- 115,
768- 53,
769- 76,
770- 115,
771- 78,
772- 67,
773- 74,
774- 105,
775- 115,
776- 69,
777- 99,
778- 81,
779- 73,
780- 75,
781- 86,
782- 87,
783- 57,
784- 105,
785- 116,
786- 54,
787- 73,
788- 61,
789- 59,
790- 10,
791- 9,
792- 104,
793- 61,
794- 70,
795- 114,
796- 111,
797- 109,
798- 58,
799- 83,
800- 117,
801- 98,
802- 106,
803- 101,
804- 99,
805- 116,
806- 58,
807- 84,
808- 111,
809- 58,
810- 82,
811- 101,
812- 112,
813- 108,
814- 121,
815- 45,
816- 84,
817- 111,
818- 58,
819- 68,
820- 97,
821- 116,
822- 101,
823- 58,
824- 70,
825- 114,
826- 111,
827- 109,
828- 59,
829- 10,
830- 9,
831- 98,
832- 61,
833- 80,
834- 114,
835- 115,
836- 84,
837- 78,
838- 110,
839- 117,
840- 72,
841- 56,
842- 68,
843- 48,
844- 67,
845- 104,
846- 51,
847- 103,
848- 99,
849- 87,
850- 113,
851- 71,
852- 109,
853- 88,
854- 105,
855- 89,
856- 99,
857- 50,
858- 75,
859- 118,
860- 117,
861- 49,
862- 67,
863- 72,
864- 71,
865- 74,
866- 66,
867- 115,
868- 113,
869- 83,
870- 53,
871- 50,
872- 49,
873- 117,
874- 89,
875- 97,
876- 122,
877- 100,
878- 51,
879- 71,
880- 47,
881- 117,
882- 114,
883- 112,
884- 55,
885- 77,
886- 72,
887- 81,
888- 118,
889- 109,
890- 78,
891- 119,
892- 75,
893- 48,
894- 114,
895- 49,
896- 103,
897- 83,
898- 10,
899- 9,
900- 32,
901- 68,
902- 82,
903- 51,
904- 65,
905- 51,
906- 75,
907- 119,
908- 71,
909- 101,
910- 106,
911- 73,
912- 53,
913- 117,
914- 117,
915- 113,
916- 122,
917- 120,
918- 68,
919- 67,
920- 113,
921- 122,
922- 50,
923- 56,
924- 77,
925- 113,
926- 54,
927- 65,
928- 107,
929- 100,
930- 84,
931- 107,
932- 79,
933- 106,
934- 70,
935- 121,
936- 88,
937- 119,
938- 54,
939- 53,
940- 77,
941- 76,
942- 108,
943- 115,
944- 75,
945- 84,
946- 81,
947- 100,
948- 100,
949- 87,
950- 84,
951- 103,
952- 99,
953- 105,
954- 86,
955- 110,
956- 111,
957- 113,
958- 74,
959- 101,
960- 109,
961- 112,
962- 97,
963- 54,
964- 121,
965- 122,
966- 119,
967- 10,
968- 9,
969- 32,
970- 80,
971- 83,
972- 77,
973- 53,
974- 53,
975- 53,
976- 48,
977- 88,
978- 113,
979- 86,
980- 70,
981- 113,
982- 113,
983- 107,
984- 78,
985- 120,
986- 69,
987- 99,
988- 89,
989- 66,
990- 85,
991- 66,
992- 89,
993- 69,
994- 119,
995- 85,
996- 100,
997- 121,
998- 49,
999- 116,
1000- 89,
1001- 56,
1002- 114,
1003- 99,
1004- 52,
1005- 122,
1006- 104,
1007- 113,
1008- 56,
1009- 99,
1010- 73,
1011- 114,
1012- 115,
1013- 111,
1014- 110,
1015- 81,
1016- 86,
1017- 120,
1018- 74,
1019- 74,
1020- 83,
1021- 98,
1022- 99,
1023- 51,
1024- 99,
1025- 100,
1026- 111,
1027- 110,
1028- 73,
1029- 67,
1030- 77,
1031- 49,
1032- 107,
1033- 76,
1034- 66,
1035- 86,
1036- 10,
1037- 9,
1038- 32,
1039- 87,
1040- 65,
1041- 83,
1042- 118,
1043- 49,
1044- 54,
1045- 112,
1046- 51,
1047- 51,
1048- 55,
1049- 54,
1050- 90,
1051- 66,
1052- 99,
1053- 75,
1054- 113,
1055- 70,
1056- 76,
1057- 99,
1058- 56,
1059- 85,
1060- 81,
1061- 53,
1062- 56,
1063- 89,
1064- 81,
1065- 75,
1066- 97,
1067- 70,
1068- 109,
1069- 53,
1070- 49,
1071- 86,
1072- 90,
1073- 71,
1074- 69,
1075- 106,
1076- 116,
1077- 97,
1078- 98,
1079- 102,
1080- 109,
1081- 87,
1082- 98,
1083- 103,
1084- 79,
1085- 81,
1086- 55,
1087- 86,
1088- 105,
1089- 107,
1090- 70,
1091- 70,
1092- 69,
1093- 67,
1094- 68,
1095- 71,
1096- 51,
1097- 97,
1098- 82,
1099- 116,
1100- 56,
1101- 102,
1102- 90,
1103- 97,
1104- 54,
1105- 10,
1106- 9,
1107- 32,
1108- 68,
1109- 48,
1110- 51,
1111- 77,
1112- 114,
1113- 122,
1114- 85,
1115- 83,
1116- 110,
1117- 103,
1118- 119,
1119- 80,
1120- 85,
1121- 100,
1122- 99,
1123- 82,
1124- 81,
1125- 90,
1126- 117,
1127- 113,
1128- 83,
1129- 47,
1130- 115,
1131- 65,
1132- 112,
1133- 87,
1134- 47,
1135- 97,
1136- 57,
1137- 78,
1138- 50,
1139- 89,
1140- 119,
1141- 100,
1142- 98,
1143- 82,
1144- 53,
1145- 49,
1146- 79,
1147- 70,
1148- 122,
1149- 80,
1150- 66,
1151- 114,
1152- 52,
1153- 121,
1154- 112,
1155- 85,
1156- 69,
1157- 73,
1158- 119,
1159- 47,
1160- 113,
1161- 112,
1162- 114,
1163- 103,
1164- 66,
1165- 71,
1166- 52,
1167- 66,
1168- 102,
1169- 81,
1170- 81,
1171- 75,
1172- 101,
1173- 83,
1174- 10,
1175- 9,
1176- 32,
1177- 49,
1178- 80,
1179- 104,
1180- 105,
1181- 110,
1182- 78,
1183- 118,
1184- 86,
1185- 116,
1186- 103,
1187- 81,
1188- 112,
1189- 81,
1190- 61,
1191- 61,
1192- 10,
1193- 70,
1194- 114,
1195- 111,
1196- 109,
1197- 58,
1198- 32,
1199- 34,
1200- 82,
1201- 111,
1202- 108,
1203- 102,
1204- 32,
1205- 66,
1206- 97,
1207- 100,
1208- 101,
1209- 114,
1210- 34,
1211- 32,
1212- 60,
1213- 105,
1214- 110,
1215- 102,
1216- 111,
1217- 64,
1218- 105,
1219- 110,
1220- 116,
1221- 101,
1222- 114,
1223- 112,
1224- 117,
1225- 98,
1226- 108,
1227- 105,
1228- 99,
1229- 97,
1230- 116,
1231- 105,
1232- 111,
1233- 110,
1234- 46,
1235- 111,
1236- 114,
1237- 103,
1238- 62,
1239- 10,
1240- 83,
1241- 117,
1242- 98,
1243- 106,
1244- 101,
1245- 99,
1246- 116,
1247- 58,
1248- 32,
1249- 87,
1250- 105,
1251- 114,
1252- 32,
1253- 107,
1254- 97,
1255- 117,
1256- 102,
1257- 101,
1258- 110,
1259- 32,
1260- 100,
1261- 101,
1262- 105,
1263- 110,
1264- 32,
1265- 65,
1266- 117,
1267- 116,
1268- 111,
1269- 33,
1270- 10,
1271- 84,
1272- 111,
1273- 58,
1274- 32,
1275- 34,
1276- 97,
1277- 100,
1278- 100,
1279- 114,
1280- 101,
1281- 115,
1282- 115,
1283- 34,
1284- 32,
1285- 60,
1286- 97,
1287- 100,
1288- 100,
1289- 114,
1290- 101,
1291- 115,
1292- 115,
1293- 64,
1294- 109,
1295- 121,
1296- 111,
1297- 116,
1298- 104,
1299- 101,
1300- 114,
1301- 100,
1302- 111,
1303- 109,
1304- 97,
1305- 105,
1306- 110,
1307- 46,
1308- 110,
1309- 97,
1310- 109,
1311- 101,
1312- 62,
1313- 10,
1314- 67,
1315- 111,
1316- 110,
1317- 116,
1318- 101,
1319- 110,
1320- 116,
1321- 45,
1322- 84,
1323- 121,
1324- 112,
1325- 101,
1326- 58,
1327- 32,
1328- 109,
1329- 117,
1330- 108,
1331- 116,
1332- 105,
1333- 112,
1334- 97,
1335- 114,
1336- 116,
1337- 47,
1338- 97,
1339- 108,
1340- 116,
1341- 101,
1342- 114,
1343- 110,
1344- 97,
1345- 116,
1346- 105,
1347- 118,
1348- 101,
1349- 59,
1350- 32,
1351- 98,
1352- 111,
1353- 117,
1354- 110,
1355- 100,
1356- 97,
1357- 114,
1358- 121,
1359- 61,
1360- 34,
1361- 84,
1362- 68,
1363- 54,
1364- 103,
1365- 77,
1366- 51,
1367- 66,
1368- 108,
1369- 118,
1370- 61,
1371- 95,
1372- 88,
1373- 66,
1374- 90,
1375- 89,
1376- 78,
1377- 70,
1378- 84,
1379- 55,
1380- 100,
1381- 67,
1382- 115,
1383- 72,
1384- 49,
1385- 68,
1386- 72,
1387- 72,
1388- 79,
1389- 75,
1390- 85,
1391- 117,
1392- 83,
1393- 121,
1394- 65,
1395- 34,
1396- 10,
1397- 77,
1398- 73,
1399- 77,
1400- 69,
1401- 45,
1402- 86,
1403- 101,
1404- 114,
1405- 115,
1406- 105,
1407- 111,
1408- 110,
1409- 58,
1410- 32,
1411- 49,
1412- 46,
1413- 48,
1414- 10,
1415- 82,
1416- 101,
1417- 112,
1418- 108,
1419- 121,
1420- 45,
1421- 84,
1422- 111,
1423- 58,
1424- 32,
1425- 34,
1426- 82,
1427- 111,
1428- 108,
1429- 102,
1430- 32,
1431- 66,
1432- 97,
1433- 100,
1434- 101,
1435- 114,
1436- 34,
1437- 32,
1438- 60,
1439- 97,
1440- 117,
1441- 116,
1442- 111,
1443- 50,
1444- 52,
1445- 45,
1446- 101,
1447- 120,
1448- 112,
1449- 111,
1450- 114,
1451- 116,
1452- 64,
1453- 103,
1454- 109,
1455- 120,
1456- 46,
1457- 100,
1458- 101,
1459- 62,
1460- 10,
1461- 79,
1462- 114,
1463- 103,
1464- 97,
1465- 110,
1466- 105,
1467- 122,
1468- 97,
1469- 116,
1470- 105,
1471- 111,
1472- 110,
1473- 58,
1474- 32,
1475- 65,
1476- 117,
1477- 116,
1478- 111,
1479- 84,
1480- 69,
1481- 65,
1482- 77,
1483- 50,
1484- 52,
1485- 10,
1486- 68,
1487- 97,
1488- 116,
1489- 101,
1490- 58,
1491- 32,
1492- 84,
1493- 117,
1494- 101,
1495- 44,
1496- 32,
1497- 53,
1498- 32,
1499- 79,
1500- 99,
1501- 116,
1502- 32,
1503- 50,
1504- 48,
1505- 50,
1506- 49,
1507- 32,
1508- 48,
1509- 54,
1510- 58,
1511- 51,
1512- 54,
1513- 58,
1514- 53,
1515- 49,
1516- 32,
1517- 43,
1518- 48,
1519- 50,
1520- 48,
1521- 48,
1522- 10
1523- ]
1524+ "headers": "Authentication-Results: box.mydomain.name;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key; unprotected) header.d=interpublication.org header.i=@interpublication.org header.b=\"PrsTNnuH\";\n\tdkim-atps=neutral\nReceived: from dslb-002-202-150-127.002.202.pools.vodafone-ip.de (dslb-188-099-080-029.188.099.pools.vodafone-ip.de [188.99.80.29])\n\tby sainay.interpublication.org (Postfix) with ESMTPA id 6BB23A2D3\n\tfor <address@myotherdomain.name>; Tue, 5 Oct 2021 00:36:52 -0400 (EDT)\nDKIM-Filter: OpenDKIM Filter v2.11.0 sainay.interpublication.org 6BB23A2D3\nDKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=interpublication.org; s=default; t=1633408612;\n\tbh=q1/OPSn+VXteY2+DHXqOIgs5LsNCJisEcQIKVW9it6I=;\n\th=From:Subject:To:Reply-To:Date:From;\n\tb=PrsTNnuH8D0Ch3gcWqGmXiYc2Kvu1CHGJBsqS521uYazd3G/urp7MHQvmNwK0r1gS\n\t DR3A3KwGejI5uuqzxDCqz28Mq6AkdTkOjFyXw65MLlsKTQddWTgciVnoqJempa6yzw\n\t PSM5550XqVFqqkNxEcYBUBYEwUdy1tY8rc4zhq8cIrsonQVxJJSbc3cdonICM1kLBV\n\t WASv16p3376ZBcKqFLc8UQ58YQKaFm51VZGEjtabfmWbgOQ7VikFFECDG3aRt8fZa6\n\t D03MrzUSngwPUdcRQZuqS/sApW/a9N2YwdbR51OFzPBr4ypUEIw/qprgBG4BfQQKeS\n\t 1PhinNvVtgQpQ==\nFrom: \"Rolf Bader\" <info@interpublication.org>\nSubject: Wir kaufen dein Auto!\nTo: \"address\" <address@myotherdomain.name>\nContent-Type: multipart/alternative; boundary=\"TD6gM3Blv=_XBZYNFT7dCsH1DHHOKUuSyA\"\nMIME-Version: 1.0\nReply-To: \"Rolf Bader\" <auto24-export@gmx.de>\nOrganization: AutoTEAM24\nDate: Tue, 5 Oct 2021 06:36:51 +0200\n"
1525 }
1526\ No newline at end of file
1527 diff --git a/resources/arf/005.json b/resources/arf/005.json
1528index 0bdf2a1..0d5dc27 100644
1529--- a/resources/arf/005.json
1530+++ b/resources/arf/005.json
1531 @@ -31,1179 +31,5 @@
1532 "spf_dns": null,
1533 "identity_alignment": "Unspecified",
1534 "message": null,
1535- "headers": [
1536- 65,
1537- 117,
1538- 116,
1539- 104,
1540- 101,
1541- 110,
1542- 116,
1543- 105,
1544- 99,
1545- 97,
1546- 116,
1547- 105,
1548- 111,
1549- 110,
1550- 45,
1551- 82,
1552- 101,
1553- 115,
1554- 117,
1555- 108,
1556- 116,
1557- 115,
1558- 58,
1559- 32,
1560- 109,
1561- 116,
1562- 97,
1563- 49,
1564- 48,
1565- 49,
1566- 49,
1567- 46,
1568- 109,
1569- 97,
1570- 105,
1571- 108,
1572- 46,
1573- 116,
1574- 112,
1575- 50,
1576- 46,
1577- 114,
1578- 101,
1579- 99,
1580- 101,
1581- 105,
1582- 118,
1583- 101,
1584- 114,
1585- 46,
1586- 101,
1587- 120,
1588- 97,
1589- 109,
1590- 112,
1591- 108,
1592- 101,
1593- 59,
1594- 10,
1595- 32,
1596- 100,
1597- 107,
1598- 105,
1599- 109,
1600- 61,
1601- 102,
1602- 97,
1603- 105,
1604- 108,
1605- 32,
1606- 40,
1607- 98,
1608- 111,
1609- 100,
1610- 121,
1611- 104,
1612- 97,
1613- 115,
1614- 104,
1615- 41,
1616- 32,
1617- 104,
1618- 101,
1619- 97,
1620- 100,
1621- 101,
1622- 114,
1623- 46,
1624- 100,
1625- 61,
1626- 115,
1627- 101,
1628- 110,
1629- 100,
1630- 101,
1631- 114,
1632- 46,
1633- 101,
1634- 120,
1635- 97,
1636- 109,
1637- 112,
1638- 108,
1639- 101,
1640- 59,
1641- 10,
1642- 32,
1643- 115,
1644- 112,
1645- 102,
1646- 61,
1647- 112,
1648- 97,
1649- 115,
1650- 115,
1651- 32,
1652- 115,
1653- 109,
1654- 116,
1655- 112,
1656- 46,
1657- 109,
1658- 97,
1659- 105,
1660- 108,
1661- 102,
1662- 114,
1663- 111,
1664- 109,
1665- 61,
1666- 97,
1667- 110,
1668- 101,
1669- 120,
1670- 97,
1671- 109,
1672- 112,
1673- 108,
1674- 101,
1675- 46,
1676- 114,
1677- 101,
1678- 112,
1679- 108,
1680- 121,
1681- 64,
1682- 97,
1683- 46,
1684- 115,
1685- 101,
1686- 110,
1687- 100,
1688- 101,
1689- 114,
1690- 46,
1691- 101,
1692- 120,
1693- 97,
1694- 109,
1695- 112,
1696- 108,
1697- 101,
1698- 10,
1699- 82,
1700- 101,
1701- 99,
1702- 101,
1703- 105,
1704- 118,
1705- 101,
1706- 100,
1707- 58,
1708- 32,
1709- 102,
1710- 114,
1711- 111,
1712- 109,
1713- 32,
1714- 115,
1715- 109,
1716- 116,
1717- 112,
1718- 45,
1719- 111,
1720- 117,
1721- 116,
1722- 46,
1723- 115,
1724- 101,
1725- 110,
1726- 100,
1727- 101,
1728- 114,
1729- 46,
1730- 101,
1731- 120,
1732- 97,
1733- 109,
1734- 112,
1735- 108,
1736- 101,
1737- 10,
1738- 32,
1739- 98,
1740- 121,
1741- 32,
1742- 109,
1743- 116,
1744- 97,
1745- 49,
1746- 48,
1747- 49,
1748- 49,
1749- 46,
1750- 109,
1751- 97,
1752- 105,
1753- 108,
1754- 46,
1755- 116,
1756- 112,
1757- 50,
1758- 46,
1759- 114,
1760- 101,
1761- 99,
1762- 101,
1763- 105,
1764- 118,
1765- 101,
1766- 114,
1767- 46,
1768- 101,
1769- 120,
1770- 97,
1771- 109,
1772- 112,
1773- 108,
1774- 101,
1775- 10,
1776- 32,
1777- 119,
1778- 105,
1779- 116,
1780- 104,
1781- 32,
1782- 83,
1783- 77,
1784- 84,
1785- 80,
1786- 32,
1787- 105,
1788- 100,
1789- 32,
1790- 111,
1791- 66,
1792- 56,
1793- 53,
1794- 87,
1795- 56,
1796- 120,
1797- 86,
1798- 48,
1799- 48,
1800- 48,
1801- 49,
1802- 54,
1803- 57,
1804- 59,
1805- 10,
1806- 32,
1807- 83,
1808- 97,
1809- 116,
1810- 44,
1811- 32,
1812- 48,
1813- 56,
1814- 32,
1815- 79,
1816- 99,
1817- 116,
1818- 32,
1819- 50,
1820- 48,
1821- 49,
1822- 49,
1823- 32,
1824- 49,
1825- 51,
1826- 58,
1827- 49,
1828- 53,
1829- 58,
1830- 53,
1831- 56,
1832- 32,
1833- 45,
1834- 48,
1835- 55,
1836- 48,
1837- 48,
1838- 32,
1839- 40,
1840- 80,
1841- 68,
1842- 84,
1843- 41,
1844- 10,
1845- 68,
1846- 75,
1847- 73,
1848- 77,
1849- 45,
1850- 83,
1851- 105,
1852- 103,
1853- 110,
1854- 97,
1855- 116,
1856- 117,
1857- 114,
1858- 101,
1859- 58,
1860- 32,
1861- 118,
1862- 61,
1863- 49,
1864- 59,
1865- 32,
1866- 99,
1867- 61,
1868- 114,
1869- 101,
1870- 108,
1871- 97,
1872- 120,
1873- 101,
1874- 100,
1875- 47,
1876- 115,
1877- 105,
1878- 109,
1879- 112,
1880- 108,
1881- 101,
1882- 59,
1883- 32,
1884- 97,
1885- 61,
1886- 114,
1887- 115,
1888- 97,
1889- 45,
1890- 115,
1891- 104,
1892- 97,
1893- 50,
1894- 53,
1895- 54,
1896- 59,
1897- 10,
1898- 32,
1899- 115,
1900- 61,
1901- 116,
1902- 101,
1903- 115,
1904- 116,
1905- 107,
1906- 101,
1907- 121,
1908- 59,
1909- 32,
1910- 100,
1911- 61,
1912- 115,
1913- 101,
1914- 110,
1915- 100,
1916- 101,
1917- 114,
1918- 46,
1919- 101,
1920- 120,
1921- 97,
1922- 109,
1923- 112,
1924- 108,
1925- 101,
1926- 59,
1927- 32,
1928- 104,
1929- 61,
1930- 70,
1931- 114,
1932- 111,
1933- 109,
1934- 58,
1935- 84,
1936- 111,
1937- 58,
1938- 83,
1939- 117,
1940- 98,
1941- 106,
1942- 101,
1943- 99,
1944- 116,
1945- 58,
1946- 68,
1947- 97,
1948- 116,
1949- 101,
1950- 59,
1951- 10,
1952- 32,
1953- 98,
1954- 104,
1955- 61,
1956- 50,
1957- 106,
1958- 85,
1959- 83,
1960- 79,
1961- 72,
1962- 57,
1963- 78,
1964- 104,
1965- 116,
1966- 86,
1967- 71,
1968- 67,
1969- 81,
1970- 87,
1971- 78,
1972- 114,
1973- 57,
1974- 66,
1975- 114,
1976- 73,
1977- 65,
1978- 80,
1979- 114,
1980- 101,
1981- 75,
1982- 81,
1983- 106,
1984- 79,
1985- 54,
1986- 83,
1987- 110,
1988- 55,
1989- 88,
1990- 73,
1991- 107,
1992- 102,
1993- 74,
1994- 86,
1995- 79,
1996- 122,
1997- 118,
1998- 56,
1999- 61,
2000- 59,
2001- 10,
2002- 32,
2003- 98,
2004- 61,
2005- 65,
2006- 117,
2007- 85,
2008- 111,
2009- 70,
2010- 69,
2011- 102,
2012- 68,
2013- 120,
2014- 84,
2015- 68,
2016- 107,
2017- 72,
2018- 108,
2019- 76,
2020- 88,
2021- 83,
2022- 90,
2023- 69,
2024- 112,
2025- 90,
2026- 106,
2027- 55,
2028- 57,
2029- 76,
2030- 73,
2031- 67,
2032- 69,
2033- 112,
2034- 115,
2035- 54,
2036- 101,
2037- 100,
2038- 97,
2039- 55,
2040- 87,
2041- 51,
2042- 100,
2043- 101,
2044- 84,
2045- 86,
2046- 70,
2047- 79,
2048- 107,
2049- 52,
2050- 121,
2051- 65,
2052- 85,
2053- 111,
2054- 113,
2055- 79,
2056- 66,
2057- 10,
2058- 32,
2059- 52,
2060- 110,
2061- 117,
2062- 106,
2063- 99,
2064- 55,
2065- 89,
2066- 111,
2067- 112,
2068- 100,
2069- 71,
2070- 53,
2071- 100,
2072- 87,
2073- 76,
2074- 83,
2075- 100,
2076- 78,
2077- 103,
2078- 54,
2079- 120,
2080- 78,
2081- 65,
2082- 90,
2083- 112,
2084- 79,
2085- 80,
2086- 114,
2087- 43,
2088- 107,
2089- 72,
2090- 120,
2091- 116,
2092- 49,
2093- 73,
2094- 114,
2095- 69,
2096- 43,
2097- 78,
2098- 97,
2099- 104,
2100- 77,
2101- 54,
2102- 76,
2103- 47,
2104- 76,
2105- 98,
2106- 118,
2107- 97,
2108- 72,
2109- 117,
2110- 116,
2111- 10,
2112- 32,
2113- 75,
2114- 86,
2115- 100,
2116- 107,
2117- 76,
2118- 76,
2119- 107,
2120- 112,
2121- 86,
2122- 97,
2123- 86,
2124- 86,
2125- 81,
2126- 80,
2127- 122,
2128- 101,
2129- 82,
2130- 68,
2131- 73,
2132- 48,
2133- 48,
2134- 57,
2135- 83,
2136- 79,
2137- 50,
2138- 73,
2139- 108,
2140- 53,
2141- 76,
2142- 117,
2143- 55,
2144- 114,
2145- 68,
2146- 78,
2147- 72,
2148- 54,
2149- 109,
2150- 90,
2151- 99,
2152- 107,
2153- 66,
2154- 100,
2155- 114,
2156- 73,
2157- 120,
2158- 48,
2159- 111,
2160- 114,
2161- 69,
2162- 116,
2163- 90,
2164- 86,
2165- 10,
2166- 32,
2167- 52,
2168- 98,
2169- 109,
2170- 112,
2171- 47,
2172- 89,
2173- 122,
2174- 104,
2175- 119,
2176- 118,
2177- 99,
2178- 117,
2179- 98,
2180- 85,
2181- 52,
2182- 61,
2183- 10,
2184- 82,
2185- 101,
2186- 99,
2187- 101,
2188- 105,
2189- 118,
2190- 101,
2191- 100,
2192- 58,
2193- 32,
2194- 102,
2195- 114,
2196- 111,
2197- 109,
2198- 32,
2199- 109,
2200- 97,
2201- 105,
2202- 108,
2203- 46,
2204- 115,
2205- 101,
2206- 110,
2207- 100,
2208- 101,
2209- 114,
2210- 46,
2211- 101,
2212- 120,
2213- 97,
2214- 109,
2215- 112,
2216- 108,
2217- 101,
2218- 10,
2219- 32,
2220- 98,
2221- 121,
2222- 32,
2223- 115,
2224- 109,
2225- 116,
2226- 112,
2227- 45,
2228- 111,
2229- 117,
2230- 116,
2231- 46,
2232- 115,
2233- 101,
2234- 110,
2235- 100,
2236- 101,
2237- 114,
2238- 46,
2239- 101,
2240- 120,
2241- 97,
2242- 109,
2243- 112,
2244- 108,
2245- 101,
2246- 10,
2247- 32,
2248- 119,
2249- 105,
2250- 116,
2251- 104,
2252- 32,
2253- 83,
2254- 77,
2255- 84,
2256- 80,
2257- 32,
2258- 105,
2259- 100,
2260- 32,
2261- 111,
2262- 51,
2263- 70,
2264- 53,
2265- 50,
2266- 103,
2267- 120,
2268- 79,
2269- 48,
2270- 50,
2271- 57,
2272- 49,
2273- 52,
2274- 52,
2275- 59,
2276- 10,
2277- 32,
2278- 83,
2279- 97,
2280- 116,
2281- 44,
2282- 32,
2283- 48,
2284- 56,
2285- 32,
2286- 79,
2287- 99,
2288- 116,
2289- 32,
2290- 50,
2291- 48,
2292- 49,
2293- 49,
2294- 32,
2295- 49,
2296- 51,
2297- 58,
2298- 49,
2299- 53,
2300- 58,
2301- 51,
2302- 49,
2303- 32,
2304- 45,
2305- 48,
2306- 55,
2307- 48,
2308- 48,
2309- 32,
2310- 40,
2311- 80,
2312- 68,
2313- 84,
2314- 41,
2315- 10,
2316- 32,
2317- 82,
2318- 101,
2319- 99,
2320- 101,
2321- 105,
2322- 118,
2323- 101,
2324- 100,
2325- 58,
2326- 32,
2327- 102,
2328- 114,
2329- 111,
2330- 109,
2331- 32,
2332- 105,
2333- 110,
2334- 116,
2335- 101,
2336- 114,
2337- 110,
2338- 97,
2339- 108,
2340- 45,
2341- 99,
2342- 108,
2343- 105,
2344- 101,
2345- 110,
2346- 116,
2347- 45,
2348- 48,
2349- 48,
2350- 49,
2351- 46,
2352- 115,
2353- 101,
2354- 110,
2355- 100,
2356- 101,
2357- 114,
2358- 46,
2359- 101,
2360- 120,
2361- 97,
2362- 109,
2363- 112,
2364- 108,
2365- 101,
2366- 10,
2367- 32,
2368- 98,
2369- 121,
2370- 32,
2371- 109,
2372- 97,
2373- 105,
2374- 108,
2375- 46,
2376- 115,
2377- 101,
2378- 110,
2379- 100,
2380- 101,
2381- 114,
2382- 46,
2383- 101,
2384- 120,
2385- 97,
2386- 109,
2387- 112,
2388- 108,
2389- 101,
2390- 10,
2391- 32,
2392- 119,
2393- 105,
2394- 116,
2395- 104,
2396- 32,
2397- 83,
2398- 77,
2399- 84,
2400- 80,
2401- 32,
2402- 105,
2403- 100,
2404- 32,
2405- 111,
2406- 51,
2407- 70,
2408- 51,
2409- 66,
2410- 119,
2411- 100,
2412- 89,
2413- 48,
2414- 50,
2415- 56,
2416- 52,
2417- 51,
2418- 49,
2419- 59,
2420- 10,
2421- 32,
2422- 83,
2423- 97,
2424- 116,
2425- 44,
2426- 32,
2427- 48,
2428- 56,
2429- 32,
2430- 79,
2431- 99,
2432- 116,
2433- 32,
2434- 50,
2435- 48,
2436- 49,
2437- 49,
2438- 32,
2439- 49,
2440- 51,
2441- 58,
2442- 49,
2443- 53,
2444- 58,
2445- 50,
2446- 52,
2447- 32,
2448- 45,
2449- 48,
2450- 55,
2451- 48,
2452- 48,
2453- 32,
2454- 40,
2455- 80,
2456- 68,
2457- 84,
2458- 41,
2459- 10,
2460- 68,
2461- 97,
2462- 116,
2463- 101,
2464- 58,
2465- 32,
2466- 83,
2467- 97,
2468- 116,
2469- 44,
2470- 32,
2471- 56,
2472- 32,
2473- 79,
2474- 99,
2475- 116,
2476- 32,
2477- 50,
2478- 48,
2479- 49,
2480- 49,
2481- 32,
2482- 49,
2483- 54,
2484- 58,
2485- 49,
2486- 53,
2487- 58,
2488- 50,
2489- 52,
2490- 32,
2491- 45,
2492- 48,
2493- 52,
2494- 48,
2495- 48,
2496- 32,
2497- 40,
2498- 69,
2499- 68,
2500- 84,
2501- 41,
2502- 10,
2503- 82,
2504- 101,
2505- 112,
2506- 108,
2507- 121,
2508- 45,
2509- 84,
2510- 111,
2511- 58,
2512- 32,
2513- 97,
2514- 110,
2515- 101,
2516- 120,
2517- 97,
2518- 109,
2519- 112,
2520- 108,
2521- 101,
2522- 46,
2523- 114,
2524- 101,
2525- 112,
2526- 108,
2527- 121,
2528- 64,
2529- 97,
2530- 46,
2531- 115,
2532- 101,
2533- 110,
2534- 100,
2535- 101,
2536- 114,
2537- 46,
2538- 101,
2539- 120,
2540- 97,
2541- 109,
2542- 112,
2543- 108,
2544- 101,
2545- 10,
2546- 70,
2547- 114,
2548- 111,
2549- 109,
2550- 58,
2551- 32,
2552- 97,
2553- 110,
2554- 101,
2555- 120,
2556- 97,
2557- 109,
2558- 112,
2559- 108,
2560- 101,
2561- 64,
2562- 97,
2563- 46,
2564- 115,
2565- 101,
2566- 110,
2567- 100,
2568- 101,
2569- 114,
2570- 46,
2571- 101,
2572- 120,
2573- 97,
2574- 109,
2575- 112,
2576- 108,
2577- 101,
2578- 10,
2579- 84,
2580- 111,
2581- 58,
2582- 32,
2583- 115,
2584- 111,
2585- 109,
2586- 101,
2587- 117,
2588- 115,
2589- 101,
2590- 114,
2591- 64,
2592- 114,
2593- 101,
2594- 99,
2595- 101,
2596- 105,
2597- 118,
2598- 101,
2599- 114,
2600- 46,
2601- 101,
2602- 120,
2603- 97,
2604- 109,
2605- 112,
2606- 108,
2607- 101,
2608- 10,
2609- 83,
2610- 117,
2611- 98,
2612- 106,
2613- 101,
2614- 99,
2615- 116,
2616- 58,
2617- 32,
2618- 89,
2619- 111,
2620- 117,
2621- 32,
2622- 104,
2623- 97,
2624- 118,
2625- 101,
2626- 32,
2627- 97,
2628- 32,
2629- 110,
2630- 101,
2631- 119,
2632- 32,
2633- 98,
2634- 105,
2635- 108,
2636- 108,
2637- 32,
2638- 102,
2639- 114,
2640- 111,
2641- 109,
2642- 32,
2643- 121,
2644- 111,
2645- 117,
2646- 114,
2647- 32,
2648- 98,
2649- 97,
2650- 110,
2651- 107,
2652- 10,
2653- 77,
2654- 101,
2655- 115,
2656- 115,
2657- 97,
2658- 103,
2659- 101,
2660- 45,
2661- 73,
2662- 68,
2663- 58,
2664- 32,
2665- 60,
2666- 56,
2667- 55,
2668- 57,
2669- 49,
2670- 51,
2671- 57,
2672- 49,
2673- 48,
2674- 46,
2675- 49,
2676- 51,
2677- 49,
2678- 56,
2679- 48,
2680- 57,
2681- 52,
2682- 54,
2683- 48,
2684- 52,
2685- 53,
2686- 52,
2687- 54,
2688- 64,
2689- 111,
2690- 117,
2691- 116,
2692- 46,
2693- 115,
2694- 101,
2695- 110,
2696- 100,
2697- 101,
2698- 114,
2699- 46,
2700- 101,
2701- 120,
2702- 97,
2703- 109,
2704- 112,
2705- 108,
2706- 101,
2707- 62,
2708- 10
2709- ]
2710+ "headers": "Authentication-Results: mta1011.mail.tp2.receiver.example;\n dkim=fail (bodyhash) header.d=sender.example;\n spf=pass smtp.mailfrom=anexample.reply@a.sender.example\nReceived: from smtp-out.sender.example\n by mta1011.mail.tp2.receiver.example\n with SMTP id oB85W8xV000169;\n Sat, 08 Oct 2011 13:15:58 -0700 (PDT)\nDKIM-Signature: v=1; c=relaxed/simple; a=rsa-sha256;\n s=testkey; d=sender.example; h=From:To:Subject:Date;\n bh=2jUSOH9NhtVGCQWNr9BrIAPreKQjO6Sn7XIkfJVOzv8=;\n b=AuUoFEfDxTDkHlLXSZEpZj79LICEps6eda7W3deTVFOk4yAUoqOB\n 4nujc7YopdG5dWLSdNg6xNAZpOPr+kHxt1IrE+NahM6L/LbvaHut\n KVdkLLkpVaVVQPzeRDI009SO2Il5Lu7rDNH6mZckBdrIx0orEtZV\n 4bmp/YzhwvcubU4=\nReceived: from mail.sender.example\n by smtp-out.sender.example\n with SMTP id o3F52gxO029144;\n Sat, 08 Oct 2011 13:15:31 -0700 (PDT)\n Received: from internal-client-001.sender.example\n by mail.sender.example\n with SMTP id o3F3BwdY028431;\n Sat, 08 Oct 2011 13:15:24 -0700 (PDT)\nDate: Sat, 8 Oct 2011 16:15:24 -0400 (EDT)\nReply-To: anexample.reply@a.sender.example\nFrom: anexample@a.sender.example\nTo: someuser@receiver.example\nSubject: You have a new bill from your bank\nMessage-ID: <87913910.1318094604546@out.sender.example>\n"
2711 }
2712\ No newline at end of file
2713 diff --git a/src/report/arf/generate.rs b/src/report/arf/generate.rs
2714index c2c77c0..a48b2aa 100644
2715--- a/src/report/arf/generate.rs
2716+++ b/src/report/arf/generate.rs
2717 @@ -68,23 +68,15 @@ impl<'x> Feedback<'x> {
2718 BodyPart::Text(arf.into()),
2719 ),
2720 ];
2721- if let Some(message) = self
2722- .message
2723- .as_ref()
2724- .and_then(|v| std::str::from_utf8(v.as_ref()).ok())
2725- {
2726+ if let Some(message) = self.message.as_ref() {
2727 parts.push(MimePart::new(
2728 ContentType::new("message/rfc822"),
2729- BodyPart::Text(message.into()),
2730+ BodyPart::Text(message.as_ref().into()),
2731 ));
2732- } else if let Some(headers) = self
2733- .headers
2734- .as_ref()
2735- .and_then(|v| std::str::from_utf8(v.as_ref()).ok())
2736- {
2737+ } else if let Some(headers) = self.headers.as_ref() {
2738 parts.push(MimePart::new(
2739 ContentType::new("text/rfc822-headers"),
2740- BodyPart::Text(headers.into()),
2741+ BodyPart::Text(headers.as_ref().into()),
2742 ));
2743 }
2744
2745 @@ -281,7 +273,7 @@ mod test {
2746 .with_dkim_selector_dns("v=dkim1;")
2747 .with_spf_dns("v=spf1")
2748 .with_identity_alignment(IdentityAlignment::DkimSpf)
2749- .with_message(&b"From: hello@world.org\r\nTo: ciao@mundo.org\r\n\r\n"[..]);
2750+ .with_message("From: hello@world.org\r\nTo: ciao@mondo.org\r\n\r\n");
2751
2752 let message = feedback
2753 .to_rfc5322(
2754 diff --git a/src/report/arf/mod.rs b/src/report/arf/mod.rs
2755index f191d4e..43bde16 100644
2756--- a/src/report/arf/mod.rs
2757+++ b/src/report/arf/mod.rs
2758 @@ -155,20 +155,20 @@ impl<'x> Feedback<'x> {
2759 self
2760 }
2761
2762- pub fn message(&self) -> Option<&[u8]> {
2763+ pub fn message(&self) -> Option<&str> {
2764 self.message.as_deref()
2765 }
2766
2767- pub fn with_message(mut self, value: impl Into<Cow<'x, [u8]>>) -> Self {
2768+ pub fn with_message(mut self, value: impl Into<Cow<'x, str>>) -> Self {
2769 self.message = Some(value.into());
2770 self
2771 }
2772
2773- pub fn headers(&self) -> Option<&[u8]> {
2774+ pub fn headers(&self) -> Option<&str> {
2775 self.message.as_deref()
2776 }
2777
2778- pub fn with_headers(mut self, value: impl Into<Cow<'x, [u8]>>) -> Self {
2779+ pub fn with_headers(mut self, value: impl Into<Cow<'x, str>>) -> Self {
2780 self.headers = Some(value.into());
2781 self
2782 }
2783 diff --git a/src/report/arf/parse.rs b/src/report/arf/parse.rs
2784index a93cd85..1a20765 100644
2785--- a/src/report/arf/parse.rs
2786+++ b/src/report/arf/parse.rs
2787 @@ -71,8 +71,24 @@ impl<'x> Feedback<'x> {
2788 }
2789
2790 if let Some(mut feedback) = feedback {
2791- feedback.message = included_message;
2792- feedback.headers = included_headers;
2793+ for (feedback, included) in [
2794+ (&mut feedback.message, included_message),
2795+ (&mut feedback.headers, included_headers),
2796+ ] {
2797+ if let Some(included) = included {
2798+ *feedback = match included {
2799+ Cow::Borrowed(bytes) => Some(String::from_utf8_lossy(bytes)),
2800+ Cow::Owned(bytes) => Some(
2801+ String::from_utf8(bytes)
2802+ .unwrap_or_else(|err| {
2803+ String::from_utf8_lossy(err.as_bytes()).into_owned()
2804+ })
2805+ .into(),
2806+ ),
2807+ };
2808+ }
2809+ }
2810+
2811 Ok(feedback)
2812 } else {
2813 Err(Error::NoReportsFound)
2814 diff --git a/src/report/mod.rs b/src/report/mod.rs
2815index 86f894c..26aa6ab 100644
2816--- a/src/report/mod.rs
2817+++ b/src/report/mod.rs
2818 @@ -243,8 +243,8 @@ pub struct Feedback<'x> {
2819 spf_dns: Option<Cow<'x, str>>,
2820 identity_alignment: IdentityAlignment,
2821
2822- message: Option<Cow<'x, [u8]>>,
2823- headers: Option<Cow<'x, [u8]>>,
2824+ message: Option<Cow<'x, str>>,
2825+ headers: Option<Cow<'x, str>>,
2826 }
2827
2828 #[derive(Debug, Clone, PartialEq, Eq, Copy, Serialize, Deserialize, Default)]
2829 diff --git a/src/spf/verify.rs b/src/spf/verify.rs
2830index a2f3ba8..c68b3be 100644
2831--- a/src/spf/verify.rs
2832+++ b/src/spf/verify.rs
2833 @@ -17,6 +17,7 @@ use crate::{Error, Resolver, SpfOutput, SpfResult};
2834
2835 use super::{Macro, Mechanism, Qualifier, Spf, Variables};
2836
2837+ #[allow(clippy::iter_skip_zero)]
2838 impl Resolver {
2839 /// Verifies the SPF EHLO identity
2840 pub async fn verify_spf_helo(