Closed (fixed)
Project:
Mime Mail
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
10 Sep 2010 at 15:19 UTC
Updated:
17 Mar 2011 at 20:31 UTC
Jump to comment: Most recent file
Hey all -
We're using the pclzip module along with a custom module to send a zip of files attached to nodes, using Views bulk operations. However, the temporary zip files created by pclzip aren't stored in a web-accessible location, so the url checking in _mimemail_file filtered them out so they weren't sent along.
This patch adds a check before the URL creation steps to see if the file already exists on the server with the path that's passed in as-is.
Let me know if you have any questions or issues with the patch -- I'd love to see this included in the next version so I don't have to worry about patching it when we do updates :)
Thanks,
Isaac
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | mimemail-907716-8.patch | 1.94 KB | jantoine |
| #2 | mimemail.907716_03.patch | 2.16 KB | sgabe |
| #1 | mimemail.907716_02.patch | 1.97 KB | sgabe |
| mimemail.serverfiles.patch | 821 bytes | isaac.niebeling |
Comments
Comment #1
sgabe commentedPatch attached against current development snapshot.
Comment #2
sgabe commentedI think we should use is_file() instead of file_exists().
Comment #3
sgabe commented#760080: Attachments specified with absolute local paths are not added is marked as a duplicate of this.
Comment #4
funkytraffic commentedIt would be great to choose in the GUI, if the files get attached or not.
Comment #5
sgabe commentedDo you mean an option to disable attachments?
Comment #6
funkytraffic commentedSometimes it is better if inserted images stay on the website to keep the mails small. Sometimes it is better to attach them inside the mail.
This should be an option of Mime Mail independent of relative or absolute pathes.
By the way: The issue is for me related to the question of the insert module, which creates absolute pathes:
http://drupal.org/node/880016
Comment #7
isaac.niebeling commentedThat's a whole different issue, though, and should be started as a feature request.
Comment #8
jantoine commentedThe patch from #2 works as expected. I was able to attach a file from the servers /tmp directory. I did have a bit of trouble applying the patch via 'git apply', so I have attached a patch that has been created via 'git diff'.
Cheers,
Antoine
Comment #9
sgabe commentedCommitted to 6.x-1.x and it was already available in 7.x, thanks!