mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
parent
c60e929437
commit
e6c6d633c6
2 changed files with 7 additions and 3 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -1,6 +1,7 @@
|
|||
byobu (5.32) unreleased; urgency=low
|
||||
|
||||
* UNRELEASED
|
||||
* usr/lib/byobu/mail: LP: #1118364
|
||||
- support maildir format
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 06 Feb 2013 23:16:22 -0600
|
||||
|
||||
|
|
|
@ -22,11 +22,14 @@
|
|||
MAILFILE="/var/spool/mail/$USER"
|
||||
|
||||
__mail_detail() {
|
||||
[ -s "$MAILFILE" ] && ls -alF "$MAILFILE" 2>&1
|
||||
[ ! -d "$MAILFILE" ] && [ -s "$MAILFILE" ] && ls -alF "$MAILFILE" 2>&1
|
||||
[ -d "$MAILFILE/new" ] && ls -AlF "$MAILFILE/new" 2>&1
|
||||
}
|
||||
|
||||
__mail() {
|
||||
if [ -s "$MAILFILE" ]; then
|
||||
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"*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue