add answered flag when replying to a message

This commit is contained in:
Clément DOUIN 2021-03-19 22:05:01 +01:00
parent ac6931624b
commit 1d92b5bc00
No known key found for this signature in database
GPG key ID: 69C9B9CFFDEE2DEF
2 changed files with 3 additions and 0 deletions

View file

@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- IDLE support [#29]
- Improve choice after editing msg [#30]
- Flags management [#41]
### Changed
@ -86,3 +87,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#38]: https://github.com/soywod/himalaya/issues/38
[#39]: https://github.com/soywod/himalaya/issues/39
[#40]: https://github.com/soywod/himalaya/issues/40
[#41]: https://github.com/soywod/himalaya/issues/41

View file

@ -489,6 +489,7 @@ impl<'a> App<'a> {
println!("Sending…");
smtp::send(&account, &msg.to_sendable_msg()?)?;
imap_conn.append_msg("Sent", &msg.to_vec()?)?;
imap_conn.add_flags(mbox, uid, "\\Answered")?;
println!("Done!");
break;
}