#include "util.h"
+const char progname[] = "mdup";
+
static char *db_name;
static uns max_age = 86400;
static uns now;
uns lul = strlen(local_user);
if (!strcasecmp(rhs, local_domain) &&
!strncasecmp(lhs, local_user, lul) &&
- !strncasecmp(lhs+lul, "+md+", 4))
+ !strncasecmp(lhs+lul, "+md-", 4))
{
verb(1, "Detected local Message-ID");
item->timestamp = 2;
struct sha1_ctx ctx;
sha1_init(&ctx);
- sha1_update(&ctx, lhs, l-lhs);
- sha1_update(&ctx, rhs, r-rhs);
+ sha1_update(&ctx, (unsigned char *) lhs, l-lhs);
+ sha1_update(&ctx, (unsigned char *) rhs, r-rhs);
sha1_final(&ctx, item->digest);
item->timestamp = 1;
if (verbose >= 1)