PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-31986

Responses to Message Board posts using email may now be filtered to remove the original posts

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 5 results 

      Description

      It is common for an email response to contain the original email in the response. This practice causes email responses to Message Boards posts to post the original message on the message board, which will make reading the board unnecessarily long. Responses can now be filtered so that original posts will be removed from these email replies. It should be noted that with this filter, in-line responses will be removed along with the original post. If this is deemed undesirable, it may be changed by placing the following property in the portal-ext.properties:

      message.boards.email.remove.original.message=false

        Issue Links

          Activity

          Hide
          Douglas Wong added a comment -

          The solution should work for the majority of email clients, including gmail, yahoo and hotmail. If we find a pattern that another email client provides is different, we may update this.

          Show
          Douglas Wong added a comment - The solution should work for the majority of email clients, including gmail, yahoo and hotmail. If we find a pattern that another email client provides is different, we may update this.
          Show
          Douglas Wong added a comment - Resubmitted as a hook plugin: https://github.com/johnnyhowey/liferay-portal/pull/4 https://github.com/johnnyhowey/liferay-plugins/pull/245
          Show
          Douglas Wong added a comment - Added support for chaining sanitizer.impl: https://github.com/brianchandotcom/liferay-portal/pull/8486 https://github.com/brianchandotcom/liferay-plugins/pull/1257
          Show
          Douglas Wong added a comment - Resubmitted: https://github.com/brianchandotcom/liferay-portal/pull/8512 https://github.com/brianchandotcom/liferay-plugins/pull/1258
          Hide
          Albert Lee added a comment -

          PASSED Manual Testing using the following steps:

          1. In your portal-ext.properties, fill in the following properties:
            pop.server.notifications.enabled=true
            pop.server.notifications.interval=1
            pop.server.subdomain=
          2. Deploy the following hook: email-to-mb-filter-hook
          3. Navigate to Control Panel > Server Administration > Mail
          4. Configure POP and SMTP for gmail.
          5. Create a user with a valid gmail email account and assign the Liferay site
          6. Create a test page and add the MB Portlet
          7. Configure the MB Portlet Email From settings
          8. Post a new Thread
          9. Sign in as the User and subscribe to the Thread
          10. Sign in as the Admin and reply to the Thread
          11. Gmail: Assert the User receives an email about the Thread reply made by the Admin
          12. Gmail: User clicks the"Reply" link, asserting the email response contains the original email, and sends a reply
          13. Admin checks the Thread and asserts the reply made from the User, from Gmail, filters out the original email

          Passed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 75f0bc57e00463e022cf7f80f2af3a52aa551000.
          Plugins 6.1.x EE GIT ID: 9dc0d4a526ddf6b22cbf685cb3d77c0bcbf04895.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: fc830b42877dfa7b943a29c23a810f2c6c39a639.
          Plugins 6.2.x GIT ID: 4352ba9b85c82c4b900f27e0ec057faa05752b21.

          Show
          Albert Lee added a comment - PASSED Manual Testing using the following steps: In your portal-ext.properties, fill in the following properties: pop.server.notifications.enabled=true pop.server.notifications.interval=1 pop.server.subdomain= Deploy the following hook: email-to-mb-filter-hook Navigate to Control Panel > Server Administration > Mail Configure POP and SMTP for gmail. Create a user with a valid gmail email account and assign the Liferay site Create a test page and add the MB Portlet Configure the MB Portlet Email From settings Post a new Thread Sign in as the User and subscribe to the Thread Sign in as the Admin and reply to the Thread Gmail: Assert the User receives an email about the Thread reply made by the Admin Gmail: User clicks the"Reply" link, asserting the email response contains the original email, and sends a reply Admin checks the Thread and asserts the reply made from the User, from Gmail, filters out the original email Passed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 75f0bc57e00463e022cf7f80f2af3a52aa551000. Plugins 6.1.x EE GIT ID: 9dc0d4a526ddf6b22cbf685cb3d77c0bcbf04895. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: fc830b42877dfa7b943a29c23a810f2c6c39a639. Plugins 6.2.x GIT ID: 4352ba9b85c82c4b900f27e0ec057faa05752b21.
          Hide
          Rich Sezov added a comment -

          I know in other systems I've seen in the past, it works in a way that's extendable to any mail client. When we send the email notification to the user, we would add something we can parse to the message; something like:

          -----------
          Place your reply above this line

          Then, when the user replies, he/she places whatever he/she wants to post (including quotations from other users in the thread) above that line; we parse that text and post it to the message boards.

          Show
          Rich Sezov added a comment - I know in other systems I've seen in the past, it works in a way that's extendable to any mail client. When we send the email notification to the user, we would add something we can parse to the message; something like: ----------- Place your reply above this line Then, when the user replies, he/she places whatever he/she wants to post (including quotations from other users in the thread) above that line; we parse that text and post it to the message boards.
          Hide
          Vivek Sharma added a comment -

          Hi,

          I am using liferay 6.2 community edition and i used this hook for my project. It is not able to filter out the HTML content out of the mail chain. As I has configured the liferay notifications in the form of html. So I want to ask if this is a known issue and is there a fix for this or not...?

          Please help me out and let me know.

          Show
          Vivek Sharma added a comment - Hi, I am using liferay 6.2 community edition and i used this hook for my project. It is not able to filter out the HTML content out of the mail chain. As I has configured the liferay notifications in the form of html. So I want to ask if this is a known issue and is there a fix for this or not...? Please help me out and let me know.
          Hide
          Vicki Tsang (Inactive) added a comment -

          Hi Vivek,

          This issue is currently closed. If you are experiencing issues with the latest version of this hook, please file a new bug ticket with as much information as possible about your environment and steps to reproduce for the development team to validate.

          Thank you for your feedback.

          Show
          Vicki Tsang (Inactive) added a comment - Hi Vivek, This issue is currently closed. If you are experiencing issues with the latest version of this hook, please file a new bug ticket with as much information as possible about your environment and steps to reproduce for the development team to validate. Thank you for your feedback.
          Hide
          Vivek Sharma added a comment -

          Hi Vicki,

          I deployed the hook and it is working fine for the notifications which has plain text but since in the solex message board notifications I have used HTML to make it look better thus the hook is not able to filter the html content and is printing the full mail chain. So, I just want to clarify that weather this hook works for just filtering the plain text format or HTML content also...??

          Show
          Vivek Sharma added a comment - Hi Vicki, I deployed the hook and it is working fine for the notifications which has plain text but since in the solex message board notifications I have used HTML to make it look better thus the hook is not able to filter the html content and is printing the full mail chain. So, I just want to clarify that weather this hook works for just filtering the plain text format or HTML content also...??

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development

                  Structure Helper Panel