Closed (fixed)
Project:
Mime Mail
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2012 at 16:04 UTC
Updated:
14 Nov 2012 at 06:51 UTC
Jump to comment: Most recent file
Thanks for maintaining mimemail. It made life much easier sending email with attachments.
In one case, mimemail was not working for me. My apache error log showed: "exim abandoned: unknown, malformed, or incomplete option -f" (exim is the mail daemon on this server).
In my code I am not setting a Return-path header in the email I am sending. Despite this, I found that mimemail is trying to pass the -f flag to sendmail, and mail was not coming through.
Further investigation showed that mimemail's $return_path variable was "" (empty string), so that's why sendmail was reporting invalid parameters.
I fixed by changing if test from isset($return_path) to !empty($return_path). Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | mimemail-1813348-1-d7.patch | 570 bytes | sgabe |
| #1 | mimemail-1813348-1-d6.patch | 646 bytes | sgabe |
| mimemail-returnpath.patch | 618 bytes | jdhildeb |
Comments
Comment #1
sgabe commentedFirst we need to check if the Return-Path is set and then if it is empty. The attached patches have been committed to both branches.
Comment #2
babbage commentedExcellent. Will be good to see a stable release with these fixes in it, but until then I've moved to -dev, albeit somewhat reluctantly.