wmorgan / heliotrope

A personal, threaded, search-centric email server.
124 stars 17 forks source link

Uncaught exception while importing #8

Closed foobacca closed 13 years ago

foobacca commented 13 years ago

I got about half way through importing my ~25000 messages from gmail and then get:

/home/mish/dev/sup/heliotrope/lib/heliotrope/index.rb:484:in `build_thread_structure_from': undefined method `-@' for nil:NilClass (NoMethodError)
    from /home/mish/dev/sup/heliotrope/lib/heliotrope/index.rb:470:in `block in build_thread_structure_from'
    from /usr/lib/ruby/1.9.1/set.rb:221:in `block in each'
    from /usr/lib/ruby/1.9.1/set.rb:221:in `each_key'
    from /usr/lib/ruby/1.9.1/set.rb:221:in `each'
    from /home/mish/dev/sup/heliotrope/lib/heliotrope/index.rb:470:in `map'
    from /home/mish/dev/sup/heliotrope/lib/heliotrope/index.rb:470:in `build_thread_structure_from'
    from /home/mish/dev/sup/heliotrope/lib/heliotrope/index.rb:427:in `thread_message!'
    from /home/mish/dev/sup/heliotrope/lib/heliotrope/index.rb:89:in `add_message'
    from bin/heliotrope-add:147:in `<main>'

Could there be an option added to spit out the message to a file? Or the first message read in after restart. Otherwise it is a bit hard to work out which message it is ...

rakoo commented 13 years ago

I also had a problem while importing my mails :

/home/rakoo/dev/heliotrope/lib/heliotrope/message.rb:155:in `digest': can't convert nil into String (TypeError)
    from /home/rakoo/dev/heliotrope/lib/heliotrope/message.rb:155:in `hexdigest'
    from /home/rakoo/dev/heliotrope/lib/heliotrope/message.rb:155:in `munge_msgid'
    from /home/rakoo/dev/heliotrope/lib/heliotrope/message.rb:20:in `parse!'
    from bin/heliotrope-add:142:in `<main>'

Same conclusion : is there avy way to see the message being processed ?

wmorgan commented 13 years ago

I'll see if I can add something. Thanks for bearing with me, guys!

wmorgan commented 13 years ago

I think I've fixed this (and added the message saving on error). Can you try with the latest master please?