Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The following error is generated when trying to download the necessary Mail_Mime files via the Include module:
Error downloading (http://svn.php.net/repository/pear/packages/Mail_Mime/trunk/mime.php): Not Found
A git repository of this library can be found here:
https://github.com/pear/Mail_Mime/
Comment | File | Size | Author |
---|---|---|---|
#14 | mailmime-1417646-7.x-2.17-14.patch | 379 bytes | star-szr |
#14 | mailmime-1417646-7.x-2.x-dev-14.patch | 1.47 KB | star-szr |
#2 | mailmime-fix_download_paths-1417646-2.patch | 1.92 KB | grasmash |
Comments
Comment #1
grasmash CreditAttribution: grasmash commentedComment #2
grasmash CreditAttribution: grasmash commentedI'm attaching a patch that contains the new, working URLs for Mail_Mime, Mail_mimeDecode, and PEAR.
Comment #3
johnnydarkko CreditAttribution: johnnydarkko commented#2 worked great for me, thanks madmatter23!
Comment #4
pillarsdotnet CreditAttribution: pillarsdotnet commentedComment #5
WaterWave CreditAttribution: WaterWave commentedCould someone send me the mailmime.module file with the patch applied ?
Maybe just the part that needs to be changed.
I'm trying to do the changes in the code myself but I don't understand the "@@-121,7 +126,7 @@" part
It would be really appreciated !
Thank you !
Comment #6
pillarsdotnet CreditAttribution: pillarsdotnet commentedThe
@@-121,7 +126,7@@
part describes the starting line number and number of matching lines in both the original and pached/edited/final file:Start at line 121 of the original file
Match seven lines of text
Which will become line 126 in the patched file
And match seven lines of text there, as well.
Comment #7
grasmash CreditAttribution: grasmash commentedYou should really checkout the guides on applying patches.
http://drupal.org/node/620014
Also, if you insist on doing it manually:
http://drupal.org/node/534548
Comment #8
WaterWave CreditAttribution: WaterWave commentedThank you for helping me.
I didn't wanted to go through all that documentation cause I tought it was only a little problem and I had no need to know how to patch a module. For now.
I'm using Quickstart on VM Virtual Box.
When I patch I get this error.
Hunk #1 FAILED at 96.
Hunk #2 FAILED at 121.
2 out of 2 hunks FAILED
At first I thought it was cause my module version was 7.x-2.15 and in your message title it says Version: 7.x-1.x-dev. So I downloaded that version but still the same error.
Have an idea what I'm doing wrong ?
I would like you to tell me if the "Quickstart" solution is a good way. Cygwin better ?
Thank you !
Comment #9
pillarsdotnet CreditAttribution: pillarsdotnet commentedFixing now.
Comment #10
pillarsdotnet CreditAttribution: pillarsdotnet commentedFixed in 6.x-2.17 / 7.x-2.17 / 8.x-2.17 releases.
Thanks very much for the report and patah.
Comment #12
Triumphent CreditAttribution: Triumphent commentedIt still doesn't work with version 7.x-2.17
Any other idea for those who are not PEAR expert?
Thank you.
Comment #13
Triumphent CreditAttribution: Triumphent commentedNo wonder it's not working in version 2.17.
First the path has changed and there is a typo in the name of the file:
It's not Mail/mimeDecode.php but Mail_mimeDecode.php. The slash should be an underscore..!
Error downloading (https://raw.github.com/pear/Mail_Mime/master/Mail/mimeDecode.php): Not Found
Comment #14
star-szrThe issue is that mimeDecode.php is still listed in the the
Mail_mime
array inmailmime_download_requirements()
. Somehow this got left out of the commits on all branches relating to this issue.Here are two patches.
The first patch is against 7.x-2.17.
The second patch is against 7.x-2.x-dev (the 7.x-2.x branch, which is a bit inconsistent, I'm filing another issue about a typo present in 7.x-2.x but not 7.x-2.17).Edit: The second patch is almost identical to the patch from #2 here, so it's probably unnecessary at this point.
The first patch just removes the same line as #1821686: Failed to download mimeDecode.php, but that issue is for 6.x-2.x. 8.x-2.x needs to be patched as well.
Comment #15
KarinGIt would be great if this could be committed.
I'm explaining to some people how to install mailmime - and since not all of them have command line access they can not
pear install -a Mail_Mime
or apply any patches either. They rely on Include module.
Thanks - Merci!
Comment #16
KarinGLooking back in this thread - #9/#10 -> Fixed 7.x-2.17 - something didn't go right:
mimeDecode.php is still in:
And simply needs to be commented out (or deleted):
- 'mimeDecode.php',
That's all.
Comment #17
star-szr@KarinG - Yes, that's what I found as well, and that's what my first patch does, the 2.x-dev branch is a bit different though. If you can test and review the patch(es) in #14 you can RTBC this issue and hopefully get us closer to a commit!
Comment #18
KarinG#14: mailmime-1417646-7.x-2.x-dev-14.patch
applied to HEAD
Comment #19
salvisFixed in the D7 and D6 -dev versions (give them up to 12h to be repackaged).
Thanks Cottser and KarinG!
Comment #20.0
(not verified) CreditAttribution: commentedadding other options