diff options
author | Antoine Amarilli <a3nm@a3nm.net> | 2011-11-06 02:27:53 +0100 |
---|---|---|
committer | Antoine Amarilli <a3nm@a3nm.net> | 2011-11-06 02:27:53 +0100 |
commit | 184618850db682d1f92ec09462c9278268e4ab11 (patch) | |
tree | b2905bee4a1125a5d002bcaed869fce235865013 /alot/buffers.py | |
parent | a984c12ca530737125cf7c7533f7c33209738b90 (diff) |
Search threads with multiprocessing.
Diffstat (limited to 'alot/buffers.py')
-rw-r--r-- | alot/buffers.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/alot/buffers.py b/alot/buffers.py index 3e6b1251..0051d536 100644 --- a/alot/buffers.py +++ b/alot/buffers.py @@ -19,6 +19,7 @@ Copyright (C) 2011 Patrick Totzke <patricktotzke@gmail.com> import urwid from notmuch.globals import NotmuchError +import multiprocessing import widgets import settings @@ -161,10 +162,13 @@ class SearchBuffer(Buffer): except NotmuchError: self.ui.notify('malformed query string: %s' % self.querystring, 'error') - self.tids = [] - self.threadlist = IteratorWalker(iter(self.tids), + self.tids = multiprocessing.Pipe(False) + self.tids.put(None) + + self.threadlist = IteratorWalker(self.tids, widgets.ThreadlineWidget, dbman=self.dbman) + self.listbox = urwid.ListBox(self.threadlist) #self.threadlist.set_focus(focusposition) self.body = self.listbox |