mirror of
https://github.com/chatmail/core.git
synced 2026-04-11 18:12:11 +03:00
Compare commits
15 Commits
fix/str-de
...
hpk-fixes
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a749aee247 | ||
|
|
447d3c3416 | ||
|
|
a41204b275 | ||
|
|
df4927662d | ||
|
|
f9709eb931 | ||
|
|
7421aade3f | ||
|
|
4cc9172ee7 | ||
|
|
7e129bcfc3 | ||
|
|
33246726de | ||
|
|
3a60ada4c3 | ||
|
|
7a3053e303 | ||
|
|
d32f467790 | ||
|
|
6a37ef47c0 | ||
|
|
56a23ddd97 | ||
|
|
e882e37855 |
@@ -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(
|
||||
|
||||
@@ -17,6 +17,7 @@ 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::*;
|
||||
@@ -1276,6 +1277,13 @@ 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,6 +1189,17 @@ 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,
|
||||
@@ -1198,6 +1209,13 @@ 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,6 +991,13 @@ 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,
|
||||
|
||||
13
src/keyhistory.rs
Normal file
13
src/keyhistory.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
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,6 +25,7 @@ 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