begin basic prep for trying it out on a live site

This commit is contained in:
John McLear 2013-01-31 02:09:28 +00:00
parent 8bcd6738db
commit d77ae275e0
2 changed files with 6 additions and 8 deletions

View file

@ -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
}
}
}

View file

@ -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) {