From 1d92b5bc00afc27e588161f5bc9c66db4dec415f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Fri, 19 Mar 2021 22:05:01 +0100 Subject: [PATCH] add answered flag when replying to a message --- CHANGELOG.md | 2 ++ src/app.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad5b2b7..b462dd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/app.rs b/src/app.rs index 7018934..4bb94e7 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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; }