mirror of
https://github.com/chatmail/core.git
synced 2026-04-03 05:52:10 +03:00
Compare commits
6 Commits
hpk-fixes
...
fix/str-de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d47d25c1e | ||
|
|
e4f9446e3c | ||
|
|
abbbd0cb67 | ||
|
|
ae9f52e001 | ||
|
|
2414a618e2 | ||
|
|
7c34806125 |
@@ -909,13 +909,6 @@ 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(
|
||||
|
||||
@@ -17,7 +17,6 @@ use crate::dc_mimefactory::*;
|
||||
use crate::dc_msg::*;
|
||||
use crate::dc_tools::*;
|
||||
use crate::imap::*;
|
||||
use crate::keyhistory::*;
|
||||
use crate::param::*;
|
||||
use crate::sql;
|
||||
use crate::types::*;
|
||||
@@ -1277,13 +1276,6 @@ pub unsafe fn dc_job_send_msg(context: &Context, msg_id: uint32_t) -> libc::c_in
|
||||
(*mimefactory.msg).param.set_int(Param::GuranteeE2ee, 1);
|
||||
dc_msg_save_param_to_disk(mimefactory.msg);
|
||||
}
|
||||
dc_add_to_keyhistory(
|
||||
context,
|
||||
0 as *const libc::c_char,
|
||||
0,
|
||||
0 as *const libc::c_char,
|
||||
0 as *const libc::c_char,
|
||||
);
|
||||
success = dc_add_smtp_job(context, 5901i32, &mut mimefactory);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1189,17 +1189,6 @@ unsafe fn dc_mimeparser_add_single_part_if_known(
|
||||
.is_null())
|
||||
as libc::c_int;
|
||||
|
||||
if !decoded_data.is_null() && decoded_data_bytes > 0 {
|
||||
info!(
|
||||
mimeparser.context,
|
||||
0,
|
||||
"Simplifying text: \n---\n{:?}\n--\n",
|
||||
std::slice::from_raw_parts(
|
||||
decoded_data as *const u8,
|
||||
decoded_data_bytes as usize,
|
||||
)
|
||||
);
|
||||
}
|
||||
let simplified_txt = simplifier.unwrap().simplify(
|
||||
decoded_data,
|
||||
decoded_data_bytes as libc::c_int,
|
||||
@@ -1209,13 +1198,6 @@ unsafe fn dc_mimeparser_add_single_part_if_known(
|
||||
if !simplified_txt.is_null()
|
||||
&& 0 != *simplified_txt.offset(0isize) as libc::c_int
|
||||
{
|
||||
info!(
|
||||
mimeparser.context,
|
||||
0,
|
||||
"Simpliifed text: {}",
|
||||
as_str(simplified_txt),
|
||||
);
|
||||
|
||||
let mut part = dc_mimepart_new();
|
||||
part.type_0 = 10i32;
|
||||
part.int_mimetype = mime_type;
|
||||
|
||||
@@ -991,13 +991,6 @@ impl Imap {
|
||||
|
||||
if !is_deleted && msg.body().is_some() {
|
||||
let body = msg.body().unwrap();
|
||||
info!(
|
||||
context,
|
||||
0,
|
||||
"received message {}",
|
||||
String::from_utf8_lossy(body)
|
||||
);
|
||||
|
||||
unsafe {
|
||||
(self.receive_imf)(
|
||||
context,
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
use crate::context::Context;
|
||||
|
||||
/* yes: uppercase */
|
||||
/* library private: key-history */
|
||||
pub fn dc_add_to_keyhistory(
|
||||
_context: &Context,
|
||||
_rfc724_mid: *const libc::c_char,
|
||||
_sending_time: u64,
|
||||
_addr: *const libc::c_char,
|
||||
_fingerprint: *const libc::c_char,
|
||||
) {
|
||||
|
||||
}
|
||||
@@ -25,7 +25,6 @@ pub mod contact;
|
||||
pub mod context;
|
||||
pub mod imap;
|
||||
pub mod key;
|
||||
pub mod keyhistory;
|
||||
pub mod keyring;
|
||||
pub mod oauth2;
|
||||
pub mod param;
|
||||
|
||||
Reference in New Issue
Block a user