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
// server.js - extracts gender using igender api | |
var _ = require('underscore'); | |
var pg = require('pg'); //Postgres integration pg_ctl -D /usr/local/var/postgres -l logfile start | |
var request = require('request'); | |
var async = require('async'); | |
//Connect to database | |
var conString = "tcp://shill:@localhost:5432/swoon"; |
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
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"); |
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; |
OlderNewer