Commit bb373d8a authored by Slava Monich's avatar Slava Monich

[mms-lib] Handle X-Mms-Read-Report in M-Retrieve.conf

This tells us whether the sender requested a read report.
parent 66bb88aa
......@@ -1348,6 +1348,8 @@ static gboolean decode_retrieve_conf(struct wsp_header_iter *iter,
0, &out->rc.msgid,
MMS_HEADER_DATE,
HEADER_FLAG_MANDATORY, &out->rc.date,
MMS_HEADER_READ_REPORT,
0, &out->rc.rr,
MMS_HEADER_INVALID) == FALSE)
return FALSE;
......
......@@ -119,6 +119,7 @@ struct mms_retrieve_conf {
enum mms_message_priority priority;
char *msgid;
time_t date;
gboolean rr;
};
struct mms_send_req {
......
......@@ -149,6 +149,7 @@ mms_task_decode_process_retrieve_conf(
msg->subject = g_strdup(rc->subject);
msg->cls = g_strdup(rc->cls ? rc->cls : MMS_MESSAGE_CLASS_PERSONAL);
msg->date = rc->date ? rc->date : time(NULL);
msg->read_report_req = rc->rr;
switch (rc->priority) {
case MMS_MESSAGE_PRIORITY_LOW:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment