diff --git a/static/js/ep_email.js b/static/js/ep_email.js index 16ffebf..b6e9228 100644 --- a/static/js/ep_email.js +++ b/static/js/ep_email.js @@ -24,7 +24,7 @@ function init(){ if(clientHasAlreadyRegistered()){ // if the client has already registered for emails on this pad. // showAlreadyRegistered(); // client has already registered, let em know.. }else{ - askClientToEnterEmail(); // ask the client to register + // askClientToEnterEmail(); // ask the client to register TODO uncomment me for a pop up } } } diff --git a/update.js b/update.js index c0901fc..cc7564b 100644 --- a/update.js +++ b/update.js @@ -8,17 +8,15 @@ settings = require('../../src/node/utils/Settings'); var pluginSettings = settings.ep_email_notifications; -var checkInterval = 3000; // How frequently to check for pad updates -- Move me to the settings file -var staleTime = 3000; // How stale does a pad need to be before notifying subscribers? Move me to settings +var checkInterval = 3000; // How frequently(milliseconds) to check for pad updates -- Move me to the settings file +var staleTime = 30000; // How stale(milliseconds) does a pad need to be before notifying subscribers? Move me to settings var timers = {}; -var fromName = "John McLear"; -var fromEmail = "john@mclear.co.uk"; +var fromName = "Etherpad"; +var fromEmail = "pad@etherpad.org"; var urlToPads = "http://beta.etherpad.org/p/"; var server = email.server.connect({ - user: "username", - password:"password", - host: "smtp.gmail.com", + host: "127.0.0.1", }); exports.padUpdate = function (hook_name, _pad) {