[mew-dist 28119] Re: cmew.rb and smew.rb
Tomoyuki Murakami
tomoyuki at example.com
2008年 2月 22日 (金) 22:29:16 JST
##...サーバが落ちてるってアナウンスしてたっけ
>>> On Fri, 22 Feb 2008 22:01:22 +0900 (JST),
tomoyuki> Time.rfc2822... が動いていないようなのでcmewに
tomoyuki>
tomoyuki> require 'time'
tomoyuki>
tomoyuki> を加えると、所望の動きになりました。普通はどこかで暗黙裡にrequire
というのはちょっと嘘で、自分のテストスクリプトが動いただけでした
cmewに対しては以下のパッチが必要でした。
--- cmew.orig 2008-02-19 19:20:38.000000000 +0900
+++ cmew 2008-02-22 22:23:57.000000000 +0900
@@ -12,6 +12,7 @@
require 'find'
require 'mailread'
+require 'time'
################################################################
##
@@ -64,7 +65,7 @@
def get_date(msg)
begin
- date = Time.rfc2822(m['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
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: 無し
型: application/pgp-signature
サイズ: 305 バイト
説明: 無し
URL: <http://www.mew.org/pipermail/mew-dist/attachments/20080222/dfe341b9/attachment.bin>
Mew-dist メーリングリストの案内