diff --git a/mailmime.module b/mailmime.module
index 637a2b6..051e553 100644
--- a/mailmime.module
+++ b/mailmime.module
@@ -98,19 +98,26 @@ function mailmime_check_requirements() {
  */
 function mailmime_download_requirements() {
   $svn = 'http://svn.php.net/repository/pear/';
+  $github = 'https://raw.github.com/pear/';
   $packages = array(
     'Mail_mime' => array(
       'local_path' => 'Mail/',
-      'remote_path' => 'packages/Mail_Mime/trunk/',
+      'remote_path' => $github . 'Mail_Mime/master/Mail/',
       'files' => array(
         'mime.php',
-        'mimeDecode.php',
         'mimePart.php',
       ),
     ),
+    'Mail_mimeDecode' => array(
+      'local_path' => 'Mail/',
+      'remote_path' => $svn . 'packages/Mail_mimeDecode/trunk/Mail/',
+      'files' => array(
+        'mimeDecode.php',
+      ),
+    ),
     'PEAR' => array(
       'local_path' => '',
-      'remote_path' => 'pear-core/trunk/',
+      'remote_path' => $github . 'pear-core/master/',
       'files' => array(
         'PEAR.php',
         'PEAR5.php',
@@ -121,7 +128,7 @@ function mailmime_download_requirements() {
     $dst = $package['local_path'];
     $src = $package['remote_path'];
     foreach ($package['files'] as $file) {
-      if (!include_check_path("$dst$file", "$svn$src$file", 'url')) {
+      if (!include_check_path("$dst$file", "$src$file", 'url')) {
         return FALSE;
       }
     }
