123456789101112131415161718192021222324252627282930313233343536373839 |
- MAILFILE="/var/spool/mail/$USER"
- __mail_detail() {
- [ ! -d "$MAILFILE" ] && [ -s "$MAILFILE" ] && ls -alF "$MAILFILE" 2>&1
- [ -d "$MAILFILE/new" ] && ls -AlF "$MAILFILE/new" 2>&1
- }
- __mail() {
- if [ -f "$MAILFILE" ] && [ -s "$MAILFILE" ]; then
- color b; printf "%s" "$ICON_MAIL"; color --
- elif [ -d "$MAILFILE/new" ] && "$(ls -A "$MAILFILE/new" 2>/dev/null)"; then
- color b; printf "%s" "$ICON_MAIL"; color --
- else
- rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/mail"*
- fi
- }
|