diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-03-02 08:11:38 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-10 19:40:38 +0300 |
commit | f748f1e692995e2f61e61fd892f30b9e8d092af8 (patch) | |
tree | 31c4c55e4a40c1e73b65f0e3f86da8a507de5dde /melib | |
parent | f93310d4247d79e7f8ec7c92ec720e1cc66e7dc0 (diff) |
edit headers with a form in composer
Diffstat (limited to 'melib')
-rw-r--r-- | melib/src/mailbox/email/compose.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/melib/src/mailbox/email/compose.rs b/melib/src/mailbox/email/compose.rs index 14e267be..d5cea96b 100644 --- a/melib/src/mailbox/email/compose.rs +++ b/melib/src/mailbox/email/compose.rs @@ -32,10 +32,6 @@ impl Default for Draft { headers.insert("To".into(), "".into()); headers.insert("Cc".into(), "".into()); headers.insert("Bcc".into(), "".into()); - header_order.push("From".into()); - header_order.push("To".into()); - header_order.push("Cc".into()); - header_order.push("Bcc".into()); let now: DateTime<Local> = Local::now(); headers.insert("Date".into(), now.to_rfc2822()); @@ -43,6 +39,10 @@ impl Default for Draft { headers.insert("Message-ID".into(), random::gen_message_id()); headers.insert("User-Agent".into(), "meli".into()); header_order.push("Date".into()); + header_order.push("From".into()); + header_order.push("To".into()); + header_order.push("Cc".into()); + header_order.push("Bcc".into()); header_order.push("Subject".into()); header_order.push("Message-ID".into()); header_order.push("User-Agent".into()); |