From b56c526025f0123422a2d2f23a8adbf7831f6d45 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 23 Oct 2003 00:10:29 +0000
Subject: [PATCH] Converts header field names to lower case.

---
 exec/load/mailproc_util.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/load/mailproc_util.js b/exec/load/mailproc_util.js
index 1592874ed3..48e6e9345b 100644
--- a/exec/load/mailproc_util.js
+++ b/exec/load/mailproc_util.js
@@ -17,7 +17,7 @@ function parse_msg_header(msgtxt)
 			break;
 		var match = msgtxt[i].match(/(\S+)\s*:\s*(.*)/);
 		if(match)
-			hdr[last_field=match[1]]=match[2];
+			hdr[last_field=match[1].toLowerCase()]=match[2];
 		else if(last_field)		// Folded header field
 			hdr[last_field]+=msgtxt[i];
 	}	
-- 
GitLab