]> granicus.if.org Git - neomutt/commitdiff
Brendan Cully sent a patch.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 26 Feb 2002 10:38:43 +0000 (10:38 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 26 Feb 2002 10:38:43 +0000 (10:38 +0000)
configure.in
imap/browse.c
imap/message.c
mutt_sasl.c

index b61225ba655f0646cf8e8ded7fb081b96dfbdda3..f774592fdae4c44f1bcd1edf2542ced280a42384 100644 (file)
@@ -525,6 +525,8 @@ then
 fi
 AM_CONDITIONAL(USE_GSS, test x$need_gss = xyes)
 
+dnl -- end imap dependencies --
+
 AC_ARG_WITH(ssl, [  --with-ssl[=PFX]           Compile in SSL support for POP/IMAP],
 [       if test "$with_ssl" != "no"
         then
@@ -578,8 +580,6 @@ AC_ARG_WITH(nss, [  --with-nss[=PFX]           Compile in SSL support for POP/IM
         fi
 ])
 
-dnl -- end imap dependencies --
-
 AC_ARG_WITH(sasl, [  --with-sasl[=PFX]          Use Cyrus SASL library for POP/IMAP authentication],
         [
         if test "$need_socket" != "yes"
index 8accc83634e09648ad31312feb9650f9ba0a40ed..4300995736ce192d6a787bcb6664af3a3bdf1ad9 100644 (file)
@@ -439,7 +439,7 @@ static int browse_get_namespace (IMAP_DATA* idata, char* nsbuf, int nsblen,
       for (type = IMAP_NS_PERSONAL; *s; type++)
       {
        s = imap_next_word (s);
-       if (ascii_strncasecmp (s, "NIL", 3))
+       if (*s && ascii_strncasecmp (s, "NIL", 3))
        {
          s++;
          while (*s && *s != ')')
index 540de7a9017a87cd9b8123c66af47768c0f08c0c..b41bdf43649b8a52819faa8a47f479ba55533f5e 100644 (file)
@@ -145,7 +145,6 @@ int imap_read_headers (IMAP_DATA* idata, int msgbegin, int msgend)
       /* update context with message header */
       ctx->hdrs[msgno] = mutt_new_header ();
 
-      ctx->hdrs[msgno]->index = ctx->msgcount;
       ctx->hdrs[msgno]->index = h.sid - 1;
       if (h.sid != ctx->msgcount + 1)
        dprint (1, (debugfile, "imap_read_headers: msgcount and sequence ID are inconsistent!"));
index f4ff9b688a5adad3ae13e5a3a73a106296f4d3db..4d6d7fe6ebb5ec593f50374737b838257e2784cc 100644 (file)
@@ -163,7 +163,8 @@ int mutt_sasl_client_new (CONNECTION* conn, sasl_conn_t** saslconn)
    * work for POP, we can make it a flag or move this code into
    * imap/auth_sasl.c */
   memset (&secprops, 0, sizeof (secprops));
-  secprops.max_ssf = (sasl_ssf_t) -1;
+  /* Work around a casting bug in the SASL krb4 module */
+  secprops.max_ssf = 0x7fff;
   secprops.maxbufsize = M_SASL_MAXBUF;
   secprops.security_flags |= SASL_SEC_NOPLAINTEXT;
   if (sasl_setprop (*saslconn, SASL_SEC_PROPS, &secprops) != SASL_OK)