diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-02-09 19:50:38 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-02-09 19:50:38 +0100 |
| commit | 6f45972265b532365421658f1370742bb82b757b (patch) | |
| tree | c293262456ba35ae5c1b778684527ed5c70c7ad1 /mail-checknow | |
| parent | 547311be5f6d90f36022a6e5e6fdbfb26862fd75 (diff) | |
| download | scripts-6f45972265b532365421658f1370742bb82b757b.tar.gz scripts-6f45972265b532365421658f1370742bb82b757b.zip | |
Changed default notification system to herbe
Diffstat (limited to 'mail-checknow')
| -rwxr-xr-x | mail-checknow | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mail-checknow b/mail-checknow index 3363173..188042b 100755 --- a/mail-checknow +++ b/mail-checknow | |||
| @@ -1,10 +1,11 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | # Check for new email, save result to file. | 3 | # Check for new email, save result to file. |
| 4 | # Requires: mpop, notify-send | 4 | # Requires: mpop, notify-send or similar |
| 5 | 5 | ||
| 6 | file="$XDG_DATA_HOME/newmail" | 6 | file="$XDG_DATA_HOME/newmail" |
| 7 | notify="notify-send" | 7 | #notify="notify-send" |
| 8 | notify=herbe | ||
| 8 | 9 | ||
| 9 | l=$(cat "$file") | 10 | l=$(cat "$file") |
| 10 | n=$(mpop -s | awk '/new*./{print $2}') | 11 | n=$(mpop -s | awk '/new*./{print $2}') |
