mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
improve info string and version setting
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use c2rust_bitfields::BitfieldStruct;
|
||||
use libc;
|
||||
|
||||
use crate::constants::VERSION;
|
||||
use crate::dc_chat::*;
|
||||
use crate::dc_contact::*;
|
||||
use crate::dc_context::dc_context_t;
|
||||
@@ -457,7 +458,7 @@ pub unsafe fn dc_mimefactory_render(mut factory: *mut dc_mimefactory_t) -> libc:
|
||||
strdup(b"X-Mailer\x00" as *const u8 as *const libc::c_char),
|
||||
dc_mprintf(
|
||||
b"Delta Chat Core %s%s%s\x00" as *const u8 as *const libc::c_char,
|
||||
b"0.42.0\x00" as *const u8 as *const libc::c_char,
|
||||
VERSION as *const u8 as *const libc::c_char,
|
||||
if !(*(*factory).context).os_name.is_null() {
|
||||
b"/\x00" as *const u8 as *const libc::c_char
|
||||
} else {
|
||||
@@ -914,7 +915,7 @@ pub unsafe fn dc_mimefactory_render(mut factory: *mut dc_mimefactory_t) -> libc:
|
||||
message_text2 =
|
||||
dc_mprintf(b"Reporting-UA: Delta Chat %s\r\nOriginal-Recipient: rfc822;%s\r\nFinal-Recipient: rfc822;%s\r\nOriginal-Message-ID: <%s>\r\nDisposition: manual-action/MDN-sent-automatically; displayed\r\n\x00"
|
||||
as *const u8 as *const libc::c_char,
|
||||
b"0.42.0\x00" as *const u8 as *const libc::c_char,
|
||||
VERSION as *const u8 as *const libc::c_char,
|
||||
(*factory).from_addr, (*factory).from_addr,
|
||||
(*(*factory).msg).rfc724_mid);
|
||||
let mut content_type_0: *mut mailmime_content = mailmime_content_new_with_str(
|
||||
|
||||
Reference in New Issue
Block a user