/* compile with 
 gcc $(pkg-config --cflags gmime-2.6) test.c $(pkg-config --libs gmime-2.6)
*/

#include <gmime/gmime.h>
#include <stdio.h>

int main(int argc, char **argv) {
    time_t t=g_mime_utils_header_decode_date ("nonsense", NULL);
    printf("%ld %d\n", t, t==0 );
};
