add X-Originating-IP: header to email
authorjohn <john>
Sat, 17 May 2003 16:21:14 +0000 (16:21 +0000)
committerjohn <john>
Sat, 17 May 2003 16:21:14 +0000 (16:21 +0000)
source/mircoders/servlet/ServletModuleOpenIndy.java

index eef87c9..6896876 100755 (executable)
@@ -119,7 +119,7 @@ import mircoders.storage.DatabaseTopics;
  *    open-postings to the newswire
  *
  * @author mir-coders group
- * @version $Id: ServletModuleOpenIndy.java,v 1.89 2003/05/08 02:43:42 zapata Exp $
+ * @version $Id: ServletModuleOpenIndy.java,v 1.89.2.1 2003/05/17 16:21:14 john Exp $
  *
  */
 
@@ -583,6 +583,7 @@ public class ServletModuleOpenIndy extends ServletModule
     String to = req.getParameter("mail_to");
     String from = req.getParameter("mail_from");
     String from_name = req.getParameter("mail_from_name");
+    String from_ip = req.getRemoteAddr();
     String comment = req.getParameter("mail_comment");
     String mail_language = req.getParameter("mail_language");
 
@@ -641,7 +642,7 @@ public class ServletModuleOpenIndy extends ServletModule
 
 
       // add some headers
-      content = "To: " + to + "\nReply-To: "+ from + "\n" + content;
+      content = "To: " + to + "\nReply-To: "+ from + "\nX-Originating-IP: "+ from_ip + "\n" + content;
       // put in the comment where it should go
       if (comment != null) {
         String commentTextToInsert = "\n\nAttached comment from " + from_name + ":\n" + comment;