Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

autogenerate the plain text version after token substitution #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

michaelmcandrew
Copy link

This PR alters DefaultComposer as follows:

Only create a body_text (text/plain)message for TokenProcessor if body_text has been specified. If it has not bee specified, set$autoGeneratePlainText` to true for DefaultComposer so we know to auto generate the plain text version later on

Once any token substitution and link tracking has happened, if no plain text version has been specified, run the generated HTML through CRM_Utils_String::htmlToText to create a plain text version of the email.

See associated PR on civicrm-core for more details.

@seamuslee001
Copy link
Contributor

@michaelmcandrew
Copy link
Author

jenkins test this please

@michaelmcandrew
Copy link
Author

Once the tests pass here, I should ask tim to review civicrm/civicrm-core#12061

@michaelmcandrew
Copy link
Author

jenkins test this please now that https://github.com/civicrm/civicrm-core/pull/12026/files has been merged

@michaelmcandrew
Copy link
Author

see full discussion in https://lab.civicrm.org/dev/mail/issues/3

@mlutfy
Copy link
Member

mlutfy commented Jun 30, 2020

jenkins, test this please

@mlutfy
Copy link
Member

mlutfy commented Jun 30, 2020

Tests seem to be passing? https://test.civicrm.org/job/Extension-SHA/749/console

@michaelmcandrew Have you been running this patch for the past 2 years? Is there anything that you might think could be blocking a merge? (I won't merge it, but I can try to get another merger to review it)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants