[mew-dist 27950] Re: "V"

KOIE Hidetaka ( 鯉江英隆 ) hide at example.com
2007年 12月 11日 (火) 18:16:33 JST


in-reply-to:に余計なフレーズが含まれている場合(obs-in-reply-to)への対処と
check_id()が二重に呼ばれているのを消すパッチです。

Index: cmew.rb
===================================================================
RCS file: /cvsmew/mew/bin/cmew.rb,v
retrieving revision 1.4
diff -u -p -r1.4 cmew.rb
--- cmew.rb	11 Dec 2007 08:15:31 -0000	1.4
+++ cmew.rb	11 Dec 2007 09:10:20 -0000
@@ -50,7 +50,9 @@ def get_parid(msg)
   ref = []
   ref = msg['References'].split(/\n/) if msg['References']
   return check_id(ref.pop) if ref.size != 0;
-  return check_id(irt[0]) if irt.size != 0;
+  irt.each {|id|
+    return id if check_id(id)
+  }
   return nil
 end
 
@@ -85,8 +87,8 @@ def register(db, maildir, ignore_regex)
     end
     if FileTest.file?(fpath) and fpath =~ /\/[0-9]+(\.mew)?$/
       m = Mail.new(fpath)
-      id = check_id(get_id(m))
-      parid = check_id(get_parid(m))
+      id = get_id(m)
+      parid = get_parid(m)
       date = get_date(m)
       path = get_path(fpath)
       stmt.execute('id' => id, 'path' => path, 'parid' => parid, 'date' => date)

--
KOIE Hidetaka <hide at example.com>



Mew-dist メーリングリストの案内