Problem/Motivation
Drupal mail modules allow delivery to email addresses with a display name, eg "John Smith <john.smith@example.org>", however this module does not recognise such addresses and fails to match against the whitelisted addresses.
Steps to reproduce
Send to a recipient in the format "Display Name <email@example.org>". Add "email@example.org" to the whitelisted addresses. The email will be rerouted even though it is in the whitelist.
Proposed resolution
Keep the whitelist as is (no change to allowed delimiters and continue to enter an address), but in the code where the original addresses are split into an array rewrite this to be aware of recipients formatted with a display name and address.
Would there be interest in supporting this? I could have a crack at writing a patch if so.
Issue fork reroute_email-3204208
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
bohartGood catch! It should be a nice improvement for the module.
Looking forward to getting the merge request!
Please be aware to use
2.x-devbranch to start a new branch and for merge request branch destination.Thanks!
Comment #4
gaddman commentedComment #5
_shyComment #7
bohart@gaddman, @_shY, thanks for your contribution!
This new feature was tested and reviewed by our team at #LutskCodeSprint2021.
Committed to 2.x-dev branch.
There is no backward compatibility planned with 8.x-1.x branch.
So, marking this one as fixed.
Thanks!