Christopher Warrington | 29 Oct 2007 22:40
Favicon

Ferret Errors

I'm getting odd ferret errors, usually when I am composing messages in
nano.

I suspect that it has something to do with the fact that I am running
sup under cygwin on Windows...

Here's the exception:
--- IOError at Mon Oct 29 16:27:51 -0500 2007
IO Error occured at <except.c>:117 in xpop_context
Error occured in fs_store.c:70 - fs_exists
	checking existance of /home/chrisw/.sup/ferret/_g9c.cfs: <Permission denied>

/usr/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:700:in `initialize'
/usr/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:700:in `new'
/usr/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:700:in `ensure_writer_open'
/usr/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:429:in `delete'
/usr/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:8:in `synchrolock'
/usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:8:in `synchrolock'
/usr/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:428:in `delete'
./sup/trunk/lib/sup/index.rb:181:in `sync_message'
./sup/trunk/lib/sup/util.rb:395:in `send'
./sup/trunk/lib/sup/util.rb:395:in `method_missing'
./sup/trunk/lib/sup/poll.rb:151:in `add_messages_from'
./sup/trunk/lib/sup/imap.rb:174:in `each'
./sup/trunk/lib/sup/imap.rb:163:in `upto'
./sup/trunk/lib/sup/imap.rb:163:in `each'
./sup/trunk/lib/sup/util.rb:431:in `send'
./sup/trunk/lib/sup/util.rb:431:in `__pass'
./sup/trunk/lib/sup/util.rb:420:in `method_missing'
(Continue reading)

William Morgan | 29 Oct 2007 22:43

[ANN] Sup 0.2 released

Sup version 0.2 has been released!

  http://sup.rubyforge.org

Sup is a console-based email client for people with a lot of email.
It supports tagging, very fast full-text search, automatic contact-
list management, and more. If you're the type of person who treats
email as an extension of your long-term memory, Sup is for you.

Sup makes it easy to:
- Handle massive amounts of email.

- Mix email from different sources: mbox files (even across different
  machines), Maildir directories, IMAP folders, POP accounts, and
  GMail accounts.

- Instantaneously search over your entire email collection. Search
  over body text, or use a query language to combine search
  predicates in any way.

- Handle multiple accounts. Replying to email sent to a particular
  account will use the correct SMTP server, signature, and from
  address.

- Add custom code to handle certain types of messages or to handle
  certain types of text within messages.

- Organize email with user-defined labels, automatically track
  recent contacts, and much more!

(Continue reading)

Brendan O'Connor | 30 Oct 2007 02:55
Picon
Gravatar

tiny fix for sup-faked message id's crashing sup-sync

Hello all --

After a tiny bugfix off SVN 650, I'm importing gmail imap!  Very exciting!

I hate it when I add a puts or logging statement and it messes up
ruby's returning conventions, returning nil that clobbers something
elsewhere.  Glad to see it happens to other people too :)

Index: lib/sup/message.rb
===================================================================
--- lib/sup/message.rb  (revision 650)
+++ lib/sup/message.rb  (working copy)
 <at>  <at>  -62,8 +62,8  <at>  <at> 
       if header["message-id"]
         sanitize_message_id header["message-id"]
       else
+        Redwood::log "faking message-id for message from # <at> from: # <at> id"
         "sup-faked-" + Digest::MD5.hexdigest(raw_header)
-        Redwood::log "faking message-id for message from # <at> from: # <at> id"
       end

     date = header["date"]

................... for reference the error was later, after the
Message's id was nil:

$ sup-sync

...

(Continue reading)

Alexander Panek | 30 Oct 2007 09:18

Re: Running SVN version

Christopher Warrington wrote:
> [...]
> The command I use is:
> (from inside trunk/)
> ruby -I lib -w bin/sup

Way; that's great, too! This way one can test the SVN versions without 
having to overwrite the stables one.

Thank you.

--
Alexander Panek <alexander.panek <at> brainsware.org>
Rick Tessner | 30 Oct 2007 11:24
Picon
Gravatar

[PATCH] svn sup "can't convert nil into String" (index.rb)

Hi,

I'm using svn sup and just recently started getting the following error
when getting new email without a proper message_id (patch is attached):

The problem was: 'can't convert nil into String' (error type TypeError)
A backtrace follows: /home/rick/sup/lib/sup/index.rb:323:in
`initialize': can't convert nil into String (TypeError)
        from /home/rick/sup/lib/sup/index.rb:323:in `new'
        from /home/rick/sup/lib/sup/index.rb:323:in `load_entry_for_id'
        from /home/rick/sup/lib/sup/util.rb:395:in `send'
        from /home/rick/sup/lib/sup/util.rb:395:in `method_missing'
        from /home/rick/sup/lib/sup/poll.rb:156:in `add_messages_from'
        from /home/rick/sup/lib/sup/imap.rb:178:in `each'
        from /home/rick/sup/lib/sup/imap.rb:163:in `upto'
        from /home/rick/sup/lib/sup/imap.rb:163:in `each'
         ... 28 levels...
        from /home/rick/sup/lib/sup.rb:68:in `reporting_thread'
        from /home/rick/sup/lib/sup/modes/thread-index-mode.rb:372:in
`load_n_threads_background'
        from /home/rick/sup/lib/sup/modes/thread-index-mode.rb:422:in
