#!/bin/sh 

_()
{
LANG=${in_language%%;*}.utf8 gettext "alterator-postfix-sasl" "$1"
}


#turn off auto expansion
set -f

. /usr/share/alterator/build/backend3.sh

on_message()
{
	case "$in_action" in
		#information for renderer
		template)
			if [ "$in__objects" = "/" ];then
				echo '('
				echo ' template "form"'
				echo ' url "postfix-sasl.html"'
				echo ' help "postfix-sasl.html"'
				echo ')'
			else
				echo '#f'
			fi
			;;
		info)
			echo '('
			printf ' title "%s"' "`_ "Postfix (SASL Settings)"`" #"
			printf ' description "%s"' "`_ "Turn on/off SASL authentication"`"
			printf ' group "%s"' "`_ "Mail"`"
			echo ')'
			;;
		*)
			echo '#f'
			;;
	esac
}

message_loop
