+first_chars=()
+
+power=true
+if [[ -e /sys/class/power_supply/AC/online && $(</sys/class/power_supply/AC/online) == 0 ]]; then
+ power=false
+fi
+
+if $power; then
+ for h in tp.b8.nz vpn1 x2 x3.b8.nz frodo.b8.nz kd.b8.nz kw; do
+ if [[ $HOSTNAME == ${h%%.*} ]]; then
+ continue
+ fi
+ msg=
+ if c=$(timeout 1 ssh $h exim -bpc 2>/dev/null) && [[ $c && $c != 0 ]]; then
+ msg=q:$h=$c
+ first_chars+=($msg)
+ fi
+ if [[ $1 ]]; then
+ echo q: $h $c
+ fi
+ lo -1 remote-mailq $msg
+ done
+fi