From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Wed, 05 Dec 2007 10:36:44 -0800 Subject: [sup-talk] [PATCH] New hook to allow formatting of message headers In-Reply-To: <1196878151-sup-6754@south> References: <1195618839-sup-4347@lankhmar> <1196878151-sup-6754@south> Message-ID: <1196879746-sup-2883@south> Excerpts from William Morgan's message of Wed Dec 05 10:12:16 -0800 2007: > I've applied this to SVN trunk, but (as I am wont to do) I tweaked it a > bit. Tweaked it a little more to use an OrderedHash and to just modify the headers in place. This way the header ordering is not random. Here's the new hook: $ cat detailed-headers.rb %w(User-Agent X-Mailer X-Spam-Status).map do |key| if message.raw_header =~ /^#{key}: (.*)$/i headers[key] = $1 end end -- William