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

Forum Email Organization in Moodle

    • MOODLE_404_STABLE, MOODLE_405_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 moodle email SMTP password: see https://knowledge.workspace.google.com/kb/how-to-create-app-passwords-000009237 No-reply address: your moodle email Site Administration > Server > Incoming mail configuration Enable incoming mail processing: Yes Mailbox name: first part of your moodle email Email domain: moodle.com Incoming Mail Server: imap.gmail.com:993 Username: your moodle 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: Mon 25 Nov 2024 10:37:55 AM UTC

      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: Mon 25 Nov 2024 10:37:55 AM UTC
    • 1
    • Team Alpha - Planning 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
            Mathew May Mathew May
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 45 minutes
                2d 45m

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