Added mime types multipart/report and message/global-delivery-status

This commit is contained in:
the-djmaze 2024-07-15 19:27:26 +02:00
parent d10e4ba22a
commit ad81e3f9e9
2 changed files with 6 additions and 0 deletions

View file

@ -24,6 +24,8 @@ abstract class ContentType
const PGP_SIGNATURE = 'application/pgp-signature';
const PKCS7_SIGNATURE = 'application/pkcs7-signature';
const PKCS7_MIME = 'application/pkcs7-mime';
// RFC 3462
const REPORT = 'multipart/report'; // ; report-type=delivery-status;
public static function isPkcs7Mime(string $data) : bool
{

View file

@ -226,6 +226,10 @@ abstract class MimeType
'eml' => 'message/rfc822',
'mime' => 'message/rfc822',
// RFC 3464
// 'u8dsn' => 'message/delivery-status',
// RFC 5337
'u8dsn' => 'message/global-delivery-status',
'txt' => 'text/plain',
'asp' => 'text/asp',