]> git.ipfire.org Git - people/ms/dma.git/commit - mail.c
properly randomize the message id
authorSimon Schubert <2@0x2c.org>
Mon, 28 Jun 2010 22:49:42 +0000 (00:49 +0200)
committerSimon Schubert <2@0x2c.org>
Mon, 28 Jun 2010 22:50:50 +0000 (00:50 +0200)
commitee61342893f597002d6a416e4da64b25870429ad
treea74ba7b9956cae22a4d1e88b277fc0ea224e9fe7
parent0cf8120d9608974c680035188457ebfbc1805630
properly randomize the message id

We would only use the queue id of the message as its message id, which
is generated from the inode number of the message's queue file.  Inode
numbers are readily reused on many file systems, which leads to
repeating message ids.

Create real randomized message ids instead.

Submitted-by: Peter Pentchev <roam@ringlet.net> (earlier version)
dma.c
dma.h
mail.c
util.c