From d86ec4289520c6e483bdbf5c570524c5467f6c0b Mon Sep 17 00:00:00 2001 From: Elias Howell Date: Thu, 29 Dec 2022 23:03:06 -0500 Subject: [PATCH 1/2] add https://fidei.email/ added fidei.email service provider --- share/domains.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/share/domains.csv b/share/domains.csv index 7052f67..01b87ea 100644 --- a/share/domains.csv +++ b/share/domains.csv @@ -107,6 +107,7 @@ faks.no,mail.uniweb.no,993,mail.uniweb.no,465 fastmail.com,imap.fastmail.com,993,smtp.fastmail.com,465 fastmail.fm,imap.fastmail.com,993,smtp.fastmail.com,465 fct.unl.pt,imap.gmail.com,993,smtp.gmail.com,587 +fidei.email,box.fidei.email,993,box.fidei.email,465 firemail.cc,mail.cock.li,993,mail.cock.li,587 forpsi.com,imap.forpsi.com,993,smtp.forpsi.com,465 forthnet.gr,mail.forthnet.gr,993,smtp-auth.forthnet.gr,465 From bfa70c52422d9043bb472ec154d7212683ac6eab Mon Sep 17 00:00:00 2001 From: Junicchi <24779257+KebabLord@users.noreply.github.com> Date: Thu, 12 Jan 2023 08:08:16 +0300 Subject: [PATCH 2/2] read xorg displays from unix-domain socket if pgrep returns null --- bin/mailsync | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/mailsync b/bin/mailsync index 26e71ea..d2394f9 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -43,6 +43,8 @@ case "$(uname)" in # remember if a display server is running since `ps` doesn't always contain a display pgrepoutput="$(pgrep -ax X\(\|org\|wayland\))" displays="$(echo "$pgrepoutput" | grep -wo "[0-9]*:[0-9]\+" | sort -u)" + [ -z $displays ] && [ -d /tmp/.X11-unix ] && displays=$(cd /tmp/.X11-unix && for x in X*; do echo ":${x#X}"; done) + notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-0:}; do export DISPLAY=$x notify-send --app-name="mutt-wizard" "New mail!" "📬 $2 new mail(s) in \`$1\` account."