From: Israel Herraiz <isra@herraiz.org>
To: sup-devel <sup-devel@rubyforge.org>
Subject: [sup-devel] Exception when composing messages
Date: Mon, 25 Jan 2010 14:53:12 +0100 [thread overview]
Message-ID: <1264427161-sup-6711@duck> (raw)
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
next reply other threads:[~2010-01-25 13:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-25 13:53 Israel Herraiz [this message]
2010-01-25 13:57 ` Israel Herraiz
2010-01-25 21:28 ` William Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1264427161-sup-6711@duck \
--to=isra@herraiz.org \
--cc=sup-devel@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox