I dug around more in Perl LWP's WWW::RobotRules module and the short story
is that the bug I found exists, but that it's not as bad as I thought.
If you set up a user agent with the name "Foobar/1.23", a WWW::RobotRules
object actually /does/ currently know to strip off the "/1.23" (this
happens in the 'agent' method, not in the is_me method where I expected it).
The current bug surfaces only when your user-agent name is more than one
word; if your user-agent name is "Foobar/1.23 [[EMAIL PROTECTED]]", the
current 'agent' method's logic says "well, it doesn't end in
'/number.number', so there's no version to strip off".
So I'm going to send Gisle Aas a patch so that the first word, minus any
version suffix, is what's used for matching. It's just a matter of adding
a line saying:
$name = $1 if $name =~ m/(\S+)/; # get first word
in the 'agent' method.
--
Sean M. Burke [EMAIL PROTECTED] http://www.spinn.net/~sburke/
--
This message was sent by the Internet robots and spiders discussion list
([EMAIL PROTECTED]). For list server commands, send "help" in the body of a message
to "[EMAIL PROTECTED]".