#!/bin/sh case $BLOCK_BUTTON in 1) setsid "$TERMINAL" -T newsraft -e newsraft >/dev/null 2>&1 ;; 2) setsid -f newsup >/dev/null && exit ;; 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;; esac if [ ! -f /tmp/newsupdate ]; then count=$(newsraft -e print-unread-items-count) if [ "$count" != 0 ]; then printf "%s\n" "$count" fi else cat /tmp/newsupdate 2>/dev/null fi