I am wondering how to load "external" php-libraries into my component.
I would like to fetch mail via imap. To get this working, I would like to use a lib which is able to handle smime-encoded mails.
I got my installer-script working -- it uploads the library to /lib/phpimap.
How can I include this in my component without changing the way the library is written?
As far as I understand, I could use
JLoader::discover to do this.
However, if I use:
JLoader::discover('PhpImap', JPATH_LIBRARIES . '/phpimap');
it would "detect" only classes in /lib/phpimap which begin with "PhpImap" - but the classes are named in another way and without any kind of a standard-prefix.
How can I solve that?