}
if (n > 1) {
- if (sscanf (tmp, ":%hd%127s", &(mx->account.port), tmp) >= 1)
+ if (sscanf (tmp, ":%hu%127s", &(mx->account.port), tmp) >= 1)
mx->account.flags |= M_ACCT_PORT;
if (sscanf (tmp, "/%s", tmp) == 1)
{
}
}
-#ifdef USE_SSL
+#if defined(USE_SSL) || defined(USE_GNUTLS)
if (option (OPTIMAPFORCESSL))
mx->account.flags |= M_ACCT_SSL;
#endif