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) }