2016-03-07 17:31:28 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-01-01 09:33:31 +01:00
|
|
|
imapfilter -c /home/core/.imapfilter/config.lua
|
2019-12-31 09:48:38 +01:00
|
|
|
mbsync -Va
|
|
|
|
notmuch new
|
2016-03-07 17:31:28 +01:00
|
|
|
|
2019-12-31 09:48:38 +01:00
|
|
|
export DISPLAY=:0
|
2020-01-01 09:33:31 +01:00
|
|
|
let inbox=`ls /home/core/Mail/Inbox/new/|wc -l`
|
2016-03-07 17:31:28 +01:00
|
|
|
|
2019-12-31 09:48:38 +01:00
|
|
|
if (("$inbox" > 0)); then
|
2020-01-01 09:33:31 +01:00
|
|
|
sudo -u core DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "You have
|
2019-12-31 09:48:38 +01:00
|
|
|
$inbox new mails in Inbox"
|
2016-03-07 17:31:28 +01:00
|
|
|
fi
|
2019-12-31 09:48:38 +01:00
|
|
|
|