mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 13:36:30 +03:00
print decrypted message
This commit is contained in:
@@ -812,7 +812,7 @@ unsafe fn decrypt_recursive(
|
||||
}
|
||||
|
||||
unsafe fn decrypt_part(
|
||||
_context: &Context,
|
||||
context: &Context,
|
||||
mime: *mut mailmime,
|
||||
private_keyring: &Keyring,
|
||||
public_keyring_for_validate: &Keyring,
|
||||
@@ -909,6 +909,13 @@ unsafe fn decrypt_part(
|
||||
let plain_bytes = plain.len();
|
||||
let plain_buf = plain.as_ptr() as *const libc::c_char;
|
||||
|
||||
info!(
|
||||
context,
|
||||
0,
|
||||
"decrypted message: '{}'",
|
||||
String::from_utf8_lossy(&plain)
|
||||
);
|
||||
|
||||
let mut index: size_t = 0i32 as size_t;
|
||||
let mut decrypted_mime: *mut mailmime = 0 as *mut mailmime;
|
||||
if mailmime_parse(
|
||||
|
||||
Reference in New Issue
Block a user