#!/bin/sh

# We need to strip out HTML entities because zenity takes something
# that pretends to be HTML
motd=$(get_message -new | sed -e 's/&/\&amp;/g' \
    -e 's/</\&lt;/g' \
    -e 's/>/\&gt;/g' \
    -e 's/"/\&quot;/g' \
    -e "s/'/\&apos;/g")
[ -n "$motd" ] && zenity --no-wrap --info --text="
Athena message of the day:
$motd"
