~llndqvst/notmuch-mvrs

1e8fe2d1c7eeee57034940f8a6a5fc9af190bf07 — Lukas Lindqvist 8 months ago 99626f7
Add support for Maildir cur, tmp, and new
1 files changed, 2 insertions(+), 1 deletions(-)

M src/movers/mbsync.rs
M src/movers/mbsync.rs => src/movers/mbsync.rs +2 -1
@@ 36,7 36,8 @@ impl Mbsync {

    fn get_rename_pair(&self, from: PathBuf) -> (PathBuf, PathBuf) {
        let new_name: PathBuf = Mbsync::strip_uid(from.file_name().unwrap());
        (from, self.target_path.join(new_name))
        let maildir_parent: PathBuf = from.parent().unwrap().to_path_buf();
        (from, self.target_path.join(maildir_parent).join(new_name))
    }
}