diff options
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}') |
