newgroup command via control message
Yutaka KAWASE
yutaka at mailhost.net
Sun Mar 19 21:46:41 UTC 2000
Hello, all.
I built two inn-2.2.1 in my home. One on slackware-7.0 and the other
is OpenBSD-2.5. Both of them seems to working fine, except for one
thing.
On slackware, it accepts control message of newgroup. However, OpenBSD
doesn't. Instead, it gives me a mail "Unparseable newgroup by
me at my.home".
I checked files in ~/etc on both machine and they are the same. I went
to ~/bin/control and edit newgroups commmand like this.
-----------------------------------------------------------
## Valid parameters and group name?
cp /dev/null /tmp/news.log
echo "1 = $1" >> /tmp/news.log # i added this line
echo "2 = $2" >> /tmp/news.log # i added this line
echo "3 = $3" >> /tmp/news.log # i added this line
echo "4 = $4" >> /tmp/news.log # i added this line
echo "5 = $5" >> /tmp/news.log # i added this line
echo "6 = $6" >> /tmp/news.log # i added this line
case "$#" in
1|2)
;;
*)
echo yoyoyo-hohoho >> /tmp/news.log # i added this line
${SM} ${ARTICLE} | ${WRITELOG} ${LOGFILE} "Unparseable newgroup by ${FROM}"
exit
;;
esac
-----------------------------------------------------------
After I send control message, I did 'cat /tmp/news.log'.
On slackware;
cow:~/bin/control$ cat /tmp/news.log
1 = yk.test.112
2 =
3 =
4 =
5 =
6 =
cow:~/bin/control$
On OpenBSD;
dx:~/bin/control$ cat /tmp/news.log
1 = yutaka at cow.yk.tp
2 = yutaka at cow.yk.tp
3 = control/newgroup/16
4 = not-for-mail
5 =
6 =
yoyoyo-hohoho
dx:~/bin/control$
What is wrong with me? Can anybody help?
--
Yutaka KAWASE <yutaka at isoternet.org>
More information about the inn-workers
mailing list