Commit Graph

75 Commits

Author SHA1 Message Date
Petr Skoda 7d1906cf7c MDL-30948 stop messaging suspended and deleted users 2012-01-04 00:49:03 +01:00
Petr Skoda 358e5cf791 MDL-13572 fix incorrect value printing 2012-01-03 11:01:29 +13:00
Petr Skoda a2c591662b MDL-13572 fix incorrect value printing 2012-01-03 11:01:29 +13:00
Petr Skoda 64550fa6c1 MDL-13572 do not send emails to invalid addresses 2012-01-03 11:01:29 +13:00
Sam Hemelryk 7f7d9ce6e8 Merge branch 'MDL-13572_validate_email_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-01-03 09:57:14 +13:00
Andrew Davis 925d068de1 MDL-13572 message: added validation of the email address in the messaging preferences 2011-12-14 17:48:36 +08:00
Aparup Banerjee bc3801cb9c MDL-30604 Added upgrade lines to upgrade.php(s) 2011-12-09 02:03:58 +01:00
Andrew Davis 924deffba6 MDL-30607 message: removed an if condition that prevented you from clearing an overrident email address 2011-12-07 12:04:47 +08:00
Petr Skoda 5563272125 MDL-30007 standardise messaging plugin version files 2011-11-29 21:23:18 +01:00
Tim Hunt 7529f9e944 MDL-29548 allow message plugins to control message
defaults.

At the moment, each message_provider can specify defaults for
each message output, to say whether that message output should be
used for this type of message:
http://docs.moodle.org/dev/Messaging_2.0#Adding_new_message_type.

If the message provider does not set a default, this change allows
the message output to set the default.
2011-10-04 11:23:52 +01:00
Aparup Banerjee c5a8abfedd MDL-28169 Installation Added 2.1 upgrade (idiot proof) lines to upgrade scripts. 2011-07-07 11:40:38 +08:00
Ruslan Kabalin f15097b5a3 MDL-27171 messages: remove excessive check from jabber send_message function
the parent send_message in messagelib.php does user/system configuration
checks before calling this method using the plugin instance.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-27 13:49:28 +01:00
Ruslan Kabalin f8351d0927 MDL-27171 messages: do not keep empty messging configuration strings in user preferences
Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-27 13:49:28 +01:00
Ruslan Kabalin 2f2137fca4 MDL-27171 messages: admin settings reordering
This includes:
 * most email settings go from general admin setings to email plugin settings
 * digestmailtime goes to mod/forum/settings.php
 * supportname, supportemail and supportpage go to Support contact page
 * all jabber settings go from general admin setings to jabber plugin settings

AMOS BEGIN
 MOV [jabberhost,admin],[jabberhost,message_jabber]
 MOV [configjabberhost,admin],[configjabberhost,message_jabber]
 MOV [jabberserver,admin],[jabberserver,message_jabber]
 MOV [configjabberserver,admin],[configjabberserver,message_jabber]
 MOV [jabberusername,admin],[jabberusername,message_jabber]
 MOV [configjabberusername,admin],[configjabberusername,message_jabber]
 MOV [jabberpassword,admin],[jabberpassword,message_jabber]
 MOV [configjabberpassword,admin],[configjabberpassword,message_jabber]
 MOV [jabberport,admin],[jabberport,message_jabber]
 MOV [configjabberport,admin],[configjabberport,message_jabber]
 MOV [digestmailtime,admin],[digestmailtime,forum]
 MOV [configdigestmailtime,admin],[configdigestmailtime,forum]
 MOV [allowusermailcharset,admin],[allowusermailcharset,message_email]
 MOV [configallowusermailcharset,admin],[configallowusermailcharset,message_email]
 MOV [mailnewline,admin],[mailnewline,message_email]
 MOV [configmailnewline,admin],[configmailnewline,message_email]
 MOV [noreplyaddress,admin],[noreplyaddress,message_email]
 MOV [confignoreplyaddress,admin],[confignoreplyaddress,message_email]
 MOV [sitemailcharset,admin],[sitemailcharset,message_email]
 MOV [configsitemailcharset,admin],[configsitemailcharset,message_email]
 MOV [smtphosts,admin],[smtphosts,message_email]
 MOV [configsmtphosts,admin],[configsmtphosts,message_email]
 MOV [smtpmaxbulk,admin],[smtpmaxbulk,message_email]
 MOV [configsmtpmaxbulk,admin],[configsmtpmaxbulk,message_email]
 MOV [smtpuser,admin],[smtpuser,message_email]
 MOV [configsmtpuser,admin],[configsmtpuser,message_email]
 MOV [smtppass,admin],[smtppass,message_email]
