d70fde0a63
- Fix a build error in the new gnutls certificate verification code on s390. - Use GNUTLS 1.0.4 and GCRYPT 1.1.90, current Debian unstable package libgnutls10-dev. - Allow server hostnames in IMAP to be IP addresses (start with a number). - Skip examine/search unless requested with msglst option. - Exit if ssh-askpass permissions check fails. - Fix a bug where fetch times out to some IMAP servers. - Add --disable-crypto for source-based distributions while libgcrypt is unstable. - Sam Izzo's patch for changing the mouse click action depending on whether a box has new mail. The update is based on changes provided by Joel Carnat in private e-mail.
35 lines
886 B
Text
35 lines
886 B
Text
$NetBSD: patch-ab,v 1.5 2004/08/27 10:10:22 tron Exp $
|
|
|
|
--- wmbiff/ShellClient.c.orig 2004-06-18 23:28:16.000000000 +0200
|
|
+++ wmbiff/ShellClient.c 2004-08-27 12:03:23.000000000 +0200
|
|
@@ -152,6 +152,21 @@
|
|
return (strdup_ordie(bigbuffer));
|
|
}
|
|
|
|
+static char *mystrcasestr(const char *big, const char *little)
|
|
+{
|
|
+ int blen, llen;
|
|
+
|
|
+ blen = strlen(big);
|
|
+ llen = strlen(little);
|
|
+ while (blen >= llen) {
|
|
+ if (strncasecmp(big, little, llen) == 0)
|
|
+ return (char *)big;
|
|
+ big++;
|
|
+ blen--;
|
|
+ }
|
|
+ return NULL;
|
|
+}
|
|
+
|
|
int shellCmdCheck(Pop3 pc)
|
|
{
|
|
int count_status = 0;
|
|
@@ -189,7 +204,7 @@
|
|
pc->UnreadMsgs = 0;
|
|
pc->TotalMsgs = count_status;
|
|
}
|
|
- } else if (strcasestr(commandOutput, "unable")) {
|
|
+ } else if (mystrcasestr(commandOutput, "unable") != NULL) {
|
|
return -1;
|
|
} else if (sscanf(commandOutput, "%9s\n", pc->TextStatus) == 1) {
|
|
/* validate the string input */
|