mirror of https://git.meli.delivery/meli/meli
mail/view/envelope: Expand save-to paths asap
Paths entered via command were not expanded as soon as the text was converted into a PathBuf, but when the save-to-file function was called. This resulted in tilde expansion not happening until then, which because of buggy behavior the previous commit fixed (expanding the tilde in the middle of a path and pushing it to an existing path overwrites its value, because expanding the tilde usually results in an absolute path), resulted in the correct behavior. The invalid path was still visible on the success message. Instead, expand the path right away and then do modifications like setting filename etc. Fixes: #431 Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>pull/432/head
parent
39e903b1d3
commit
608301dc3d
Loading…
Reference in New Issue