Uploaded an example email with a lot of accents called 'test_accents.mbox' and
expected headers in the file 'test_accents.headers.txt'.
Better than nothing.
This change also includes a minor refactor in the library loading.
Ref T15960
Differential D25844
Add first unit test for mimemailparser headers valerio.bozzolan on Tue, Dec 3, 15:44. Authored by
Details
Uploaded an example email with a lot of accents called 'test_accents.mbox' and Better than nothing. This change also includes a minor refactor in the library loading. Ref T15960 Manually run the new unit test and see green lights: arc unit src/applications/metamta/externals/__tests__/PhabricatorExternalMimeMailParserTestCase.php Double-check that the new class is already recorded: arc liberate Just as extra care, re-apply the same test plan of: So, for example, run this, and see no exceptions: ./scripts/mail/mail_handler.php < src/applications/metamta/externals/__tests__/data/test_accents.mbox
Diff Detail
Event TimelineComment Actions lol @taavi I've stolen some of your "ä" for the example file test_accents.mbox, I hope you won't send me a lawyer Comment Actions Thanks. Confirming that this works as expected (after manually changing test_accents.mbox to make the arc unit output fail) I also tested by feeding some emails from my collection of broken test emails (it's sometimes useful to be a GNOME Evolution docs maintainer) into ./scripts/mail/mail_handler.php after editing mail_handler.php to also include print $headers['from']; print "\n"; print $headers['subject']; print "\n";
|