AMOS END

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-27 13:49:28 +01:00
Ruslan Kabalin 21e6c82282 MDL-27643 messages: message_output_jabber should not send messges to emails
Jabber message should only be send if destination user has Jabber ID specified
in the profile. It should not use email if jabber id is not provided as it is
a performance breach.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-27 13:44:49 +01:00
Ruslan Kabalin cd8f78c88f MDL-27171 messages: add new methods on the message_output class
This introduces the new methods to the abstract class: is_system_configured
and is_user_configured that are supposed to return boolean depending whether
required configuration has been made on both system or user level
respectively. These methods return true by default and and be overriden by
being declared in the plugin class itself

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-27 13:44:49 +01:00
Andrew Davis (andyjdavis) d3a8184239 message MDL-26185 fixed the logic around email addy in user profile Vs in messaging preferences 2011-04-07 15:58:33 +08:00
Sam Hemelryk 62f7ce7989 PULL-574 MDL-26185 Reverted changes due failed testing + review 2011-04-06 16:33:47 +08:00
Sam Hemelryk bbb79f47a7 messaging MDL-26185 Last minute fix of bug during integration, empty user preference causing error 2011-04-05 16:52:07 +08:00
Rossiani Wijaya 9d61d9ac6d MDL-26185: simplify the logic of email message output and removing email address cache 2011-04-01 16:55:37 +08:00
Andrew Davis (andyjdavis) 7e98f60bfb message MDL-26077 fixed up a problem with html tags being stripped out 2011-03-24 11:30:12 +08:00
Petr Skoda 431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
Andrew Davis (andyjdavis) 6c0f13a5bc message MDL-25816 added safety checks in form processing 2011-02-22 16:05:01 +08:00
Petr Skoda 38d93cb0ff MDL-26046 prevent jabber messages wehn noemailever active
Standardise also the debug when emailing message.
2011-01-30 11:01:27 +01:00
Andrew Davis 35eed0ca48 message MDL-25267 improved the test for Jabber configuration 2010-11-18 07:17:19 +00:00
Andrew Davis 0d447fe634 message MDL-25264 removed another reference to $USER 2010-11-18 07:05:47 +00:00
Andrew Davis fa8f03efbb message MDL-25264 made it possible to edit another user's message preferences 2010-11-18 05:28:51 +00:00
Andrew Davis 861fa9120d message MDL-25267 made jabber processor detect if it hasnt been configured 2010-11-18 02:59:23 +00:00
Andrew Davis f979f128bf message MDL-24788 added brackets around the automatically appended part of the jabber notification 2010-11-08 06:50:20 +00:00
Andrew Davis 46505ee75e message MDL-24694 removed references to user->emailstop. the column itself will be removed in a later version 2010-11-05 08:04:40 +00:00
Andrew Davis d8d32f1aac message MDL-24694 made the email message processor report success if the recipient has said they don't want to receive emails so that code sending messages isnt bothered by what looks like a failure. 2010-11-03 07:57:31 +00:00
Andrew Davis 24a56744c1 message MDL-24788 improved jabber notifications 2010-10-29 03:45:47 +00:00
Andrew Davis 27bfb970f2 message MDL-24894 fixing the jabber message processor after yesterdays refactoring 2010-10-28 07:43:34 +00:00
Andrew Davis fe983847dd message MDL-24873 changes to reduce server load and also get the forum's custom email headers passed through correctly 2010-10-27 08:47:33 +00:00
Andrew Davis 2509c0e94b message MDL-24771 moved common message settings out of the popup processor 2010-10-26 02:39:23 +00:00
Andrew Davis a813a74843 message MDL-24771 a big commit that fixes a whole bunch of small issues with messaging 2010-10-25 09:29:34 +00:00
Andrew Davis 90b4d5990a message MDL-24562 made jabber message notifications work 2010-10-18 06:21:23 +00:00
Andrew Davis d656dd943d message MDL-24562 adding a debug call to the Jabber message processor exception handler 2010-10-18 03:13:44 +00:00
Andrew Davis 6ee2611c63 message MDL-24563 altered messaging so that forum post notifications aren't so overwhelming when viewed on /message/index.php 2010-10-15 06:59:02 +00:00
Andrew Davis 27a3976343 message MDL-24548 some emergency bug fixes to messaging 2010-10-08 02:31:57 +00:00
Andrew Davis e7e7bb9ace message MDLSITE-1039 improving the jabber message processor 2010-10-07 06:36:17 +00:00
Andrew Davis fe561379e4 message MDLSITE-1042 added a footer to IM email notifications 2010-10-07 04:00:37 +00:00
Petr Skoda 8e803c3f9f MDL-24321 switching to stdClass in /login/ and /message/ 2010-09-21 08:18:23 +00:00
Petr Skoda 71666cf314 spelling fixes 2010-09-17 19:41:02 +00:00
Petr Skoda 7e20544810 fixed object initialization and also completely broken jabber connect 2010-09-17 19:36:45 +00:00
Petr Skoda ef14c1e724 MDL-24090 new detection of plugins that were not upgraded to work with Moodle 2.x (uses $plugin->requires) + bumping ancient versions of plugins 2010-09-05 20:36:18 +00:00
Andrew Davis 6d2e69363d message MDL-23101 made email notifications of forum posts work 2010-07-06 08:59:39 +00:00
Andrew Davis 505ab5aaa0 message MDL-23101 made notifications of forum posts work 2010-07-06 07:42:29 +00:00
Andrew Davis 1560760fb0 message MDL-23098 fixed the eratic behaviour of new message notifications 2010-07-06 01:52:32 +00:00
Petr Skoda 55825877f1 fixed message plugin names
AMOS BEGIN
 MOV [email,message_email],[pluginname,message_email]
 MOV [jabber,message_jabber],[pluginname,message_jabber]
 MOV [popup,message_popup],[pluginname,message_popup]
AMOS END
2010-07-04 13:23:56 +00:00