Contains several scripts that can show information in the XFCE4 task bar (current IPs, plain output of a website, number of queued mails), and enables users to execute various actions (switch the computer to an "offline mode", send enqueued emails).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
306 B

#!/bin/bash
# If offline, direct mail to msmtp-enqueue.sh
# If online, direct mail to msmtp directly
CURDIR=$(dirname "$(readlink -f "$0")")
source "$CURDIR"/shared-functions.so
mail=$(cat)
par="$@"
if [ "$var_conn" == "off" ]; then
echo "$mail" | $MSMTP_EN $par
else
echo "$mail" | msmtp $par
fi