#	@(#)flagbit	3.1 (motonori/WIDE) 21 May 1996
#
#	script for mailer flag management
#
#	base flags to be set in _FLAGS_BASE
#	additinal flags to be set in _FLAGS_ADD
#	needless flags to be set in _FLAGS_SUB
#
#	flags returned in _FLAGS

if [ "$_FLAGS_BASE" = "" ]
then
	echo "flagbit: _FLAGS_BASE is not set." 1>&2
fi

if [ "$_FLAGS_SUB" ]
then

	_FLAGS=`echo "$_FLAGS_BASE""$_FLAGS_ADD" | sed "s#[$_FLAGS_SUB]##g"`

else

	_FLAGS="$_FLAGS_BASE""$_FLAGS_ADD"

fi

_FLAGS_BASE=
_FLAGS_ADD=
_FLAGS_SUB=
