This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local jid_bare = require "util.jid".bare; | |
local os_time = os.time; | |
local t_concat = table.concat; | |
local smtp = require "socket.smtp"; | |
local vcards = module:open_store("vcard"); | |
local smtp_server = module:get_option_string("smtp_server", "localhost"); | |
local smtp_user = module:get_option_string("smtp_username"); | |
local smtp_pass = module:get_option_string("smtp_password"); | |
local smtp_daemon = module:get_option_string("smtp_daemon"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local jid_bare = require "util.jid".bare; | |
local os_time = os.time; | |
local t_concat = table.concat; | |
local smtp = require "socket.smtp"; | |
local vcards = module:open_store("vcard"); | |
local smtp_server = module:get_option_string("smtp_server", "localhost"); | |
local smtp_user = module:get_option_string("smtp_username"); | |
local smtp_pass = module:get_option_string("smtp_password"); | |
local smtp_daemon = module:get_option_string("smtp_daemon"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mutualSubscribe(source, friend, callback) { | |
var XMPP = require('stanza.io'); | |
var friend_jid = new XMPP.JID(friend.toLowerCase() + '@idelog.me/daemon'); | |
var source_jid = new XMPP.JID(source.toLowerCase() + '@idelog.me/daemon'); | |
var source_client = XMPP.createClient({ | |
jid: source_jid, | |
password: source.split("").reverse().join(""), | |
transport: 'bosh', | |
boshURL: config.get('xmpp.bosh_url') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mutualSubscribe(source, friend, callback) { | |
var XMPP = require('stanza.io'); | |
var friend_jid = new XMPP.JID(friend.toLowerCase() + '@idelog.me'); | |
var source_jid = new XMPP.JID(source.toLowerCase() + '@idelog.me'); | |
var source_client = XMPP.createClient({ | |
jid: source_jid, | |
password: source.split("").reverse().join(""), | |
transport: 'bosh', | |
boshURL: config.get('xmpp.bosh_url') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mutualSubscribe(source, friend, callback) { | |
var XMPP = require('stanza.io'); | |
var friend_jid = friend.toLowerCase() + '@idelog.me'; | |
var source_jid = source.toLowerCase() + '@idelog.me'; | |
var source_client = XMPP.createClient({ | |
jid: source_jid, | |
password: source.split("").reverse().join(""), | |
transport: 'bosh', | |
boshURL: config.get('xmpp.bosh_url') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mutualSubscribe(source, friend, callback) { | |
var XMPP = require('stanza.io'); | |
var friend_jid = friend.toLowerCase() + '@idelog.me'; | |
var source_jid = source.toLowerCase() + '@idelog.me'; | |
var source_client = XMPP.createClient({ | |
jid: source_jid, | |
password: source.split("").reverse().join(""), | |
transport: 'bosh', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mutualSubscribe(source, friend, callback) { | |
var XMPP = require('stanza.io'); | |
var friend_jid = friend.toLowerCase() + '@xxxx.me'; | |
var source_jid = source.toLowerCase() + '@xxxx.me'; | |
var source_client = XMPP.createClient({ | |
jid: source_jid, | |
password: 'xyz', | |
transport: 'bosh', | |
boshURL: config.get('xmpp.bosh_url') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Module dependencies. | |
var async = require('async'); | |
var _ = require('underscore'); | |
var application_root = __dirname, | |
path = require('path'); //Utilities for dealing with file paths | |
var request = require('request'); | |
var Q = require('q'); | |
var POP3Client = require("poplib"); | |
var MailParser = require("mailparser").MailParser; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var d3tree = Convert(tree, 0, []); | |
var lineage = []; | |
function Convert(obj_to_convert, level, lineage) { | |
var new_obj = []; | |
delete obj_to_convert['null']; | |
console.log('level', level); | |
level++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local jid_bare = require "util.jid".bare; | |
local jid_split = require "util.jid".split; | |
local os_time = os.time; | |
local t_concat = table.concat; | |
local smtp = require "socket.smtp"; | |
local vcards = module:open_store("vcard"); | |
local smtp_server = module:get_option_string("smtp_server", "localhost"); | |
local smtp_user = module:get_option_string("smtp_username"); | |
local smtp_pass = module:get_option_string("smtp_password"); | |
local smtp_daemon = module:get_option_string("smtp_daemon"); |
OlderNewer