After installing the Include module and enabling 7.x-2.17 I get the error:

WD include: Error downloading (https://raw.github.com/pear/Mail_Mime/master/Mail/mimeDecode.php): Not Found
WD mailmime: The Mail MIME module has disabled itself

This occurs because mimeDecode.php is referenced in the files list for Mail_mime (as well as for Mail_mimeDecode):

function mailmime_download_requirements() {
  $packages = array(
    'Mail_mime' => array(
      'local_path' => 'Mail/',
      'remote_path' => 'https://raw.github.com/pear/Mail_Mime/master/Mail/',
      'files' => array(
        'mime.php',
        'mimeDecode.php',
        'mimePart.php',
      ),
    ),
    'Mail_mimeDecode' => array(
      'local_path' => 'Mail/',
      'remote_path' => 'http://svn.php.net/repository/pear/packages/Mail_mimeDecode/trunk/Mail/',
      'files' => array(
        'mimeDecode.php',
      ),
    ),

To fix, remove the 'mimeDecode.php', line from the Mail_mime files array (line 106 of the module). Include will then be able to download mimeDecode.php from the correct location.

Comments

salvis’s picture

Thank you for your report.

Would you say that #1417646: Cannot download Mail_Mime from SVN repo via Include module has fixed this in the -dev version?

stewart.adam’s picture

Issue summary: View changes

Still present in 7.x-2.18 and 7.x-2.x-dev.

salvis’s picture

Status: Active » Fixed

When I look at http://cgit.drupalcode.org/mailmime/plain/mailmime.module?h=7.x-2.x&id=7... I see

function mailmime_download_requirements() {
  $packages = array(
    'Mail_mime' => array(
      'local_path' => 'Mail/',
      'remote_path' => 'https://raw.github.com/pear/Mail_Mime/master/Mail/',
      'files' => array(
        'mime.php',
        'mimePart.php',
      ),
    ),
    'Mail_mimeDecode' => array(
      'local_path' => 'Mail/',
      'remote_path' => 'http://svn.php.net/repository/pear/packages/Mail_mimeDecode/trunk/Mail/',
      'files' => array(
        'mimeDecode.php',
      ),
    ),
    'PEAR' => array(
      'local_path' => '',
      'remote_path' => 'https://raw.github.com/pear/pear-core/master/',
      'files' => array(
        'PEAR.php',
        'PEAR5.php',
      ),
    ),
  );

The original report was against 7.x-2.17, but it looks pretty fixed in 7.x-2.18...

Is your code different?

stewart.adam’s picture

My code is the same. I could access the files mentioned directly in a browser, but the include module seemed to produce an error when attempting to retrieve them.

salvis’s picture

I think that would have to be a different error.

Please open a new issue and post the exact error message.

salvis’s picture