Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290004 - Please add mail() header patch to PHP
Summary: Please add mail() header patch to PHP
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 406093 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-21 12:30 UTC by Michal Margula
Modified: 2012-02-28 13:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Margula 2009-10-21 12:30:48 UTC
There is a little patch at http://www.lancs.ac.uk/~steveb/patches/php-mail-header-patch/ . It could be added safely to PHP patchset. Purpose of this patch is to add simple header to every mail sent using mail() function. It looks like:

X-PHP-Script: <servername><php-self> for <remote-addr>
X-PHP-Script: www.example.com/~user/testapp/send-mail.php for 10.0.0.1

It can help A LOT when somebody is spamming using your server or using scripts of some unsuspecting Individuhals. It applies properly against 5.12.11 and works just fine on x86 platform.

Thanks!

Reproducible: Always

Steps to Reproduce:
Comment 1 Matti Bickel (RETIRED) gentoo-dev 2010-04-05 22:18:21 UTC
Thanks for your interest in gentoos php! I've considered the positive impact of your idea against our ground rule of staying as close to upstream as possible and decided not to include the patch.

We're actively aiming to REDUCE the size of our patchset, not increase it. So maybe you can open a feature request at bugs.php.net and see if upstream is willing to include it.
Comment 2 Ole Markus With (RETIRED) gentoo-dev 2012-02-28 13:36:39 UTC
*** Bug 406093 has been marked as a duplicate of this bug. ***