From b3b6ee5ca7625b1488a9bc7c9f65a28c89a1ecb8 Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Thu, 30 Jul 2026 16:58:04 -0400 Subject: [PATCH 1/3] Add support for mail-mime-parser v4 --- .github/workflows/run-tests.yml | 6 ++- composer.json | 86 ++++++++++++++++----------------- 2 files changed, 47 insertions(+), 45 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 01273a6..a16a379 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -18,8 +18,9 @@ jobs: os: [ ubuntu-latest ] php: [ 8.5, 8.4, 8.3, 8.2 ] dependency-version: [ prefer-stable ] + mail-mime-parser: [ ^3.0, ^4.0 ] - name: ${{ matrix.os }} - P${{ matrix.php }} - ${{ matrix.dependency-version }} + name: ${{ matrix.os }} - P${{ matrix.php }} - MMP${{ matrix.mail-mime-parser }} - ${{ matrix.dependency-version }} steps: - name: Checkout code @@ -29,7 +30,7 @@ jobs: uses: actions/cache@v4 with: path: ~/.composer/cache/files - key: dependencies-laravel-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + key: dependencies-laravel-php-${{ matrix.php }}-mmp-${{ matrix.mail-mime-parser }}-composer-${{ hashFiles('composer.json') }} - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -38,6 +39,7 @@ jobs: - name: Install dependencies run: | + composer require "zbateson/mail-mime-parser:${{ matrix.mail-mime-parser }}" --no-update --no-interaction composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - name: Execute tests diff --git a/composer.json b/composer.json index 0967fa7..1d495c8 100644 --- a/composer.json +++ b/composer.json @@ -1,46 +1,46 @@ { - "name": "directorytree/imapengine", - "type": "library", - "description": "A fully-featured IMAP library -- without the PHP extension", - "keywords": [ - "imap", - "mail", - "engine" - ], - "homepage": "https://github.com/directorytree/imapengine", - "license": "MIT", - "authors": [ - { - "name": "Steve Bauman", - "email": "steven_bauman@outlook.com", - "role": "Developer" - } - ], - "require": { - "php": "^8.1", - "symfony/mime": ">=6.0", - "nesbot/carbon": ">=2.0", - "illuminate/collections": ">=9.0", - "zbateson/mail-mime-parser": "^3.0", - "egulias/email-validator": "^4.0" - }, - "require-dev": { - "spatie/ray": "^1.0", - "pestphp/pest": "^2.0|^3.0|^4.0" - }, - "autoload": { - "psr-4": { - "DirectoryTree\\ImapEngine\\": "src" - } - }, - "autoload-dev": { - "psr-4": { - "Tests\\": "tests" - } - }, - "config": { - "allow-plugins": { - "pestphp/pest-plugin": true - } + "name": "directorytree/imapengine", + "type": "library", + "description": "A fully-featured IMAP library -- without the PHP extension", + "keywords": [ + "imap", + "mail", + "engine" + ], + "homepage": "https://github.com/directorytree/imapengine", + "license": "MIT", + "authors": [ + { + "name": "Steve Bauman", + "email": "steven_bauman@outlook.com", + "role": "Developer" } + ], + "require": { + "php": "^8.1", + "symfony/mime": ">=6.0", + "nesbot/carbon": ">=2.0", + "illuminate/collections": ">=9.0", + "zbateson/mail-mime-parser": "^3.0|^4.0", + "egulias/email-validator": "^4.0" + }, + "require-dev": { + "spatie/ray": "^1.0", + "pestphp/pest": "^2.0|^3.0|^4.0" + }, + "autoload": { + "psr-4": { + "DirectoryTree\\ImapEngine\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests" + } + }, + "config": { + "allow-plugins": { + "pestphp/pest-plugin": true + } + } } From 9974dcfc22d17de51510dc678d463bfd182c6221 Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Thu, 30 Jul 2026 17:00:12 -0400 Subject: [PATCH 2/3] Formatting --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index a16a379..33ef41e 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -17,8 +17,8 @@ jobs: matrix: os: [ ubuntu-latest ] php: [ 8.5, 8.4, 8.3, 8.2 ] - dependency-version: [ prefer-stable ] mail-mime-parser: [ ^3.0, ^4.0 ] + dependency-version: [ prefer-stable ] name: ${{ matrix.os }} - P${{ matrix.php }} - MMP${{ matrix.mail-mime-parser }} - ${{ matrix.dependency-version }} From 49467c8cb4066e0d03bbf1be7d5ac72302b426ab Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Thu, 30 Jul 2026 17:01:15 -0400 Subject: [PATCH 3/3] Fix spacing --- composer.json | 86 +++++++++++++++++++++++++-------------------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/composer.json b/composer.json index 1d495c8..2847af1 100644 --- a/composer.json +++ b/composer.json @@ -1,46 +1,46 @@ { - "name": "directorytree/imapengine", - "type": "library", - "description": "A fully-featured IMAP library -- without the PHP extension", - "keywords": [ - "imap", - "mail", - "engine" - ], - "homepage": "https://github.com/directorytree/imapengine", - "license": "MIT", - "authors": [ - { - "name": "Steve Bauman", - "email": "steven_bauman@outlook.com", - "role": "Developer" + "name": "directorytree/imapengine", + "type": "library", + "description": "A fully-featured IMAP library -- without the PHP extension", + "keywords": [ + "imap", + "mail", + "engine" + ], + "homepage": "https://github.com/directorytree/imapengine", + "license": "MIT", + "authors": [ + { + "name": "Steve Bauman", + "email": "steven_bauman@outlook.com", + "role": "Developer" + } + ], + "require": { + "php": "^8.1", + "symfony/mime": ">=6.0", + "nesbot/carbon": ">=2.0", + "illuminate/collections": ">=9.0", + "zbateson/mail-mime-parser": "^3.0|^4.0", + "egulias/email-validator": "^4.0" + }, + "require-dev": { + "spatie/ray": "^1.0", + "pestphp/pest": "^2.0|^3.0|^4.0" + }, + "autoload": { + "psr-4": { + "DirectoryTree\\ImapEngine\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests" + } + }, + "config": { + "allow-plugins": { + "pestphp/pest-plugin": true + } } - ], - "require": { - "php": "^8.1", - "symfony/mime": ">=6.0", - "nesbot/carbon": ">=2.0", - "illuminate/collections": ">=9.0", - "zbateson/mail-mime-parser": "^3.0|^4.0", - "egulias/email-validator": "^4.0" - }, - "require-dev": { - "spatie/ray": "^1.0", - "pestphp/pest": "^2.0|^3.0|^4.0" - }, - "autoload": { - "psr-4": { - "DirectoryTree\\ImapEngine\\": "src" - } - }, - "autoload-dev": { - "psr-4": { - "Tests\\": "tests" - } - }, - "config": { - "allow-plugins": { - "pestphp/pest-plugin": true - } - } }