Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-83230

Forum Email Organization in Moodle

XMLWordPrintable

    • MOODLE_404_STABLE, MOODLE_405_STABLE
    • MOODLE_500_STABLE
    • MDL-83230-main
    • Hide

      Setup

      • Site Administration > Server > Outgoing mail configuration
      • Site Administration > Server > Incoming mail configuration
      • Site Administration > General > Site security > Maximum time to edit posts > Change to 1 minute
      • Gmail > Select the gear icon > Click "See all settings" > Select "Forwarding and POP/IMAP" > Select "Enable IMAP"

      Case #1

      • Reply to a post in a forum
      • Run cron to execute email sending
      • Email received should not have any "Re:"

      Case #2

      • Reply to that email directly
      • The submitted post's subject line in the forum should not contain "Re:"

      Case #3

      • Click the "reply" link in the email
      • When landing on the form, the input field for the subject line should not contain "Re:"

       

      Show
      Setup Site Administration > Server > Outgoing mail configuration SMTP host: smtp.gmail.com:465 SMTP security: SSL SMTP username: your Gmail or Google Workspace email SMTP password: see https://knowledge.workspace.google.com/kb/how-to-create-app-passwords-000009237 No-reply address: your Gmail or Google Workspace email Site Administration > Server > Incoming mail configuration Enable incoming mail processing: Yes Mailbox name: first part of your Gmail or Google Workspace email Email domain: gmail.com (or your Workspace email domain) Incoming Mail Server: imap.gmail.com:993 Username: your Gmail or Google Workspace email Password: see https://knowledge.workspace.google.com/kb/how-to-create-app-passwords-000009237 Site Administration > General > Site security > Maximum time to edit posts > Change to 1 minute Gmail > Select the gear icon > Click "See all settings" > Select "Forwarding and POP/IMAP" > Select "Enable IMAP" Case #1 Reply to a post in a forum Run cron to execute email sending Email received should not have any "Re:" Case #2 Reply to that email directly The submitted post's subject line in the forum should not contain "Re:" Case #3 Click the "reply" link in the email When landing on the form, the input field for the subject line should not contain "Re:"  
    • Hide

      Code verified against automated checks.

      Checked MDL-83230 using repository: https://github.com/andrewgos/moodle.git

      More information about this report

      Built on: Thu Jan 23 08:42:57 AM UTC 2025

      Show
      Code verified against automated checks. Checked MDL-83230 using repository: https://github.com/andrewgos/moodle.git main (0 errors / 0 warnings) [branch: MDL-83230-main | CI Job ] More information about this report Built on: Thu Jan 23 08:42:57 AM UTC 2025
    • Show
      Launching automatic jobs for branch MDL-83230 -main https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/18113/ PHPUnit (sqlsrv) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61890/ Behat (NonJS - boost and classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61891/ Behat (Firefox - boost) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61892/ Behat (Firefox - classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61893/ App tests (stable app version) Built on: Thu Jan 30 08:30:15 AM UTC 2025
    • 1
    • Team Alpha - Planning I1-2025, Team Alpha - Sprint 1 I1-2025

      That emails sent from the Moodle forum follow a standard format:

      1. The email with the initial question is received and remains isolated in the inbox.
      2. Moodle adds "RE:" to the replies and also places the course name before it, which causes email clients to organize the replies as separate messages from the original question, leading to duplication.

      To resolve this and keep the emails organized within a single thread, I would recommend placing the course name at the end of the subject line. This helps group the messages more efficiently and makes it easier for users to follow discussions within a single email thread.

      By changing the "postmailsubject":
      From: "{$a->courseshortname}: {$a->subject}"
      To: "{$a->subject} - {$a->courseshortname}"

      Alternatively, moving the "RE:" to the beginning of the string might also work, although it could be more complex to implement.

            andrew.gosali@moodle.com Andrew Gosali
            eduardokraus Eduardo Kraus
            Glyn (Mathew) May Glyn (Mathew) May
            Mihail Geshoski Mihail Geshoski
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 3 hours, 34 minutes
                2d 3h 34m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.