*/
require_once(INSTALLDIR . '/lib/mail.php');
-require_once(INSTALLDIR . '/lib/mediafile.php');
require_once('Mail/mimeDecode.php');
// @todo FIXME: we use both Mail_mimeDecode and mailparse
$mf = null;
try {
- $mf = MediaFile::fromFileHandle($attachment, $user);
+ $mf = MediaFile::fromFilehandle($attachment, $user->getProfile());
} catch(ClientException $ce) {
$this->error($from, $ce->getMessage());
}