42 #define MR_MSG_ID_MARKER1 1 43 #define MR_MSG_ID_DAYMARKER 9 44 #define MR_MSG_ID_LAST_SPECIAL 9 46 #define MR_MSG_UNDEFINED 0 47 #define MR_MSG_TEXT 10 48 #define MR_MSG_IMAGE 20 50 #define MR_MSG_AUDIO 40 51 #define MR_MSG_VOICE 41 52 #define MR_MSG_VIDEO 50 53 #define MR_MSG_FILE 60 55 #define MR_STATE_UNDEFINED 0 56 #define MR_STATE_IN_FRESH 10 57 #define MR_STATE_IN_NOTICED 13 58 #define MR_STATE_IN_SEEN 16 59 #define MR_STATE_OUT_PENDING 20 60 #define MR_STATE_OUT_ERROR 24 61 #define MR_STATE_OUT_DELIVERED 26 62 #define MR_STATE_OUT_MDN_RCVD 28 65 #define MR_MAX_GET_TEXT_LEN 30000 66 #define MR_MAX_GET_INFO_LEN 100000 int mrmsg_get_height(mrmsg_t *msg)
Get height of image or video.
Definition: mrmsg.c:529
int mrmsg_is_starred(mrmsg_t *msg)
Check if a message is starred.
Definition: mrmsg.c:703
void mrmsg_unref(mrmsg_t *msg)
Free a message object.
Definition: mrmsg.c:69
int mrmsg_get_duration(mrmsg_t *msg)
Get duration of audio or video.
Definition: mrmsg.c:551
char * mrmsg_get_filemime(mrmsg_t *msg)
Get mime type of the file.
Definition: mrmsg.c:360
uint32_t mrmsg_get_chat_id(mrmsg_t *msg)
Get the ID of chat the message belongs to.
Definition: mrmsg.c:166
char * mrmsg_get_summarytext(mrmsg_t *msg, int approx_characters)
Get a message summary as a single line of text.
Definition: mrmsg.c:658
int mrmsg_is_increation(mrmsg_t *msg)
Check if a message is still in creation.
Definition: mrmsg.c:1090
mrlot_t * mrmsg_get_summary(mrmsg_t *msg, mrchat_t *chat)
Get a summary for a message.
Definition: mrmsg.c:615
int mrmsg_is_systemcmd(mrmsg_t *msg)
Check if the message is a system command.
Definition: mrmsg.c:758
uint32_t mrmsg_get_from_id(mrmsg_t *msg)
Get the ID of contact who wrote the message.
Definition: mrmsg.c:145
int mrmsg_is_forwarded(mrmsg_t *msg)
Check if the message is a forwarded message.
Definition: mrmsg.c:731
int mrmsg_is_setupmessage(mrmsg_t *msg)
Check if the message is an Autocrypt Setup Message.
Definition: mrmsg.c:784
int mrmsg_get_width(mrmsg_t *msg)
Get width of image or video.
Definition: mrmsg.c:504
time_t mrmsg_get_timestamp(mrmsg_t *msg)
Get message time.
Definition: mrmsg.c:242
int mrmsg_get_showpadlock(mrmsg_t *msg)
Check if a padlock should be shown beside the message.
Definition: mrmsg.c:569
mrlot_t * mrmsg_get_mediainfo(mrmsg_t *msg)
Get real author and title.
Definition: mrmsg.c:443
char * mrmsg_get_file(mrmsg_t *msg)
Find out full path, file name and extension of the file associated with a message.
Definition: mrmsg.c:301
char * mrmsg_get_text(mrmsg_t *msg)
Get the text of the message.
Definition: mrmsg.c:272
An object representing a single message in memory.
void mrmsg_latefiling_mediasize(mrmsg_t *msg, int width, int height, int duration)
Late filing information to a message.
Definition: mrmsg.c:1152
An object representing a single mailbox.
char * mrmsg_get_filename(mrmsg_t *msg)
Get base file name without path.
Definition: mrmsg.c:328
int mrmsg_get_state(mrmsg_t *msg)
Get the state of a message.
Definition: mrmsg.c:224
uint64_t mrmsg_get_filebytes(mrmsg_t *msg)
Get the size of the file.
Definition: mrmsg.c:401
char * mrmsg_get_setupcodebegin(mrmsg_t *msg)
Get the first characters of the setup code.
Definition: mrmsg.c:810
uint32_t mrmsg_get_id(mrmsg_t *msg)
Get the ID of the message.
Definition: mrmsg.c:126
int mrmsg_get_type(mrmsg_t *msg)
Get the type of the message.
Definition: mrmsg.c:186
An object containing a set of values.
An object representing a single chat in memory.
int mrmsg_is_sent(mrmsg_t *msg)
Check if a message was sent successfully.
Definition: mrmsg.c:680