imap-autoconfig

Detect e-mail connection settings

Require imap-autoconfig

var autoconfig = require("imap-autoconfig");

Autoconfig object

Create new autoconfig object

var detector = autoconfig.createIMAPSettingsDetector(config);

Where config is an optional (if not set, predefined values will be used) configuration object with following properties:

Check connection settings

Check IMAP connection settings with autoconfig.detect

detector.detect(address, password, cached, callback)

Where

Example

detector.detect("pipemail@node.ee", "zzzzz", true, function(err, data){ console.log(err || data);});

Response data object has the following properties

Example value

{ host: 'imap.mail.yahoo.com', port: '993', secure: 'true', user: '%EMAIL%', expires: Thu Aug 09 2012 11:43:14 GMT+0300 (EEST) // Date object, not a String value}
https://npmjs.org/package/imap-autoconfig