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

Blocked mail creates log entry that shows as "last logged in"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.7.2, 1.8, 1.9
    • Component/s: Forum
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      When a posting is sent out, any users whose e-mail as been blocked, end up with a log entry with the "action" set to "mail blocked". When checking the list of course participants afterwards, each person whose mail has been blocked is displayed as having last logged in at the time that the forum posting was sent.

      In fact, two entries appear in the log for each blocked message. Both of the URLs are those of the site where the crontab resides (my school, in this case) although the site is located on an ISP provider in the U.S.

        Gliffy Diagrams

          Activity

          Hide
          skodak Petr Skoda added a comment -

          the fix was totally wrong - you must not unset($USER) in forum cron, because you are not able to access the global $USER object which breaks language handling

          Show
          skodak Petr Skoda added a comment - the fix was totally wrong - you must not unset($USER) in forum cron, because you are not able to access the global $USER object which breaks language handling
          Hide
          skodak Petr Skoda added a comment -

          fixed in cvs
          thanks for the report

          Show
          skodak Petr Skoda added a comment - fixed in cvs thanks for the report
          Hide
          poltawski Dan Poltawski added a comment -

          This needs re-fixing in MOODLE_17_STABLE too

          Show
          poltawski Dan Poltawski added a comment - This needs re-fixing in MOODLE_17_STABLE too
          Hide
          skodak Petr Skoda added a comment -

          fixed in cvs

          Show
          skodak Petr Skoda added a comment - fixed in cvs

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                30/Mar/07