Subject: librmail-ruby1.8: does not decode encoded headers (example included)

From: Jon Dowland <[email-masked]>
Date: Tue, 1 Nov 2011 16:37:38 +0000

Package: librmail-ruby1.8
Version: 0.17-1.1
Severity: normal

rmail does not appear to detect nor decode encoded headers. Example:

s = "Subject: =?UTF-8?Q?@maafer=5Farteaga:_Simplemente_ya_no_estare_ah=C3=AD?="
m = RMail::Parser.read(s)
puts m.header['Subject']

results in

=?UTF-8?Q?@maafer=5Farteaga:_Simplemente_ya_no_estare_ah=C3=AD?=

-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (700, 'stable'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash