#!/bin/sh -e

CONFIG_FILE=/etc/jabber-mrim/mrim.conf
#CONFIG_FILE=mrim/mrim.conf.example

case "$1" in
--port) sed -n '/^port = / s/^port = //p' <$CONFIG_FILE
	;;
--host) sed -n '/^name = / s/^name = //p' <$CONFIG_FILE
	;;
--password) sed -n '/^password = / s/^password = //p' <$CONFIG_FILE
	;;
esac
