From 0ea6a649503d19f2a65901e4437647eff4b7f35d Mon Sep 17 00:00:00 2001 From: Dima Dorfman Date: Mon, 20 May 2002 07:14:41 +0000 Subject: [PATCH] Be a good web email interface and include the originator's IP address in the headers. Although this information can be gleaned from the web server logs, it should not be necessary to have access to the web server in order to know who sent in a PR. --- en/cgi/dosendpr.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/en/cgi/dosendpr.cgi b/en/cgi/dosendpr.cgi index d81c8134e2..85e8ade0eb 100755 --- a/en/cgi/dosendpr.cgi +++ b/en/cgi/dosendpr.cgi @@ -8,7 +8,7 @@ # GNU General Public License Version 2. # (http://www.gnu.ai.mit.edu/copyleft/gpl.html) # -# $FreeBSD: www/en/cgi/dosendpr.cgi,v 1.6 2001/06/13 00:04:42 dd Exp $ +# $FreeBSD$ require "html.pl"; @@ -71,6 +71,7 @@ if (!$cgi_data{'email'} || !$cgi_data{'originator'} || $pr = "To: $gnemail\n" . "From: $cgi_data{'originator'} <$cgi_data{'email'}>\n" . "Subject: $cgi_data{'synopsis'}\n" . + "X-Originating-IP: $ENV{'REMOTE_ADDR'}\n" . "X-Send-Pr-Version: www-1.0\n\n" . ">Submitter-Id:\t$cgi_data{'submitterid'}\n" . ">Originator:\t$cgi_data{'originator'}\n" .