mirror of
https://github.com/chatmail/core.git
synced 2026-05-25 01:36:31 +03:00
add dc_msg_set_override_sender_name() api
with mailinglists, we already receive and handle per-message-names, this api allows this also eg. for bots based on the deltachat api.
This commit is contained in:
@@ -3816,6 +3816,21 @@ void dc_msg_set_text (dc_msg_t* msg, const char* text);
|
||||
void dc_msg_set_html (dc_msg_t* msg, const char* html);
|
||||
|
||||
|
||||
/**
|
||||
* Set different sender name for a message.
|
||||
* This overrides the name set by the dc_set_config()-option `displayname`.
|
||||
*
|
||||
* Usually, this function is not needed
|
||||
* when implementing pure messaging functions.
|
||||
* However, it might be useful for bots eg. building bridges to other networks.
|
||||
*
|
||||
* @memberof dc_msg_t
|
||||
* @param msg The message object.
|
||||
* @param name The name to send along with the message.
|
||||
*/
|
||||
void dc_msg_set_override_sender_name(dc_msg_t* msg, const char* name);
|
||||
|
||||
|
||||
/**
|
||||
* Set the file associated with a message object.
|
||||
* This does not alter any information in the database
|
||||
|
||||
Reference in New Issue
Block a user