Refactor imag-mail to new store iterator interface
This commit is contained in:
parent
519b6f7ef2
commit
7aca84dd5e
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,7 @@ extern crate libimagutil;
|
|||
use std::io::Write;
|
||||
|
||||
use libimagerror::trace::{MapErrTrace, trace_error};
|
||||
use libimagerror::iter::TraceIterator;
|
||||
use libimagerror::exit::ExitUnwrap;
|
||||
use libimagerror::io::ToExitCode;
|
||||
use libimagmail::mail::Mail;
|
||||
|
@ -143,6 +144,7 @@ fn list(rt: &Runtime) {
|
|||
let _ = rt.store()
|
||||
.entries()
|
||||
.map_err_trace_exit_unwrap(1)
|
||||
.trace_unwrap_exit(1)
|
||||
.filter(|id| id.is_in_collection(&["mail"]))
|
||||
.filter_map(|id| {
|
||||
rt.store()
|
||||
|
|
Loading…
Reference in a new issue