2 ######################################################################
3 test "$1" = "--help" && {
5 Usage: notify-message [-p PACKAGE]
7 Per default zypp invokes this command to propagate update
8 notification messages. The optional -p argument should
9 denote the packages that causes this message to be sent.
10 The message text itself is read from stdin.
12 See update.messages.notify option in /etc/zypp.conf
17 ######################################################################
19 MAILCMD="/usr/bin/mail"
20 test -x "$MAILCMD" || {
21 echo "notify-message: $MAILCMD: command not found" >&2
25 MAILTAG="[zypp-notify-message]"
27 # curently just '-p packageident'
32 exec $MAILCMD -s "$MAILTAG" $MAIL_TO