Fixes for message id mis-spelling in encoder/decoder
This commit is contained in:
parent
2aa2319a6f
commit
22fd2f9bd3
|
@ -1008,8 +1008,8 @@ static int fixup_msg(MmsMsg *m, Octstr *from)
|
|||
octstr_destroy(s);
|
||||
|
||||
/* Check for msgid, put in if missing. */
|
||||
if ((s = http_header_value(m->headers, octstr_imm("MessageID"))) == NULL)
|
||||
http_header_add(m->headers, "MessageID", "00000");
|
||||
if ((s = http_header_value(m->headers, octstr_imm("Message-ID"))) == NULL)
|
||||
http_header_add(m->headers, "Message-ID", "00000");
|
||||
else
|
||||
octstr_destroy(s);
|
||||
|
||||
|
|
|
@ -508,10 +508,10 @@ static int mkqf(char qf[QFNAMEMAX], char subdir[64], char *mms_queuedir)
|
|||
|
||||
do {
|
||||
Octstr *tmp;
|
||||
xqf = octstr_format("%cf%ld.%d.x%d%ld",
|
||||
xqf = octstr_format("%cf%ld.%d.x%d.%ld",
|
||||
MQF,
|
||||
time(NULL),
|
||||
++ect, getpid(), random() % 100);
|
||||
(++ect % 10000), getpid()%1000, random() % 1000);
|
||||
tmp = octstr_format("%.64s/%s%S", mms_queuedir, subdir, xqf);
|
||||
|
||||
ctmp = octstr_get_cstr(tmp);
|
||||
|
|
|
@ -170,7 +170,7 @@ Octstr *mms_maketransid(char *qf, Octstr *mmscname)
|
|||
|
||||
if (!qf)
|
||||
x = octstr_format("msg.%ld.x%d.%d.%d",
|
||||
time(NULL), ++ct, getpid(), random()%10000);
|
||||
time(NULL), (++ct % 10000), getpid()%1000, random()%1000);
|
||||
else
|
||||
x = octstr_create(qf);
|
||||
|
||||
|
|
Loading…
Reference in New Issue