wmorgan / heliotrope

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

heliotrope-add doesn't work while heliotrope-server is running #26

Closed foobacca closed 13 years ago

foobacca commented 13 years ago

If I try running heliotrope-add while heliotrope-server is running I get an error:

IMAP password (displayed!): /var/lib/gems/1.9.1/gems/leveldb-ruby-0.7/lib/leveldb.rb:11:in `make': IO error: lock      /home/hamish/.heliotrope/store/LOCK: Resource temporarily unavailable (LevelDB::Error)
        from /var/lib/gems/1.9.1/gems/leveldb-ruby-0.7/lib/leveldb.rb:11:in `new'
        from /home/hamish/dev/heliotrope/lib/heliotrope/index.rb:45:in `initialize'
        from bin/heliotrope-add:113:in `new'
        from bin/heliotrope-add:113:in `<main>'

Is this expected to work? If not how do I add new messages to the message store while heliotrope-server is running?

wmorgan commented 13 years ago

Reformatted excerpts from Hamish Downer's message of 2011-10-09:

Is this expected to work? If not how do I add new messages to the message store while heliotrope-server is running?

There are two ways to run heliotrope-add. If you use -d, it reads and writes directly to disk. This is much faster, but cannot corun with heliotrope-server.

If you don't use -d, it talks to heliotrope-server. This is slower but is the standard use case for new mail.

I think I should probably split the former bit of functionality into a

new command called heliotrope-import.

William wmorgan-github@masanjin.net

foobacca commented 13 years ago

OK, I've updated the README to reflect the current state of affairs and requested a pull from you, so I'll close this issue.