Remove dependency on Mail MIME but still depend on Mail_Mime

Created on 26 March 2018, over 6 years ago
Updated 4 February 2023, almost 2 years ago

I agree with giving up Mail MIME β†’ as a separate module for D8 as per #2956066: Fix Mime mail class include β†’ . It only has 750 sites using it at this point.

However, this means that we're now (optionally) inheriting Mail MIME's dependency on the external Mail_Mime, which has been problematic for quite a while, because
a) it was hopelessly outdated and
b) the automatic installation procedure from the SVN repo was blocked and the installation instructions did not work for everyone.

Luckily there is an updated version of Mail_Mime now on
https://github.com/pear/Mail_Mime
https://pear.php.net/package/Mail_Mime/
https://pear.php.net/manual/en/package.mail.mail-mime.php

The downside is that it still has
require_once 'PEAR.php';
and uses PEAR_Error and maybe other PEAR stuff. Installing and futzing with PEAR is not everyone's thing. We'll need clear installation instructions with PEAR and hopefully also without PEAR, ideally with and without Composer.

The maintainers of the SVN repo found Bob's automatic use of their repo abusive and completely blocked the Drupal web client. We'll have to keep that in mind if we want to do something like that.

πŸ“Œ Task
Status

Active

Version

1.0

Component

Documentation

Created by

πŸ‡¨πŸ‡­Switzerland salvis

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

    This is what I have been using in composer.json:

        "require": {
            "drupal/mailsystem": "^4.2",
            "pear/pear-core-minimal": "^v1.10.10",
            "pear/pear_exception": "^1.0.1",
            "pear/mail_mime": "^1.10.9",
            "forked/mail_mime-decode": "^v1.5.6.4"
        }

    But as you can see this is a poor solution, relying on a forked version of mail_mime-decode and using obsolete and unsupported Pear packages.

    This issue is one of the reasons I put forth the proposal in 🌱 The future of the HTML Mail module Needs review . Please read and comment on that issue!

Production build 0.71.5 2024