Procházet zdrojové kódy

fix: beauty ntf a bit

pull/913/head
shane.xb.qian před 1 rokem
rodič
revize
530a730733
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. +4
    -4
      bin/mailsync

+ 4
- 4
bin/mailsync Zobrazit soubor

@@ -70,13 +70,13 @@ syncandnotify() {
echo "$newcount new mail for $2."
[ -z "$MAILSYNC_MUTE" ] &&
for file in $new; do
# Extract and decode subject and sender from mail.
subject="$(sed -n "/^Subject:/ s|Subject: *|| p" "$file" |
# Extract and decode subject and sender from mail.
subject="$(sed -n "/^Subject:/ s|^Subject: *|| p" "$file" |
perl -CS -MEncode -ne 'print decode("MIME-Header", $_)')"
from="$(sed -n "/^From:/ s|From: *|| p" "$file" |
from="$(sed -n "/^From:/ s|^From: *|| p" "$file" |
perl -CS -MEncode -ne 'print decode("MIME-Header", $_)')"
from="${from% *}" ; from="${from%\"}" ; from="${from#\"}"
notify "📧$from:" "$subject"
notify "📧 $from :" "$subject"
done
;;
*) echo "No new mail for $2." ;;


Načítá se…
Zrušit
Uložit