mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 18:36:30 +03:00
fix(imap): body ptr lifetime
This commit is contained in:
committed by
holger krekel
parent
245abb8384
commit
618087e5a7
@@ -1007,11 +1007,12 @@ impl Imap {
|
||||
let flags = if is_seen { DC_IMAP_SEEN } else { 0 };
|
||||
|
||||
if !is_deleted && msg.body().is_some() {
|
||||
let body = msg.body().unwrap();
|
||||
unsafe {
|
||||
(self.receive_imf)(
|
||||
context,
|
||||
msg.body().unwrap().as_ptr() as *const libc::c_char,
|
||||
msg.body().unwrap().len(),
|
||||
body.as_ptr() as *const libc::c_char,
|
||||
body.len(),
|
||||
folder.as_ref(),
|
||||
server_uid,
|
||||
flags as u32,
|
||||
|
||||
Reference in New Issue
Block a user