better local bounce handling
[distro-setup] / brc
diff --git a/brc b/brc
index e1aa677c23ab4c4fe32a64ae7dd30c659d864e7d..df4b90811132aeb5240b18ce2573b13c850c51b2 100644 (file)
--- a/brc
+++ b/brc
@@ -122,7 +122,7 @@ if [[ $- == *i* ]]; then
 
     if [[ $KONSOLE_PROFILE_NAME ]]; then
       TERM=xterm-256color
-      fi
+    fi
 
     # todo: not sure this works in sakura
     #stty werase undef
@@ -1118,14 +1118,14 @@ ifn() {
 }
 
 
-  o() {
-    if type gvfs-open &> /dev/null ; then
-      gvfs-open "$@"
-    else
-      xdg-open "$@"
-    fi
-    # another alternative is run-mailcap
-  }
+o() {
+  if type gvfs-open &> /dev/null ; then
+    gvfs-open "$@"
+  else
+    xdg-open "$@"
+  fi
+  # another alternative is run-mailcap
+}
 
 ipdrop() {
   s iptables -A INPUT -s $1 -j DROP
@@ -2192,8 +2192,11 @@ if [[ $- == *i* ]]; then
     if [[ -e /nocow/btrfs-stale ]] && ((`command ls -AUq /nocow/btrfs-stale|wc -l`)); then
       ps_char="! $ps_char"
     fi
+    if test -e /Maildir/new/*; then
+      ps_char='!BOUNCE! '"$ps_char"
+    fi
     if [[ -e /nocow/mailtest-failure ]]; then
-      ps_char="@#$@#$ $ps_char"
+      ps_char='@#$@#$ '"$ps_char"
     fi
     source /a/bin/bash_unpublished/source-state
     if [[ ! $SSH_CLIENT && $MAIL_HOST != $HOSTNAME ]]; then