diff --git a/libimagmail/src/mail.rs b/libimagmail/src/mail.rs index 62625b03..2187b1fe 100644 --- a/libimagmail/src/mail.rs +++ b/libimagmail/src/mail.rs @@ -94,24 +94,24 @@ impl<'a> Mail<'a> { }) } - pub fn get_from(&self) -> Result> { - unimplemented!() + pub fn get_from(&self) -> Result> { + self.get_field("From") } - pub fn get_to(&self) -> Result> { - unimplemented!() + pub fn get_to(&self) -> Result> { + self.get_field("To") } - pub fn get_subject(&self) -> Result> { - unimplemented!() + pub fn get_subject(&self) -> Result> { + self.get_field("Subject") } - pub fn get_message_id(&self) -> Result> { - unimplemented!() + pub fn get_message_id(&self) -> Result> { + self.get_field("Message-ID") } - pub fn get_in_reply_to(&self) -> Result> { - unimplemented!() + pub fn get_in_reply_to(&self) -> Result> { + self.get_field("In-Reply-To") } }