`load_threads'
        from /home/rick/sup/bin/sup:188

The problem is that the parse_header method is assigning  <at> id the result
of an "if" statement.  However, the "else" part of the "if" statement is
always returning the result of Redwood::log (nil) rather than the
"sup-faked" message_id.

--

-- 
(Continue reading)

Alexander Panek | 30 Oct 2007 12:13

Crash on setting labels in thread view

This happens in svn version when I hit 'l' in thread view and apply
with hitting return.

The problem was: 'undefined local variable or method `m' for #<Redwood::ThreadViewMode:0xb6ae43ac>'
(error type NameError)
A backtrace follows:
./lib/sup/modes/thread-view-mode.rb:148:in `edit_labels': undefined local variable or method `m'
for #<Redwood::ThreadViewMode:0xb6ae43ac> (NameError)
        from ./lib/sup/mode.rb:52:in `send'
        from ./lib/sup/mode.rb:52:in `handle_input'
        from ./lib/sup/buffer.rb:193:in `handle_input'
        from bin/sup:201

--

-- 
Alexander Panek <alexander.panek <at> brainsware.org>
Marcus Williams | 30 Oct 2007 16:55
Picon
Favicon

Changing sources with same URI

I've got two (actually more than two, but that doesnt matter) IMAP
sources with the same URI, with different logins. The only problem is
I forgot to add a label to one of them. What I want to do is add that
source back in with the label added.

I thought all I'd need to do was add the label to the sources.yaml and
then run sup-sync --changed <source>, or maybe --all but neither of
them pick the right source as the source I want is the second of the
two sources in the yaml file (and they both have the same uri). I
probably want to make both of these sources "unusual" as well, can I
do that with sup-sync?

Is there a way to differentiate between the two on the command line?
If not, should there be?

Better still, anyone any ideas how I can do what I want?

Thanks!

Marcus
William Morgan | 30 Oct 2007 17:03

Re: Crash on setting labels in thread view

Excerpts from Alexander Panek's message of Tue Oct 30 04:13:29 -0700 2007:
> This happens in svn version when I hit 'l' in thread view and apply
> with hitting return.

I could have sworn I tested this before committing it. Looks like we'll
have to have a 0.2.1 soon. Fixed in SVN.

--

-- 
William <wmorgan-sup <at> masanjin.net>
William Morgan | 30 Oct 2007 20:18

Re: tiny patch for typo

Excerpts from Eyal Oren's message of Thu Oct 11 08:59:41 -0700 2007:
> Attached a tiny patch for a typo in bin/sup's info message on caught
> errors.

This was actually intentional. :)

--

-- 
William <wmorgan-sup <at> masanjin.net>
William Morgan | 30 Oct 2007 21:35

Re: Initial error

Excerpts from Timothy Johnson's message of Fri Oct 12 10:48:08 -0700 2007:
> I had an error when syncing my first IMAP inbox
> /opt/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/source.rb:80:in  
> `done?': undefined method `>=' for nil:NilClass (NoMethodError)
> 
> so I just added an "unless end_offset.nil?" clause at the end  
> thereof, and it worked again.
> 
> Is this a common problem? probably not thus far, but was curious what  
> would cause it.

Fixed in 0.2.

--

-- 
William <wmorgan-sup <at> masanjin.net>

Gmane