mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-05 09:05:13 +00:00
fix seen flag when moving a msg
This commit is contained in:
parent
5d352ae094
commit
44fbaaa1d6
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- \Seen flag when moving a message
|
||||
|
||||
## [0.3.2] - 2021-05-08
|
||||
|
||||
### Added
|
||||
|
|
|
@ -569,7 +569,7 @@ pub fn msg_matches(app: &App) -> Result<bool> {
|
|||
let msg = Msg::from(imap_conn.read_msg(&app.mbox, &uid)?);
|
||||
let mut flags = msg.flags.deref().to_vec();
|
||||
flags.push(Flag::Seen);
|
||||
imap_conn.append_msg(target, &msg.raw, msg.flags.deref())?;
|
||||
imap_conn.append_msg(target, &msg.raw, &flags)?;
|
||||
imap_conn.add_flags(&app.mbox, uid, "\\Seen \\Deleted")?;
|
||||
debug!("message {} successfully moved to folder `{}`", uid, target);
|
||||
app.output.print(format!(
|
||||
|
|
Loading…
Reference in a new issue