16 lines
428 B
JavaScript
16 lines
428 B
JavaScript
var child_process = require('child_process');
|
|
|
|
function getStdout(cmd) {
|
|
var stdout = child_process.execSync(cmd);
|
|
return stdout.toString().trim();
|
|
}
|
|
|
|
exports.host = "imap.gmail.com"
|
|
exports.port = 993;
|
|
exports.tls = true;
|
|
exports.username = "akasroua@gmail.com";
|
|
exports.password = getStdout("pass mail/gmail");
|
|
exports.onNewMail = "/bin/mbsync gmail"
|
|
exports.onNewMailPost = "/bin/notmuch new"
|
|
exports.boxes = [ "INBOX"];
|