Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Request #10604 Put an option to specify Content-Location in the header
Submitted: 2007-04-04 04:49 UTC
From: perryv Assigned: cipri
Status: Closed Package: Mail_Mime (version 1.4.0a1)
PHP Version: 4.3.9 OS: CentOS
Roadmaps: 1.4.0    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 5 + 40 = ?

 
 [2007-04-04 04:49 UTC] perryv (Perry Valdez)
Description: ------------ In the Mail_mimePart() function (in Mail/mimePart.php), there is a switch statement that goes like this: switch ($key) { case 'content_type': $headers['Content-Type'] = $value . (isset($charset) ? '; charset="' . $charset . '"' : ''); break; case 'encoding': //... break; case 'cid': //... break; case 'disposition': //... break; case 'dfilename': //... break; case 'description': //... break; case 'charset': //... break; } May I request to put another header option called "location" that implements Content-Location? That is, put this in the switch statement: case 'location': $headers['Content-Location'] = $value; break; Content-Location is useful for embedding hyperlinked images inside HTML messages.

Comments

 [2007-04-28 12:32 UTC] cipri (Cipriano Groenendal)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2007-05-05 15:04 UTC] cipri (Cipriano Groenendal)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Mail_Mime Fixed in 1.4.0