add export_thread
add export_thread to boobmsg working show_thread
This commit is contained in:
parent
3c33a53a3b
commit
fe7b8d082c
3 changed files with 29 additions and 5 deletions
|
|
@ -255,6 +255,14 @@ class Boobmsg(ReplApplication):
|
|||
self.threads.append(thread)
|
||||
self.format(thread)
|
||||
self.flush()
|
||||
|
||||
def do_export_thread(self, arg):
|
||||
id, backend_name = self.parse_id(arg)
|
||||
cmd = self.do('get_thread', id, backends=backend_name)
|
||||
for backend, thread in cmd:
|
||||
for m in thread.iter_all_messages():
|
||||
self.format(m)
|
||||
|
||||
|
||||
def do_show(self, arg):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue