Bladeren bron

Merge branch 'fix-661' of https://github.com/Kr1ss-XD/mutt-wizard into Kr1ss-XD-fix-661

tags/v3.3
Luke Smith 3 jaren geleden
bovenliggende
commit
bf9aa99930
Geen bekende sleutel gevonden voor deze handtekening in de database GPG sleutel-ID: 4C50B54A911F6252
2 gewijzigde bestanden met toevoegingen van 6 en 3 verwijderingen
  1. +5
    -3
      bin/mailsync
  2. +1
    -0
      share/domains.csv

+ 5
- 3
bin/mailsync Bestand weergeven

@@ -39,12 +39,14 @@ case "$(uname)" in
messageinfo() { osascript -e "display notification with title \"📧 $from\" subtitle \"$subject\"" ;}
;;
*)
displays="$(pgrep -a X\(org\|wayland\) | grep -wo "[0-9]*:[0-9]\+" | sort -u)"
notify() { for x in $displays; do
# remember if a display server is running since `ps` doesn't always contain a display
pgrepoutput="$(pgrep -a X\(org\|wayland\))"
displays="$(echo "$pgrepoutput" | grep -wo "[0-9]*:[0-9]\+" | sort -u)"
notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-0:}; do
export DISPLAY=$x
notify-send --app-name="mutt-wizard" "mutt-wizard" "📬 $2 new mail(s) in \`$1\` account."
done ;}
messageinfo() { for x in $displays; do
messageinfo() { [ -n "$pgrepoutput" ] && for x in ${displays:-0:}; do
export DISPLAY=$x
notify-send --app-name="mutt-wizard" "📧$from:" "$subject"
done ;}


+ 1
- 0
share/domains.csv Bestand weergeven

@@ -267,6 +267,7 @@ txstate.edu,outlook.office365.com,993,smtp.office365.com,587
ua.pt,outlook.office365.com,993,mail.ua.pt,25
uach.mx,imap.gmail.com,993,smtp.gmail.com,587
ucdavis.edu,imap.gmail.com,993,smtp.gmail.com,587
ucsb.edu,imap.gmail.com,993,smtp.gmail.com,587
uni-duesseldorf.de,mail.hhu.de,993,mail.hhu.de,465
uni-jena.de,imap.uni-jena.de,993,smtp.uni-jena.de,587
unilodz.eu,outlook.office365.com,993,smtp.office365.com,587


Laden…
Annuleren
Opslaan