Moodle
  1. Moodle
  2. MDL-8759

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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
    • Rank:
      29054

      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.

        Activity

        Hide
        Petr Škoda 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
        Petr Škoda 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
        Petr Škoda added a comment -

        fixed in cvs
        thanks for the report

        Show
        Petr Škoda added a comment - fixed in cvs thanks for the report
        Hide
        Dan Poltawski added a comment -

        This needs re-fixing in MOODLE_17_STABLE too

        Show
        Dan Poltawski added a comment - This needs re-fixing in MOODLE_17_STABLE too
        Hide
        Petr Škoda added a comment -

        fixed in cvs

        Show
        Petr Škoda added a comment - fixed in cvs

          People

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

            Dates

            • Created:
              Updated:
              Resolved: