Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Hackfest UK 2014/Email Logging

From MoodleDocs
Revision as of 11:16, 17 April 2014 by Larry Zoumas (talk | contribs)

Message Logging and Reporting


  • Contact Name: Larry Zoumas (larry.zoumas@xtractor.se) Martin Sandberg (martin.sandberg@xtractor.se)
  • please add name if interested

Changing the focus to messaging instead of only emails

Notes:

  • Not all emails go through the messaging scary.
  • We might want to make a place to hook into this or decorate it

Capability:

  • Can View own messages
  • Can View other messages
  • Can View courses you own

Options:

  • Optionally log body

Proposed Table Schema

messaging_log

  • id
  • from (user_id)
  • message_type (FK mdl_message_provider)
  • moduleid
  • courseid
  • subject
  • body_id
  • time

messaging_log_user

  • id
  • message_log_id (FK to messaging log)
  • userid
  • to_address (email address or identifier when the message was sent)
  • time
  • status

messaging_log_body

  • id
  • body_text