From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Wed, 24 Jun 2009 10:33:46 -0700 Subject: [sup-talk] [PATCH 0/18] Xapian-based index In-Reply-To: <1245854803-sup-4481@entry> References: <1245531017-9907-1-git-send-email-rlane@club.cc.cmu.edu> <1245854803-sup-4481@entry> Message-ID: <1245864733-sup-1216@entry> Reformatted excerpts from William Morgan's message of 2009-06-24: > sup-sync crashes for me fairly systematically with this error: > > ./lib/sup/xapian_index.rb:404:in `sortable_serialise': Expected argument 0 of > type double, but got Fixnum 51767811298 (TypeError) This turns out to be due to dates being far in the future (e.g. on spam messages). I'm using the attached patch, which is pretty much a hack, to force them to be between 1969 and 2038. Better solutions welcome. (I haven't committed this.) -- William -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-bugfix-dates-need-to-be-truncated-for-xapian-to-ind.patch Type: application/octet-stream Size: 2484 bytes Desc: not available URL: