Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mms-lib] Handle X-Mms-Read-Report in M-Retrieve.conf
This tells us whether the sender requested a read report.
  • Loading branch information
monich committed May 7, 2014
1 parent 66bb88a commit bb373d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mms-lib/src/mms_codec.c
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions mms-lib/src/mms_codec.h
Expand Up @@ -119,6 +119,7 @@ struct mms_retrieve_conf {
enum mms_message_priority priority;
char *msgid;
time_t date;
gboolean rr;
};

struct mms_send_req {
Expand Down
1 change: 1 addition & 0 deletions mms-lib/src/mms_task_decode.c
Expand Up @@ -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:
Expand Down

0 comments on commit bb373d8

Please sign in to comment.