From 432143b2c66e161d4d12c0a8f4753cbc2495f96d Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 9 May 2025 16:00:14 +0200 Subject: [PATCH] Adapt goimapnotify configuration to YAML --- .../.config/goimapnotify/disroot.conf | 14 ------------ goimapnotify/.config/goimapnotify/gmail.conf | 14 ------------ .../.config/goimapnotify/goimapnotify.yaml | 22 +++++++++++++++++++ 3 files changed, 22 insertions(+), 28 deletions(-) delete mode 100644 goimapnotify/.config/goimapnotify/disroot.conf delete mode 100644 goimapnotify/.config/goimapnotify/gmail.conf create mode 100644 goimapnotify/.config/goimapnotify/goimapnotify.yaml diff --git a/goimapnotify/.config/goimapnotify/disroot.conf b/goimapnotify/.config/goimapnotify/disroot.conf deleted file mode 100644 index 3f2b051..0000000 --- a/goimapnotify/.config/goimapnotify/disroot.conf +++ /dev/null @@ -1,14 +0,0 @@ -{ - "host": "disroot.org", - "port": 993, - "tls": true, - "tlsOptions": { - "rejectUnauthorized": true - }, - "username": "akasroua@disroot.org", - "passwordCmd": "pass mail/disroot", - "onNewMail": "~/.local/share/scripts/mail-sync disroot", - "boxes": [ - "INBOX" - ] -} diff --git a/goimapnotify/.config/goimapnotify/gmail.conf b/goimapnotify/.config/goimapnotify/gmail.conf deleted file mode 100644 index 58f5d3c..0000000 --- a/goimapnotify/.config/goimapnotify/gmail.conf +++ /dev/null @@ -1,14 +0,0 @@ -{ - "host": "imap.gmail.com", - "port": 993, - "tls": true, - "tlsOptions": { - "rejectUnauthorized": true - }, - "username": "akasroua@gmail.com", - "passwordCmd": "pass mail/gmail", - "onNewMail": "~/.local/share/scripts/mail-sync gmail", - "boxes": [ - "INBOX" - ] -} diff --git a/goimapnotify/.config/goimapnotify/goimapnotify.yaml b/goimapnotify/.config/goimapnotify/goimapnotify.yaml new file mode 100644 index 0000000..bc62f54 --- /dev/null +++ b/goimapnotify/.config/goimapnotify/goimapnotify.yaml @@ -0,0 +1,22 @@ +configurations: + - + host: disroot.org + port: 993 + tls: true + tlsOptions: + rejectUnauthorized: true + username: akasroua@disroot.org + passwordCmd: 'pass mail/disroot' + onNewMail: '~/.local/share/scripts/mail-sync disroot' + - + host: imap.gmail.com + port: 993 + tls: true + tlsOptions: + rejectUnauthorized: true + username: akasroua@gmail.com + passwordCmd: 'pass mail/gmail' + onNewMail: '~/.local/share/scripts/mail-sync gmail' + boxes: + - + mailbox: INBOX