changeset 89:00d203e72f8f draft

Put original received headers aside to reduce hop count
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 19 Dec 2013 12:09:58 +0900
parents c4ea79816b2d
children 48afc00ef5df
files after5.rb
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/after5.rb	Thu Dec 19 11:35:24 2013 +0900
+++ b/after5.rb	Thu Dec 19 12:09:58 2013 +0900
@@ -4,7 +4,7 @@
 # Associative Scheduling Table - after5
 # (C)2003, 2004, 2006, 2008, 2012, 2013 by HIROSE Yuuji [yuuji<at>gentei.org]
 # $Id: after5.rb,v 1.20 2012/12/03 15:54:20 yuuji Exp $
-# Last modified Thu Dec 19 11:34:45 2013 on firestorm
+# Last modified Thu Dec 19 12:09:19 2013 on firestorm
 # See http://www.gentei.org/~yuuji/software/after5/
 # このスクリプトはEUCで保存してください。
 $hgid = <<_HGID_.split[1..-2].join(" ")
@@ -2775,6 +2775,9 @@
             comment = @sc.nickname(comment) || "whoareyou"
           end
           hold = ["From: "+rewritefrom(email, comment, fromhack)+"\n"]
+        elsif /^received:/i =~ line
+          # Put original received headers aside to reduce hop count
+          line = "X-pre"+line
         end
         if /^$/ =~ line.toeuc
           hold << line

yatex.org