head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.4 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.2 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q1:1.1.0.2 pkgsrc-2012Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2012.04.16.17.00.28; author ryoon; state dead; branches; next 1.1; 1.1 date 2012.01.31.14.52.20; author taca; state Exp; branches; next ; desc @@ 1.2 log @Update to 6.5 * patches/patch-bin_cmew is merged to upstream. Changelog: Mew 6.5 stable release (2012/04/16) Mew 6.5rc2 (2012/04/05) * Checking libwrap for stunnel. * Supporting stunnel 4.53. TAKANO Yuji * Disabling libwrap. ARAI Shun-ichi Mew 6.5rc1 (2012/03/28) * Workaround of cmew for Ruby 1.9. Tatsuya Kinoshita * mew-make-temp-name allows non-ASCII characters Yoshinari Nomura Mew 6.4.50 (2012/03/07) * Supporting stunnel 4.51. Seiji Ariga * Hilighting HTML produced by w3m. * Fixing regex of mew-regex-ignore-scan-body-list. Tatsuya Kinoshita * Fixing cmew bugs. @ text @$NetBSD: patch-bin_cmew,v 1.1 2012/01/31 14:52:20 taca Exp $ Fix case significant problem of keys. --- bin/cmew.orig 2011-10-19 08:46:38.000000000 +0000 +++ bin/cmew @@@@ -29,7 +29,8 @@@@ def mail_header(path) next if /^From / =~ l break if /^$/ =~ l if /^\s+/ !~ l - (name, value) = l.split(/:\s+/, 2) + (name, value) = l.split(/:\s*/, 2) + value = '' if value.nil? @@header[name.downcase] = value else value << $' @@@@ -103,7 +104,7 @@@@ def check_id(id) end def get_id(msg) - return check_id(msg['Message-Id']) + return check_id(msg['message-id']) end def get_parid(msg) @@@@ -111,11 +112,11 @@@@ def get_parid(msg) # (2) The References contains one or more IDs, use the last one. # (3) The In-Reply-To contains two or more IDs, use the first one. irt = [] - irt = msg['In-Reply-To'].split(/[ \t\n]+/) if msg['In-Reply-To'] + irt = msg['in-reply-to'].split(/[ \t\n]+/) if msg['in-reply-to'] irt.delete_if {|id| !check_id(id) } return irt[0] if irt.size == 1 ref = [] - ref = msg['References'].split(/[ \t\n]+/) if msg['References'] + ref = msg['references'].split(/[ \t\n]+/) if msg['references'] ref.delete_if {|id| !check_id(id) } return ref.pop if ref.size > 0 return irt[0] if irt.size > 1 @@@@ -124,7 +125,7 @@@@ end def get_date(msg) begin - date = Time.rfc2822(msg['Date']).getutc().strftime('%Y%m%d%H%M%S') + date = Time.rfc2822(msg['date']).getutc().strftime('%Y%m%d%H%M%S') rescue date = '19700101000000' end @ 1.1 log @Add a patch to fix cmew's case significant problem of keys. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @