Adapt goimapnotify configuration to YAML
This commit is contained in:
parent
5c326f2e01
commit
1787b7da6a
@ -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"
|
|
||||||
]
|
|
||||||
}
|
|
@ -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"
|
|
||||||
]
|
|
||||||
}
|
|
22
goimapnotify/.config/goimapnotify/goimapnotify.yaml
Normal file
22
goimapnotify/.config/goimapnotify/goimapnotify.yaml
Normal file
@ -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
|
@ -1,11 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
ACCOUNT="$1"
|
||||||
|
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
echo "Usage: mail-sync <account name>"
|
ACCOUNT="-a"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mbsync "$1"
|
mbsync "$ACCOUNT"
|
||||||
if pgrep -f 'mu server'; then
|
if pgrep -f 'mu server'; then
|
||||||
emacsclient -e '(mu4e-update-index)'
|
emacsclient -e '(mu4e-update-index)'
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user