Replace imapnotify with goimapnotify

This commit is contained in:
coolneng 2021-06-18 16:10:51 +02:00
parent 6adc63bf71
commit a9be2c1cc7
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
5 changed files with 31 additions and 32 deletions

View File

@ -0,0 +1,16 @@
{
"host": "imap.gmail.com",
"port": 993,
"tls": true,
"tlsOptions": {
"rejectUnauthorized": true
},
"username": "akasroua@gmail.com",
"passwordCmd": "pass mail/gmail",
"xoauth2": true,
"onNewMail": "mbsync gmail",
"onNewMailPost": "notmuch new",
"boxes": [
"INBOX"
]
}

View File

@ -0,0 +1,15 @@
{
"host": "correo.ugr.es",
"port": 993,
"tls": true,
"tlsOptions": {
"rejectUnauthorized": true
},
"username": "akasroua@correo.ugr.es",
"passwordCmd": "pass mail/uni",
"onNewMail": "mbsync uni",
"onNewMailPost": "notmuch new",
"boxes": [
"INBOX"
]
}

View File

@ -1,15 +0,0 @@
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 = "mbsync gmail"
exports.onNewMailPost = "notmuch new"
exports.boxes = [ "INBOX"];

View File

@ -1,15 +0,0 @@
var child_process = require('child_process');
function getStdout(cmd) {
var stdout = child_process.execSync(cmd);
return stdout.toString().trim();
}
exports.host = "correo.ugr.es"
exports.port = 993;
exports.tls = true;
exports.username = "akasroua@correo.ugr.es";
exports.password = getStdout("pass mail/uni");
exports.onNewMail = "mbsync uni"
exports.onNewMailPost = "notmuch new"
exports.boxes = [ "INBOX"];

View File

@ -328,8 +328,6 @@ bindswitch --reload --locked lid:off output $monitor enable
exec wl-paste -t text --watch clipman store
# kanshi
exec kanshi
# imapnotify
exec imapnotify -c ~/.config/imapnotify/uni.js
# tmux
assign [app_id="tmux"] $workspace1
exec kitty --class tmux -- tmuxp load ~/.tmuxp/local.yaml