Error regarding Mail::Box::IMAP4::foundIn

Matthew Walton <[email protected]> Mon, 10 Jan 2005 13:51:15 +0000
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When attempting to run a script which uses Mail::Box (the crm114 mail
reclassification script found at
http://www.johnjohnston.org/crm114.html) I see the following error from
within Mail::Box:


ERROR: Package Mail::Box::IMAP4 does not implement Mail::Box::foundIn.
Please warn the author, this shouldn't happen. at
/usr/local/share/perl/5.6.1/Mail/Reporter.pm line 196
~        Mail::Reporter::notImplemented('Mail::Box::IMAP4') called at
/usr/local/share/perl/5.6.1/Mail/Box.pm line 155
~        Mail::Box::foundIn('Mail::Box::IMAP4',
'/home/maw/mail/spam-wrong', 'folderdir', ., 'folder',
'/home/maw/mail/spam-wrong', 'lock_method', 'DOTLOCK', ...) called at
/usr/local/share/perl/5.6.1/Mail/Box/Manager.pm line 207
~        Mail::Box::Manager::open('Mail::Box::Manager=HASH(0x80f56bc)',
'folder', '/home/maw/mail/spam-wrong', 'access', 'rw', 'lock_method',
'DOTLOCK') called at ./fix-spam-classification.pl line 101


As far as I can tell, this rather odd problem is caused by Perl calling
Mail::Box::foundIn instead of Mail::Box::IMAP4::foundIn, which suggests
some sort of inheritance problem. I've looked through the source code
and it all looks fine and correct, so I'm at something of a loss. If I
add a foundIn to Mail::Box::Net, which is the immediate base class of
Mail::Box::IMAP4, that one gets called instead of the one in Mail::Box,
but it still doesn't pick up on the one in Mail::Box::IMAP4. I could, I
believe, remove the references to the IMAP4 module to get my script
running as it only needs mbox, but since it's a systemwide install on a
multiuser system I'm sure that if I do that someone will need the IMAP4
functionality before I can finish my coffee.

Perl is a standard Debian Woody 5.6.1


maw@wonky:~/crm/bin$ perl -v

This is perl, v5.6.1 built for i386-linux


Which I believe should be sufficient for running Mail::Box happily
(according to the readme). The version of Mail::Box is the latest 2.x
from CPAN.

Does anybody have any ideas? I'm completely baffled by this; I've seen
Perl do some strange OOP-related things in the past, but this one's new
to me.

Matthew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFB4ohP0UvYjCBpIlARArWfAJ9WSOvuKWnw5RydsrCRmzTgjHmoCACcDyqU
KiLgNVd6bJf+yGXWVF440AI=
=u8+W
-----END PGP SIGNATURE-----