1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 19:42:04 +02:00

hide implementation details of mrlot_t

This commit is contained in:
B. Petersen 2018-01-02 16:16:48 +01:00
parent 1f29ef65b3
commit 549ef4a875
6 changed files with 150 additions and 18 deletions

View file

@ -580,20 +580,24 @@ char* mrmailbox_cmdline(mrmailbox_t* mailbox, const char* cmdline)
if( mrchat_get_archived(chat) ) {
statestr = " [Archived]";
}
else switch( poortext->m_state ) {
else switch( mrlot_get_state(poortext) ) {
case MR_STATE_OUT_PENDING: statestr = " o"; break;
case MR_STATE_OUT_DELIVERED: statestr = ""; break;
case MR_STATE_OUT_MDN_RCVD: statestr = " √√"; break;
case MR_STATE_OUT_ERROR: statestr = " ERR"; break;
}
char* timestr = mr_timestamp_to_str(poortext->m_timestamp);
char* timestr = mr_timestamp_to_str(mrlot_get_timestamp(poortext));
char* text1 = mrlot_get_text1(poortext);
char* text2 = mrlot_get_text2(poortext);
mrmailbox_log_info(mailbox, 0, "%s%s%s%s [%s]",
poortext->m_text1? poortext->m_text1 : "",
poortext->m_text1? ": " : "",
poortext->m_text2? poortext->m_text2 : NULL,
text1? text1 : "",
text1? ": " : "",
text2? text2 : "",
statestr, timestr
);
free(text1);
free(text2);
free(timestr);
mrpoortext_unref(poortext);