From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.86.59.13 with SMTP id h13cs342938fga; Sun, 28 Feb 2010 13:59:40 -0800 (PST) Received: by 10.224.116.212 with SMTP id n20mr1789733qaq.376.1267394377074; Sun, 28 Feb 2010 13:59:37 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 6si7723642qwk.42.2010.02.28.13.59.36; Sun, 28 Feb 2010 13:59:36 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 4E9FB1588078; Sun, 28 Feb 2010 16:59:36 -0500 (EST) Received: from zucker.schokokeks.org (zucker.schokokeks.org [78.46.69.5]) by rubyforge.org (Postfix) with ESMTP id B97F118582C2 for ; Sun, 28 Feb 2010 16:59:21 -0500 (EST) Received: from localhost (dslb-088-066-156-082.pools.arcor-ip.net [::ffff:88.66.156.82]) (AUTH: PLAIN michael@content-space.de, TLS: TLSv1/SSLv3, 128bits, AES128-SHA) by zucker.schokokeks.org with esmtp; Sun, 28 Feb 2010 22:59:20 +0100 id 0000000000018008.000000004B8AE738.00004980 From: Michael Hamann To: sup-devel In-reply-to: <1267389645-sup-7736@zyrg.net> References: <1267389645-sup-7736@zyrg.net> Date: Sun, 28 Feb 2010 22:58:25 +0100 Message-Id: <1267393803-sup-784@mithink> User-Agent: Sup/git Mime-Version: 1.0 X-Mime-Autoconverted: from 8bit to 7bit by courier 0.63 Subject: Re: [sup-devel] now in next: fix-utf8, ferret-removal, and remote-source-deprecation X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org Hi, thanks for your work, it seems I am able to send messages with UTF-8 subjects, recipients, ... again, but after pulling from next I first had to do the following fixes in order to get sup working again (I don't know if there are more, these are just the two ones that made sup unusable): diff --git a/lib/sup/index.rb b/lib/sup/index.rb index 548daf0..79bd1af 100644 --- a/lib/sup/index.rb +++ b/lib/sup/index.rb @@ -216,10 +216,10 @@ EOS ## Given an array of email addresses, return an array of Person objects that ## have sent mail to or received mail from any of the given addresses. - def load_contacts email_addresses, h={} + def load_contacts email_addresses, opts={} contacts = Set.new num = opts[:num] || 20 - each_id_by_date :participants => emails do |id,b| + each_id_by_date :participants => email_addresses do |id,b| break if contacts.size >= num m = b.call ([m.from]+m.to+m.cc+m.bcc).compact.each { |p| contacts << [p.name, p.email] } @@ -739,14 +739,14 @@ class Xapian::Document def index_text text, prefix, weight=1 term_generator = Xapian::TermGenerator.new - term_generator.stemmer = Xapian::Stem.new(Redwood::XapianIndex::STEM_LANGUAGE) + term_generator.stemmer = Xapian::Stem.new(Redwood::Index::STEM_LANGUAGE) term_generator.document = self term_generator.index_text text, weight, prefix end alias old_add_term add_term def add_term term - if term.length <= Redwood::XapianIndex::MAX_TERM_LENGTH + if term.length <= Redwood::Index::MAX_TERM_LENGTH old_add_term term, 0 else warn "dropping excessively long term #{term}" Greetings Michael _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel