# So just uncomment all the lines marked QNX.
PACKAGE = fetchmail
-VERSION = 5.8.11
+VERSION = 5.9.0
# Ultrix 2.2 make doesn't expand the value of VPATH.
srcdir = @srcdir@
Beware! The UIDL support in this thing is known to be completely broken,
and other things probably are too.
+"""
+ if string.find(greetline, "MercuryP/NLM v1.48") > 0:
+ warnings = warnings + """
+This is not a POP3 server. It has delusions of being one, but after
+RETR all messages are automatically marked to be deleted. The only
+way to prevent this is to issue an RSET before leaving the server.
+
"""
if string.find(greetline, "POP-Max") > 0:
warnings = warnings + """
{
kvm_read(kvmfd, ifnet_addr, &ifnet, sizeof(ifnet));
kvm_read(kvmfd, (unsigned long) ifnet.if_name, tname, sizeof tname);
- snprintf(tname, sizeof tname - 1, "%s%d", tname, ifnet.if_unit);
+#ifdef HAVE_SNPRINTF
+ snprintf(tname, sizeof tname - 1,
+#else
+ sprintf(tname,
+#endif
+ "%s%d", tname, ifnet.if_unit);
if (!strcmp(tname, iname))
{
continue;
if ((fd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)) < 0) {
- snprintf(errorbuf, sizeof(errorbuf), "socket: %s(%d)", strerror(errno), errno);
+#ifdef HAVE_SNPRINTF
+ snprintf(errorbuf, sizeof(errorbuf),
+#else
+ sprintf(errorbuf,
+#endif
+ "socket: %s(%d)", strerror(errno), errno);
error_callback(myname, errorbuf);
continue;
};
if (connect(fd, ai->ai_addr, ai->ai_addrlen) < 0) {
- snprintf(errorbuf, sizeof(errorbuf), "connect: %s(%d)", strerror(errno), errno);
+#ifdef HAVE_SNPRINTF
+ snprintf(errorbuf, sizeof(errorbuf),
+#else
+ sprintf(errorbuf,
+#endif
+ "connect: %s(%d)", strerror(errno), errno);
error_callback(myname, errorbuf);
close(fd); /* just after a connect; no reads or writes yet */
continue;
if (pai)
*pai = ai;
} else {
- snprintf(errorbuf, sizeof(errorbuf), "no connections result");
+#ifdef HAVE_SNPRINTF
+ snprintf(errorbuf, sizeof(errorbuf),
+#else
+ sprintf(errorbuf,
+#endif
+ "no connections result");
error_callback(myname, errorbuf);
fd = -1;
};
tp = text;
te = text + sizeof(text);
for (i = 0; i < dsz; i++) {
+#ifdef HAVE_SNPRINTF
esz = snprintf(tp, te - tp, i > 0 ? ":%02X" : "%02X", digest[i]);
+#else
+ esz = sprintf(tp, i > 0 ? ":%02X" : "%02X", digest[i]);
+#endif
if (esz >= te - tp) {
report(stderr, _("Digest text buffer too small!\n"));
return (0);