Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The Mail System module is a hard dependency and adds a UI that may allow site admins to change desired functionality
In addition, the REAME for this module describes how a mail key can be set programmatically, so there is no actual need for the Mail System module.
In addition, Mail System apparently writes out PHP class files to the public files directory, which seems a bit dubious in terms of security.
Proposed resolution
Remove Mail System as a requirement, maybe just give a requirement warning if it's absent and mention it in docs.
Remaining tasks
write patch
User interface changes
none
API changes
none
Comment | File | Size | Author |
---|---|---|---|
#9 | 2645680-9-mailsystem_remove.patch | 4.49 KB | pounard |
#5 | 2645680-5-mailsystem_remove.patch | 4.54 KB | pounard |
#3 | 2645680-3.patch | 316 bytes | pwolanin |
Comments
Comment #2
pwolanin CreditAttribution: pwolanin as a volunteer commentedComment #3
pwolanin CreditAttribution: pwolanin as a volunteer commentedQuick 1st pass patch
Comment #4
pwolanin CreditAttribution: pwolanin as a volunteer commentedHmm, expect that will fail since it looks at though a theme setting is used also from mailsystem
Comment #5
pounardFor two reasons this should be done:
and mail systems dispatch
The only use Mimemail has for the mailsystem module is UI driven configuration, which is good for site builders, but not required for the rest of the world, and finding the theme for sending mails, hopefully I added the
mimemail_theme
variable to fallback on in case there's not the mailsystem module enabled.Comment #6
pounardHum there's chances that tests won't pass because some seem to enable the mailsystem module.
Comment #7
pounardComment #8
pounardComment #9
pounardNew version that get rids of a PHP notice