I believe that the standard Received: header[1] should be used, rather than some invented X-* headers.

[1] http://tools.ietf.org/html/rfc2822#section-3.6.7

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rss2email depends on:
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-feedparser             4.1-13     Universal Feed Parser for Python
ii  python-support                1.0.3      automated rebuilding support for P

rss2email recommends no packages.

rss2email suggests no packages.

-- no debconf information

--
Jakub Wilk
diff --git a/rss2email.py b/rss2email.py
--- a/rss2email.py
+++ b/rss2email.py
@@ -603,6 +603,8 @@
 					title = title.replace("\n", " ").strip()
 					
 					datetime = time.gmtime()
+					datetime822 = time.strftime("%a, %d %b %Y %H:%M:%S -0000", datetime)
+					receivedhdr = 'from <%s> by %s with HTTP (rss2email %s) for <%s>; %s' % (f.url, socket.getfqdn(), __version__, f.to or default_to, datetime822)
 
 					if DATE_HEADER:
 						for datetype in DATE_HEADER_ORDER:
@@ -619,7 +621,7 @@
 					subjecthdr = title
 					datehdr = time.strftime("%a, %d %b %Y %H:%M:%S -0000", datetime)
 					useragenthdr = "rss2email"
-					extraheaders = {'Date': datehdr, 'User-Agent': useragenthdr}
+					extraheaders = {'Date': datehdr, 'User-Agent': useragenthdr, 'Received': receivedhdr}
 					if BONUS_HEADER != '':
 						for hdr in BONUS_HEADER.strip().splitlines():
 							pos = hdr.strip().find(':')

Reply via email to