From 7b26e52b67a9e1b32ac4d8cbb3fd467773b266d2 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 | 19 +++++++++++++++++++ 3 files changed, 19 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..30311bc --- /dev/null +++ b/goimapnotify/.config/goimapnotify/goimapnotify.yaml @@ -0,0 +1,19 @@ +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'