Fix MSGID
This commit is contained in:
parent
1ad6a5f8f3
commit
9d612f9726
@ -89,12 +89,12 @@ unsigned long generate_msgid() {
|
|||||||
flock(fileno(fptr), LOCK_UN);
|
flock(fileno(fptr), LOCK_UN);
|
||||||
fclose(fptr);
|
fclose(fptr);
|
||||||
} else {
|
} else {
|
||||||
|
lastid = unixtime;
|
||||||
dolog("Unable to open message id log");
|
dolog("Unable to open message id log");
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sprintf(buffer, "%X", lastid);
|
||||||
return lastid;
|
return strtoul(&buffer[strlen(buffer) - 8], NULL, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
void free_message_headers(struct msg_headers *msghs) {
|
void free_message_headers(struct msg_headers *msghs) {
|
||||||
|
Reference in New Issue
Block a user