#!/bin/sh 

_()
{
LANG=${in_language%%;*}.utf8 gettext "alterator-dovecot" "$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 "dovecot.html"'
				echo ' help "dovecot.html"'
				echo ')'
			else
				echo '#f'
			fi
			;;
		info)
			echo '('
			printf ' title "%s"' "`_ "POP3/IMAP server"`"
			printf ' description "%s"' "`_ "POP3/IMAP server administration"`"
			printf ' group "%s"' "`_ "Mail"`"
			echo ')'
			;;
		*)
			echo '#f'
			;;
	esac
}

message_loop
