Browse Source

Merge branch 'master' of github.com:LukeSmithxyz/mutt-wizard

pull/908/head
Luke Smith 1 year ago
parent
commit
4773839af2
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      bin/mailsync
  2. +1
    -0
      share/domains.csv

+ 2
- 0
bin/mailsync View File

@@ -43,6 +43,8 @@ case "$(uname)" in
# remember if a display server is running since `ps` doesn't always contain a display # remember if a display server is running since `ps` doesn't always contain a display
pgrepoutput="$(pgrep -ax X\(\|org\|wayland\))" pgrepoutput="$(pgrep -ax X\(\|org\|wayland\))"
displays="$(echo "$pgrepoutput" | grep -wo "[0-9]*:[0-9]\+" | sort -u)" 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 notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-0:}; do
export DISPLAY=$x export DISPLAY=$x
notify-send --app-name="mutt-wizard" "New mail!" "📬 $2 new mail(s) in \`$1\` account." notify-send --app-name="mutt-wizard" "New mail!" "📬 $2 new mail(s) in \`$1\` account."


+ 1
- 0
share/domains.csv View File

@@ -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.com,imap.fastmail.com,993,smtp.fastmail.com,465
fastmail.fm,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 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 firemail.cc,mail.cock.li,993,mail.cock.li,587
forpsi.com,imap.forpsi.com,993,smtp.forpsi.com,465 forpsi.com,imap.forpsi.com,993,smtp.forpsi.com,465
forthnet.gr,mail.forthnet.gr,993,smtp-auth.forthnet.gr,465 forthnet.gr,mail.forthnet.gr,993,smtp-auth.forthnet.gr,465


Loading…
Cancel
Save