fix handling for message id's > 32767

Message ID's were treatet as 16 bit values, so the driver could no
differ between special folders witd id < 0 and message folders with id >
32767.