1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-12 08:36:13 +01:00
phorge-phorge/externals
Valerio Bozzolan 9d3e258853 Add first unit test for mimemailparser headers
Summary:
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

Test Plan:
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:

D25839

So, for example, run this, and see no exceptions:

    ./scripts/mail/mail_handler.php < src/applications/metamta/externals/__tests__/data/test_accents.mbox

Reviewers: aklapper, taavi, O1 Blessed Committers

Reviewed By: aklapper, O1 Blessed Committers

Subscribers: tobiaswiese, Matthew, Cigaryno

Maniphest Tasks: T15960

Differential Revision: https://we.phorge.it/D25844
2024-12-06 13:12:54 +01:00
..
cldr Update external timezone information to IANA TZDB 2024a 2024-07-10 13:33:42 +02:00
cowsay Cleanup unused cowsay files (related to legacy Perl binary version) 2023-05-29 09:13:44 +02:00
figlet Include "Figlet" and PEAR "Text_Figlet" in externals 2015-09-13 12:30:48 -07:00
JsShrink T15774: Celerity: javascript minification issue with template literals (backticked strings) 2024-06-11 17:09:47 +02:00
mimemailparser Add first unit test for mimemailparser headers 2024-12-06 13:12:54 +01:00
octicons Add profile images to Repositories 2017-06-12 07:51:39 -07:00
pear-figlet Update Figlet implementation to be PHP8 compatible 2023-06-05 09:16:57 -04:00
phpmailer PHPMailer: Set defaults for required parameters followed by optional parameters in Authorise() method signature 2024-05-30 15:40:35 +02:00
phpqrcode Update phpqrcode from version 1.1.4 to 1.9.9 2024-07-20 12:11:02 +02:00
porter-stemmer Update deprecated array access syntax in Porter stemmer 2020-01-14 12:11:39 -08:00
stripe-php Update Stripe PHP API 2014-07-13 09:19:07 -07:00
wordlist Add a common password blacklist 2014-01-23 14:01:18 -08:00
xhprof Fix some issues caught by HipHop, and work around some issues 2011-02-26 21:01:42 -08:00