From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.28.69 with SMTP id l5cs83707ebc; Mon, 25 Jan 2010 05:53:35 -0800 (PST) Received: by 10.224.57.77 with SMTP id b13mr787020qah.272.1264427615261; Mon, 25 Jan 2010 05:53:35 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 2si11969884qwi.47.2010.01.25.05.53.34; Mon, 25 Jan 2010 05:53:35 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id A2FEB185832D; Mon, 25 Jan 2010 08:53:34 -0500 (EST) Received: from mail-bw0-f226.google.com (mail-bw0-f226.google.com [209.85.218.226]) by rubyforge.org (Postfix) with ESMTP id A1B161858329 for ; Mon, 25 Jan 2010 08:53:31 -0500 (EST) Received: by bwz26 with SMTP id 26so2744221bwz.7 for ; Mon, 25 Jan 2010 05:53:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:content-type:subject :from:to:date:message-id:user-agent:content-transfer-encoding; bh=TEJuunDCAovsSH2QR9hVUi8lKS42CR1LoyomLFUImZY=; b=nJZloGGOWFJJWUj7O8yuMQTIrm5I/UAzYbj/Rx4L8iT1AXFWGNOtAurvu/Cmp+QsHg 4/Ev5buOnnZQcwO54modzssuN9x0UGsD+aUhyEJRPemHizl35uVI6wy9oy/tJBqsOqP0 HdMW34j5FTwxRy9dDwwVuoqU7O4ybMMLUUyVM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:content-type:subject:from:to:date:message-id:user-agent :content-transfer-encoding; b=t3nhpn252Ywix2lQPhXKVyNIZF68Txayu24Q5RkWc3U8SOeKiCjQVtldICdkLZVhdI Ej+5fwTihw5S9wLV/DU30SMPrkPwYOaDGs2vZuiUS7H7/zJ/kjWUJjj/4lslb+cxpWMm RDJVkbIeBLGdcgS6/W9N6/HHAGLNzxzq7g+Pk= Received: by 10.204.160.147 with SMTP id n19mr2682861bkx.182.1264427610579; Mon, 25 Jan 2010 05:53:30 -0800 (PST) Received: from elly (80.174.61.131.dyn.user.ono.com [80.174.61.131]) by mx.google.com with ESMTPS id 14sm2161399bwz.13.2010.01.25.05.53.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 25 Jan 2010 05:53:30 -0800 (PST) From: Israel Herraiz To: sup-devel Date: Mon, 25 Jan 2010 14:53:12 +0100 Message-Id: <1264427161-sup-6711@duck> User-Agent: Sup/git Subject: [sup-devel] Exception when composing messages 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: , MIME-Version: 1.0 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 all, I am using the next branch of Sup, and since a couple of commits ago, whenever I try to compose a message (new, forward, etc), I obtain this exception: --- RuntimeError from thread: main Invalid email term type any ./lib/sup/xapian_index.rb:573:in `mkterm' ./lib/sup/xapian_index.rb:410:in `build_xapian_query' ./lib/sup/xapian_index.rb:410:in `map' ./lib/sup/xapian_index.rb:410:in `build_xapian_query' ./lib/sup/xapian_index.rb:114:in `each_id' ./lib/sup/xapian_index.rb:124:in `each_id_by_date' ./lib/sup/xapian_index.rb:155:in `load_contacts' ./lib/sup/index.rb:236:in `send' ./lib/sup/index.rb:236:in `method_missing' ./lib/sup/buffer.rb:543:in `ask_for_contacts' ./lib/sup/util.rb:553:in `send' ./lib/sup/util.rb:553:in `method_missing' ./lib/sup/modes/compose-mode.rb:24:in `spawn_nicely' bin/sup:327 The problem seems to be between lines 410 and 573 of lib/sup/xapian_index.rb Some time ago, around line 573, there was the following line in the file: when :any then PREFIX['email'] Adding that to the current version of file does not solve the problem though. I obtain another exception telling that it cannot convert from String to Array. If I change line 410 to the following (undoing my previous change), it works again: participant_terms = opts[:participants].map { |p| mkterm(:email,:to, (Redwood::Person === p) ? p.email : p) } Notice that I have just substituted :any by :to. I have to admit that I am not really aware of what that change implies. I have tried to find the commit that changed the behavior, without success. But in any case I think this is a bug :-). Cheers, Israel _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel