melib: remove body field from Envelope
parent
3f9ea25899
commit
1950228fda
|
@ -277,7 +277,6 @@ pub struct Envelope {
|
||||||
to: Vec<Address>,
|
to: Vec<Address>,
|
||||||
cc: Vec<Address>,
|
cc: Vec<Address>,
|
||||||
bcc: Vec<Address>,
|
bcc: Vec<Address>,
|
||||||
body: Option<Attachment>,
|
|
||||||
subject: Option<Vec<u8>>,
|
subject: Option<Vec<u8>>,
|
||||||
message_id: MessageID,
|
message_id: MessageID,
|
||||||
in_reply_to: Option<MessageID>,
|
in_reply_to: Option<MessageID>,
|
||||||
|
@ -299,7 +298,6 @@ impl Envelope {
|
||||||
to: Vec::new(),
|
to: Vec::new(),
|
||||||
cc: Vec::new(),
|
cc: Vec::new(),
|
||||||
bcc: Vec::new(),
|
bcc: Vec::new(),
|
||||||
body: None,
|
|
||||||
subject: None,
|
subject: None,
|
||||||
message_id: MessageID::default(),
|
message_id: MessageID::default(),
|
||||||
in_reply_to: None,
|
in_reply_to: None,
|
||||||
|
@ -667,9 +665,6 @@ impl Envelope {
|
||||||
None => Vec::new(),
|
None => Vec::new(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn set_body(&mut self, new_val: Attachment) -> () {
|
|
||||||
self.body = Some(new_val);
|
|
||||||
}
|
|
||||||
pub fn thread(&self) -> usize {
|
pub fn thread(&self) -> usize {
|
||||||
self.thread
|
self.thread
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue