Commit 3dc9078b 3dc9078baf463ec5977f257a879fdc96ee0092d6 by Sergey Poznyakoff

_mh_next_seq(): add 1 to the last used sequence number.

mh_append_message(): missed assignment to mhd member of struct _mh_data.
mh_message_number(): new function. It is the only way to get the message
sequence number.
1 parent 320e0554
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
34 #include <fcntl.h> 34 #include <fcntl.h>
35 #include <unistd.h> 35 #include <unistd.h>
36 #include <signal.h> 36 #include <signal.h>
37 #include <stdlib.h>
38 #include <time.h> 37 #include <time.h>
39 #include <string.h> 38 #include <string.h>
40 #include <ctype.h> 39 #include <ctype.h>
......