If you use bogofilter from both a small endian machine
(perhaps where you read mail) and a big endian one
(perhaps your mail server), it will not function
properly. This is because the word counts are stored
in native format which produces wrong results on a
platform of the opposite byte order.
This patch fixes that by putting the database values in
network order and reordering the bytes at run-time on
little endian platforms. In other words, the database
is made portable across platforms of differing native
The patch is against version 0.8.0's datastore_db.c.