diff --git a/mbuni/ChangeLog b/mbuni/ChangeLog index 7cd399a..766686c 100644 --- a/mbuni/ChangeLog +++ b/mbuni/ChangeLog @@ -1,3 +1,5 @@ +2008-12-10 P. A. Bagyenda + * Extra mbuni headers in mmsbox url service call 2008-12-09 P. A. Bagyenda * MSISDN and IP request headers now list (MMSC) 2008-12-04 P. A. Bagyenda diff --git a/mbuni/mmsbox/mmsbox.c b/mbuni/mmsbox/mmsbox.c index e66ba37..047a3af 100644 --- a/mbuni/mmsbox/mmsbox.c +++ b/mbuni/mmsbox/mmsbox.c @@ -377,6 +377,15 @@ static int fetch_serviceurl(MmsEnvelope *e, octstr_destroy(s); } + if ((s = mms_get_header_value(m, octstr_imm("Date"))) != NULL) { + http_header_add(rh, "X-Mbuni-Message-Date", octstr_get_cstr(s)); + octstr_destroy(s); + } + + s = date_format_http(e->created); + http_header_add(rh, "X-Mbuni-Received-Date", octstr_get_cstr(s)); + octstr_destroy(s); + if (ms->type == TRANS_TYPE_POST_URL) { /* Put in the parameters. */ MIMEEntity *x = mime_entity_create();