From 318194a21630b5f2064c33d385666537bef6ff0e Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sun, 19 Jan 2020 23:06:49 +0300 Subject: [PATCH] Rename Param::MessageId into Param::MsgId MsgId refers to database ID, same as crate::message::MsgId newtype. --- src/job.rs | 2 +- src/param.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/job.rs b/src/job.rs index 95fbf959b..567809414 100644 --- a/src/job.rs +++ b/src/job.rs @@ -1079,7 +1079,7 @@ fn suspend_smtp_thread(context: &Context, suspend: bool) { fn send_mdn(context: &Context, msg: &Message) -> Result<()> { let mut param = Params::new(); - param.set(Param::MessageId, msg.id.to_u32().to_string()); + param.set(Param::MsgId, msg.id.to_u32().to_string()); job_add(context, Action::SendMdn, msg.from_id as i32, param, 0); diff --git a/src/param.rs b/src/param.rs index 618d97b52..af265674b 100644 --- a/src/param.rs +++ b/src/param.rs @@ -119,7 +119,7 @@ pub enum Param { GroupName = b'g', /// For MDN-sending job - MessageId = b'I', + MsgId = b'I', } /// Possible values for `Param::ForcePlaintext`. @@ -317,7 +317,7 @@ impl Params { } pub fn get_msg_id(&self) -> Option { - self.get(Param::MessageId) + self.get(Param::MsgId) .and_then(|x| x.parse::().ok()) .map(MsgId::new) }