mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 11:26:29 +03:00
Make receive_imf use safe version of dc_extract_grpid_from_rfc724_mid
- Remove unused unsafe wrapper - Adjust tests to use safe version
This commit is contained in:
committed by
Floris Bruynooghe
parent
d5168916df
commit
ff95c44d51
@@ -948,7 +948,11 @@ unsafe fn create_or_lookup_group(
|
||||
if !field.is_null() && (*field).fld_type == MAILIMF_FIELD_MESSAGE_ID as libc::c_int {
|
||||
let fld_message_id: *mut mailimf_message_id = (*field).fld_data.fld_message_id;
|
||||
if !fld_message_id.is_null() {
|
||||
grpid = dc_extract_grpid_from_rfc724_mid((*fld_message_id).mid_value)
|
||||
if let Some(_grpid) = dc_extract_grpid_from_rfc724_mid(to_string((*fld_message_id).mid_value)) {
|
||||
grpid = to_cstring(_grpid);
|
||||
} else {
|
||||
grpid = 0 as *mut libc::c_char;
|
||||
}
|
||||
}
|
||||
}
|
||||
if grpid.is_null() {
|
||||
|
||||
Reference in New Issue
Block a user