[imp] Fwd: imp Patch: Received-by-HTTP Header optional

Jan Schneider jan at horde.org
Fri Jul 25 05:28:42 PDT 2003


Short summary: This patch makes the last (or first) Received: header (from
the browser to the IMP host) configurable.

----- Weitergeleitete Nachricht von bkw at weisshuhn.de -----
    Datum: Fri, 25 Jul 2003 14:24:18 +0200
    Von: Bernhard Weisshuhn <bkw at weisshuhn.de>
Antwort an: Bernhard Weisshuhn <bkw at weisshuhn.de>
 Betreff: imp Patch: Received-by-HTTP Header optional
      An: jan at horde.org

Hallo,

bugzilla mag mir offenbar kein Paßwort schicken, deshalb leite ich Dir
mal einen trivialen Patch weiter, von dem ich glaube, daß er auch
anderen nützt.

Das Problem: Der von imp generierte Received: Header ruiniert jedes
SpamAssassin-Ranking, wenn man Dialup-RBLs benutzt. Ich erachte den Header
ohnehin als Luxus, weil die IP-Adresse ja auch im X-Originating-IP:
auftaucht. Deswegen finde ich, dieses Received: sollte per config-option
abschaltbar sein. Und genau das macht der Patch. Er führt ein neues Flag
'create_http_received' ein.

Patch gegen aktuelles cvs.

Viele Grüße und Danke für Euere ganze Arbeit an horde,
Bernhard


----- Ende der weitergeleiteten Nachricht -----


Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
-------------- next part --------------
Index: compose.php
===================================================================
RCS file: /repository/imp/compose.php,v
retrieving revision 2.672
diff -u --unified=3 -r2.672 compose.php
--- compose.php	25 Jul 2003 01:34:18 -0000	2.672
+++ compose.php	25 Jul 2003 12:18:46 -0000
@@ -649,7 +649,9 @@
     $msg_headers = &new IMP_Headers();
 
     /* Add a Received header for the hop from browser to server. */
-    $msg_headers->addReceivedHeader();
+    if ($conf['compose']['create_http_received']) {
+        $msg_headers->addReceivedHeader();
+    }
     $msg_headers->addMessageIdHeader();
 
     /* Add the X-Priority header, if requested. This appears here since
Index: config/conf.xml
===================================================================
RCS file: /repository/imp/config/conf.xml,v
retrieving revision 1.21
diff -u --unified=3 -r1.21 conf.xml
--- config/conf.xml	2 Jul 2003 23:06:45 -0000	1.21
+++ config/conf.xml	25 Jul 2003 12:18:46 -0000
@@ -118,6 +118,8 @@
    <configboolean name="add_maildomain_to_unexpandable" desc="Should we add the default domain to addresses that couldn't be expanded automatically?">false</configboolean>
    <configstring name="attach_size_limit" desc="What is the maximum total size of attachments per message (in bytes)? Set this value to 0 for no limit. [Note, the maximum allowable size of any individual attachment is set via the PHP 'upload_max_filesize' parameter - see imp/docs/INSTALL]">0</configstring>
    <configstring name="attach_count_limit" desc="What is the maximum total number of attachments per message? Set this value to 0 for no limit.">0</configstring>
+   <configboolean name="create_http_received" desc="Create a Received: header for the http-client? This can cause Problems with Spamfilters.">true</configboolean>
+
  </configsection>
  
  <configsection name="tos">


More information about the imp mailing list