Subject: [sup-talk] Exception when refining query

From: [email-masked] (Manish Sapariya)
Date: Wed, 30 Jan 2008 19:09:12 +0530

Use case:
search all mails using F expression is to:mail at a.com.
Press . to refine the query and I added "OR cc:mail at a.com"
and it crashed

Regards,
Manish

[manish at alioth ~]$ sup
[Wed Jan 30 18:44:59 +0530 2008] using character set encoding "UTF-8"
[Wed Jan 30 18:44:59 +0530 2008] locking /home/manish/.sup/lock...
[Wed Jan 30 18:44:59 +0530 2008] crypto: detected gpg binary in /usr/bin/gpg
[Wed Jan 30 18:44:59 +0530 2008] loading index...
[Wed Jan 30 18:44:59 +0530 2008] loaded index of 8098 messages
[Wed Jan 30 18:44:59 +0530 2008] starting curses
[Wed Jan 30 19:06:44 +0530 2008] stopped cursing
[Wed Jan 30 19:06:44 +0530 2008] oh crap, an exception
[Wed Jan 30 19:06:44 +0530 2008] unlocking /home/manish/.sup/lock...
----------------------------------------------------------------
I'm very sorry. It seems that an error occurred in Sup. Please
accept my sincere apologies. If you don't mind, please send the
contents of sup-exception-log.txt and a brief report of the
circumstances to sup-talk at rubyforge dot orgs so that I might
address this problem. Thank you!

Sincerely,
William
----------------------------------------------------------------
--- ArgumentError from thread: main
wrong number of arguments (2 for 1)
/usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/search-results-mode.rb:18:in 
`spawn_from_query'
/usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/search-results-mode.rb:18:in 
`refine_search'
/usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/mode.rb:49:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/mode.rb:49:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/buffer.rb:231:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.4/bin/sup:218
/usr/bin/sup:16:in `load'
/usr/bin/sup:16
[manish at alioth ~]$

---

From: [email-masked] (Christopher Warrington)
Date: Wed, 30 Jan 2008 22:09:51 -0600

> Press . to refine the query and I added "OR cc:mail at a.com"

I submitted a patch for this a while ago. See:
http://rubyforge.org/pipermail/sup-talk/2008-January/001046.html

-- 
Christopher Warrington <chrisw at rice.edu>