nmh-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-commits] nmh ./ChangeLog h/prototypes.h mts/smtp/hosts.c...


From: Josh Bressers
Subject: [Nmh-commits] nmh ./ChangeLog h/prototypes.h mts/smtp/hosts.c...
Date: Wed, 08 Mar 2006 12:14:17 +0000

CVSROOT:        /sources/nmh
Module name:    nmh
Branch:         
Changes by:     Josh Bressers <address@hidden>  06/03/08 12:14:16

Modified files:
        .              : ChangeLog 
        h              : prototypes.h 
        mts/smtp       : hosts.c 
        sbr            : addrsbr.c check_charset.c context_del.c 
                         context_find.c context_replace.c fmt_rfc2047.c 
                         ruserpass.c strcasecmp.c 
        uip            : ali.c aliasbr.c mhbuildsbr.c mhlsbr.c mhmisc.c 
                         mhoutsbr.c mhparam.c mhparse.c mhstoresbr.c 
                         msh.c mshcmds.c picksbr.c popsbr.c post.c 
                         rcvdist.c replsbr.c scansbr.c sendsbr.c show.c 
                         slocal.c sortm.c spost.c 

Log message:
        * (mh_strcasecmp): Rename the private strcasecmp function to 
mh_strcasecmp.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/ChangeLog.diff?tr1=1.241&tr2=1.242&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/h/prototypes.h.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/mts/smtp/hosts.c.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/sbr/addrsbr.c.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/sbr/check_charset.c.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/sbr/context_del.c.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/sbr/context_find.c.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/sbr/context_replace.c.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/sbr/fmt_rfc2047.c.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/sbr/ruserpass.c.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/sbr/strcasecmp.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/ali.c.diff?tr1=1.8&tr2=1.9&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/aliasbr.c.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/mhbuildsbr.c.diff?tr1=1.13&tr2=1.14&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/mhlsbr.c.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/mhmisc.c.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/mhoutsbr.c.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/mhparam.c.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/mhparse.c.diff?tr1=1.13&tr2=1.14&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/mhstoresbr.c.diff?tr1=1.12&tr2=1.13&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/msh.c.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/mshcmds.c.diff?tr1=1.13&tr2=1.14&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/picksbr.c.diff?tr1=1.8&tr2=1.9&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/popsbr.c.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/post.c.diff?tr1=1.18&tr2=1.19&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/rcvdist.c.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/replsbr.c.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/scansbr.c.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/sendsbr.c.diff?tr1=1.11&tr2=1.12&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/show.c.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/slocal.c.diff?tr1=1.22&tr2=1.23&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/sortm.c.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/spost.c.diff?tr1=1.17&tr2=1.18&r1=text&r2=text

Patches:
Index: nmh/ChangeLog
diff -u nmh/ChangeLog:1.241 nmh/ChangeLog:1.242
--- nmh/ChangeLog:1.241 Sun Mar  5 14:38:23 2006
+++ nmh/ChangeLog       Wed Mar  8 12:14:15 2006
@@ -1,3 +1,8 @@
+2006-03-08  Josh Bressers <address@hidden>
+
+       * (mh_strcasecmp): Rename the private strcasecmp function to
+       mh_strcasecmp.  This keeps the newer gnu linker happy.
+
 2006-03-05  Oliver Kiddle <address@hidden>
 
        * sbr/fmt_rfc2047.c: don't try to malloc 0 bytes if an RFC2047
Index: nmh/h/prototypes.h
diff -u nmh/h/prototypes.h:1.15 nmh/h/prototypes.h:1.16
--- nmh/h/prototypes.h:1.15     Tue Feb 21 03:58:31 2006
+++ nmh/h/prototypes.h  Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * prototypes.h -- various prototypes
  *
- * $Id: prototypes.h,v 1.15 2006/02/21 03:58:31 levine Exp $
+ * $Id: prototypes.h,v 1.16 2006/03/08 12:14:16 bress Exp $
  */
 
 /*
@@ -137,7 +137,7 @@
 int vsnprintf (char *, size_t, const char *, va_list);
 #endif
 
-int strcasecmp (const char *s1, const char *s2);
+int mh_strcasecmp (const char *s1, const char *s2);
 int strncasecmp (const char *s1, const char *s2, size_t n);
 
 
Index: nmh/mts/smtp/hosts.c
diff -u nmh/mts/smtp/hosts.c:1.6 nmh/mts/smtp/hosts.c:1.7
--- nmh/mts/smtp/hosts.c:1.6    Tue Jul  2 22:09:14 2002
+++ nmh/mts/smtp/hosts.c        Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * hosts.c -- find out the official name of a host
  *
- * $Id: hosts.c,v 1.6 2002/07/02 22:09:14 kenh Exp $
+ * $Id: hosts.c,v 1.7 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -48,7 +48,7 @@
     *q = '\0';
     q = site;
 
-    if (!strcasecmp (LocalName(), site))
+    if (!mh_strcasecmp (LocalName(), site))
        return LocalName();
 
 #ifdef HAVE_SETHOSTENT
@@ -61,11 +61,11 @@
     }
     if (hosts.h_name || init_hs ()) {
        for (h = hosts.h_next; h; h = h->h_next)
-           if (!strcasecmp (h->h_name, q)) {
+           if (!mh_strcasecmp (h->h_name, q)) {
                return h->h_name;
            } else {
                for (r = h->h_aliases; *r; r++)
-                   if (!strcasecmp (*r, q))
+                   if (!mh_strcasecmp (*r, q))
                        return h->h_name;
            }
     }
Index: nmh/sbr/addrsbr.c
diff -u nmh/sbr/addrsbr.c:1.6 nmh/sbr/addrsbr.c:1.7
--- nmh/sbr/addrsbr.c:1.6       Tue Jul  2 22:09:14 2002
+++ nmh/sbr/addrsbr.c   Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * addrsbr.c -- parse addresses 822-style
  *
- * $Id: addrsbr.c,v 1.6 2002/07/02 22:09:14 kenh Exp $
+ * $Id: addrsbr.c,v 1.7 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -206,18 +206,18 @@
     }
 
     if (wanthost == AD_NHST)
-       mp->m_type = !strcasecmp (LocalName (), mp->m_host)
+       mp->m_type = !mh_strcasecmp (LocalName (), mp->m_host)
            ? LOCALHOST : NETHOST;
 #ifdef DUMB
     else
-       mp->m_type = strcasecmp (LocalName(), mp->m_host) ?  NETHOST : 
LOCALHOST;
+       mp->m_type = mh_strcasecmp (LocalName(), mp->m_host) ?  NETHOST : 
LOCALHOST;
 #else /* not DUMB */
     else
        if (pp = OfficialName (mp->m_host)) {
     got_real_host: ;
            free (mp->m_host);
            mp->m_host = getcpy (pp);
-           mp->m_type = strcasecmp (LocalName(), mp->m_host) ? NETHOST : 
LOCALHOST;
+           mp->m_type = mh_strcasecmp (LocalName(), mp->m_host) ? NETHOST : 
LOCALHOST;
        }
        else {
            if (dp = strchr(mp->m_host, '.')) {
@@ -456,11 +456,11 @@
            goto local_test;
 
        case UUCPHOST:
-           if (strcasecmp (np->m_host, SystemName()))
+           if (mh_strcasecmp (np->m_host, SystemName()))
                break;          /* fall */
        case LOCALHOST:
 local_test: ;
-           if (!strcasecmp (np->m_mbox, mq.m_mbox))
+           if (!mh_strcasecmp (np->m_mbox, mq.m_mbox))
                return 1;
            break;
 
@@ -481,11 +481,11 @@
            continue;
        switch (mp->m_type & W_MBOX) {
            case W_NIL: 
-               if (strcasecmp (cp, pp))
+               if (mh_strcasecmp (cp, pp))
                    continue;
                break;
            case W_MBEG: 
-               if (strcasecmp (cp + len - i, pp))
+               if (mh_strcasecmp (cp + len - i, pp))
                    continue;
                break;
            case W_MEND: 
@@ -507,11 +507,11 @@
            continue;
        switch (mp->m_type & W_HOST) {
            case W_NIL: 
-               if (strcasecmp (cp, pp))
+               if (mh_strcasecmp (cp, pp))
                    continue;
                break;
            case W_HBEG: 
-               if (strcasecmp (cp + len - i, pp))
+               if (mh_strcasecmp (cp + len - i, pp))
                    continue;
                break;
            case W_HEND: 
Index: nmh/sbr/check_charset.c
diff -u nmh/sbr/check_charset.c:1.4 nmh/sbr/check_charset.c:1.5
--- nmh/sbr/check_charset.c:1.4 Thu Jan 27 16:26:24 2005
+++ nmh/sbr/check_charset.c     Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * check_charset.c -- routines for character sets
  *
- * $Id: check_charset.c,v 1.4 2005/01/27 16:26:24 opk Exp $
+ * $Id: check_charset.c,v 1.5 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -53,7 +53,7 @@
 
        /* US-ASCII is a subset of the ISO-8859-X and UTF-8 character sets */
        if (!strncasecmp("ISO-8859-", mm_charset, 9) ||
-               !strcasecmp("UTF-8", mm_charset)) {
+               !mh_strcasecmp("UTF-8", mm_charset)) {
            alt_charset = "US-ASCII";
            alt_len = strlen (alt_charset);
        }
Index: nmh/sbr/context_del.c
diff -u nmh/sbr/context_del.c:1.3 nmh/sbr/context_del.c:1.4
--- nmh/sbr/context_del.c:1.3   Mon Nov 18 18:25:02 2002
+++ nmh/sbr/context_del.c       Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * context_del.c -- delete an entry from the context/profile list
  *
- * $Id: context_del.c,v 1.3 2002/11/18 18:25:02 jon Exp $
+ * $Id: context_del.c,v 1.4 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -22,7 +22,7 @@
     register struct node *np, *pp;
 
     for (np = m_defs, pp = NULL; np; pp = np, np = np->n_next) {
-       if (!strcasecmp (np->n_name, key)) {
+       if (!mh_strcasecmp (np->n_name, key)) {
            if (!np->n_context)
                admonish (NULL, "bug: context_del(key=\"%s\")", np->n_name);
            if (pp)
Index: nmh/sbr/context_find.c
diff -u nmh/sbr/context_find.c:1.3 nmh/sbr/context_find.c:1.4
--- nmh/sbr/context_find.c:1.3  Mon Nov 18 18:25:02 2002
+++ nmh/sbr/context_find.c      Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * context_find.c -- find an entry in the context/profile list
  *
- * $Id: context_find.c,v 1.3 2002/11/18 18:25:02 jon Exp $
+ * $Id: context_find.c,v 1.4 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -18,7 +18,7 @@
     struct node *np;
 
     for (np = m_defs; np; np = np->n_next)
-       if (!strcasecmp (np->n_name, str))
+       if (!mh_strcasecmp (np->n_name, str))
            return (np->n_field);
 
     return NULL;
Index: nmh/sbr/context_replace.c
diff -u nmh/sbr/context_replace.c:1.4 nmh/sbr/context_replace.c:1.5
--- nmh/sbr/context_replace.c:1.4       Mon Jan  2 03:17:42 2006
+++ nmh/sbr/context_replace.c   Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * context_replace.c -- add/replace an entry in the context/profile list
  *
- * $Id: context_replace.c,v 1.4 2006/01/02 03:17:42 bress Exp $
+ * $Id: context_replace.c,v 1.5 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -38,7 +38,7 @@
      * this key, and replace its value if found.
      */
     for (np = m_defs;; np = np->n_next) {
-       if (!strcasecmp (np->n_name, key)) {
+       if (!mh_strcasecmp (np->n_name, key)) {
            if (strcmp (value, np->n_field)) {
                if (!np->n_context)
                    admonish (NULL, "bug: 
context_replace(key=\"%s\",value=\"%s\")", key, value);
Index: nmh/sbr/fmt_rfc2047.c
diff -u nmh/sbr/fmt_rfc2047.c:1.7 nmh/sbr/fmt_rfc2047.c:1.8
--- nmh/sbr/fmt_rfc2047.c:1.7   Sun Mar  5 14:48:05 2006
+++ nmh/sbr/fmt_rfc2047.c       Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * fmt_rfc2047.c -- decode RFC-2047 header format 
  *
- * $Id: fmt_rfc2047.c,v 1.7 2006/03/05 14:48:05 opk Exp $
+ * $Id: fmt_rfc2047.c,v 1.8 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -135,7 +135,7 @@
                /* .. it can't. We'll use iconv then. */
                *pp = '\0';
                cd = iconv_open(get_charset(), startofmime);
-               fromutf8 = !strcasecmp(startofmime, "UTF-8");
+               fromutf8 = !mh_strcasecmp(startofmime, "UTF-8");
                *pp = '?';
                 if (cd == (iconv_t)-1) continue;
                use_iconv = 1;
Index: nmh/sbr/ruserpass.c
diff -u nmh/sbr/ruserpass.c:1.6 nmh/sbr/ruserpass.c:1.7
--- nmh/sbr/ruserpass.c:1.6     Mon Jan  2 03:17:42 2006
+++ nmh/sbr/ruserpass.c Wed Mar  8 12:14:16 2006
@@ -15,7 +15,7 @@
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- * $Id: ruserpass.c,v 1.6 2006/01/02 03:17:42 bress Exp $
+ * $Id: ruserpass.c,v 1.7 2006/03/08 12:14:16 bress Exp $
  */
 
 #include <h/mh.h>
@@ -92,7 +92,7 @@
                /*
                 * Allow match either for user's host name.
                 */
-               if (strcasecmp(host, tokval) == 0)
+               if (mh_strcasecmp(host, tokval) == 0)
                    goto match;
                continue;
            }
Index: nmh/sbr/strcasecmp.c
diff -u nmh/sbr/strcasecmp.c:1.2 nmh/sbr/strcasecmp.c:1.3
--- nmh/sbr/strcasecmp.c:1.2    Tue Jul  2 22:09:14 2002
+++ nmh/sbr/strcasecmp.c        Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * strcasecmp.c -- compare strings, ignoring case
  *
- * $Id: strcasecmp.c,v 1.2 2002/07/02 22:09:14 kenh Exp $
+ * $Id: strcasecmp.c,v 1.3 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -18,7 +18,7 @@
  */
 
 int
-strcasecmp (const char *s1, const char *s2) 
+mh_strcasecmp (const char *s1, const char *s2) 
 {
     const unsigned char *us1, *us2;
 
@@ -38,7 +38,7 @@
  
 
 int
-strncasecmp (const char *s1, const char *s2, size_t n)
+mh_strncasecmp (const char *s1, const char *s2, size_t n)
 {
     const unsigned char *us1, *us2;
 
Index: nmh/uip/ali.c
diff -u nmh/uip/ali.c:1.8 nmh/uip/ali.c:1.9
--- nmh/uip/ali.c:1.8   Fri Jan  6 21:51:44 2006
+++ nmh/uip/ali.c       Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * ali.c -- list nmh mail aliases
  *
- * $Id: ali.c,v 1.8 2006/01/06 21:51:44 bress Exp $
+ * $Id: ali.c,v 1.9 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -233,8 +233,8 @@
        while ((cp = getname (pp))) {
            if ((np = getm (cp, NULL, 0, norm, NULL)) == NULL)
                continue;
-           if (!strcasecmp (mp->m_host, np->m_host)
-                   && !strcasecmp (mp->m_mbox, np->m_mbox)) {
+           if (!mh_strcasecmp (mp->m_host, np->m_host)
+                   && !mh_strcasecmp (mp->m_mbox, np->m_mbox)) {
                vp = vp ? add (ak->ak_name, add (",", vp))
                    : getcpy (ak->ak_name);
                mnfree (np);
Index: nmh/uip/aliasbr.c
diff -u nmh/uip/aliasbr.c:1.6 nmh/uip/aliasbr.c:1.7
--- nmh/uip/aliasbr.c:1.6       Mon Jan 16 10:00:47 2006
+++ nmh/uip/aliasbr.c   Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * aliasbr.c -- new aliasing mechanism
  *
- * $Id: aliasbr.c,v 1.6 2006/01/16 10:00:47 opk Exp $
+ * $Id: aliasbr.c,v 1.7 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -574,7 +574,7 @@
 #endif /* DBMPWD */
 
     for (hp = homehead; hp; hp = hp->h_next)
-       if (!strcasecmp (name, hp->h_name))
+       if (!mh_strcasecmp (name, hp->h_name))
            return hp;
 
 #ifdef DBMPWD
Index: nmh/uip/mhbuildsbr.c
diff -u nmh/uip/mhbuildsbr.c:1.13 nmh/uip/mhbuildsbr.c:1.14
--- nmh/uip/mhbuildsbr.c:1.13   Tue Feb 21 03:58:31 2006
+++ nmh/uip/mhbuildsbr.c        Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * mhbuildsbr.c -- routines to expand/translate MIME composition files
  *
- * $Id: mhbuildsbr.c,v 1.13 2006/02/21 03:58:31 levine Exp $
+ * $Id: mhbuildsbr.c,v 1.14 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -300,15 +300,15 @@
            compnum++;
 
            /* abort if draft has Mime-Version header field */
-           if (!strcasecmp (name, VRSN_FIELD))
+           if (!mh_strcasecmp (name, VRSN_FIELD))
                adios (NULL, "draft shouldn't contain %s: field", VRSN_FIELD);
 
            /* abort if draft has Content-Transfer-Encoding header field */
-           if (!strcasecmp (name, ENCODING_FIELD))
+           if (!mh_strcasecmp (name, ENCODING_FIELD))
                adios (NULL, "draft shouldn't contain %s: field", 
ENCODING_FIELD);
 
            /* ignore any Content-Type fields in the header */
-           if (!strcasecmp (name, TYPE_FIELD)) {
+           if (!mh_strcasecmp (name, TYPE_FIELD)) {
                while (state == FLDPLUS)
                    state = m_getfld (state, name, buf, sizeof(buf), in);
                goto finish_field;
@@ -497,7 +497,7 @@
            compnum++;
 
            /* Get MIME-Version field */
-           if (!strcasecmp (name, VRSN_FIELD)) {
+           if (!mh_strcasecmp (name, VRSN_FIELD)) {
                int ucmp;
                char c, *cp, *dp;
 
@@ -533,7 +533,7 @@
                for (dp = cp; istoken (*dp); dp++)
                    continue;
                c = *dp, *dp = '\0';
-               ucmp = !strcasecmp (cp, VRSN_VALUE);
+               ucmp = !mh_strcasecmp (cp, VRSN_VALUE);
                *dp = c;
                if (!ucmp)
                    admonish (NULL,
@@ -543,7 +543,7 @@
            }
 
            /* Get Content-Type field */
-           if (!strcasecmp (name, TYPE_FIELD)) {
+           if (!mh_strcasecmp (name, TYPE_FIELD)) {
                char *cp;
                struct str2init *s2i;
                CI ci = &ct->c_ctinfo;
@@ -574,7 +574,7 @@
                 * flag for this content type.
                 */
                for (s2i = str2cts; s2i->si_key; s2i++)
-                   if (!strcasecmp (ci->ci_type, s2i->si_key))
+                   if (!mh_strcasecmp (ci->ci_type, s2i->si_key))
                        break;
                if (!s2i->si_key && !uprf (ci->ci_type, "X-"))
                    s2i++;
@@ -584,7 +584,7 @@
            }
 
            /* Get Content-Transfer-Encoding field */
-           if (!strcasecmp (name, ENCODING_FIELD)) {
+           if (!mh_strcasecmp (name, ENCODING_FIELD)) {
                char *cp, *dp;
                char c;
                struct str2init *s2i;
@@ -620,7 +620,7 @@
                 * for this transfer encoding.
                 */
                for (s2i = str2ces; s2i->si_key; s2i++)
-                   if (!strcasecmp (cp, s2i->si_key))
+                   if (!mh_strcasecmp (cp, s2i->si_key))
                        break;
                if (!s2i->si_key && !uprf (cp, "X-"))
                    s2i++;
@@ -634,7 +634,7 @@
            }
 
            /* Get Content-ID field */
-           if (!strcasecmp (name, ID_FIELD)) {
+           if (!mh_strcasecmp (name, ID_FIELD)) {
                ct->c_id = add (buf, ct->c_id);
                while (state == FLDPLUS) {
                    state = m_getfld (state, name, buf, sizeof(buf), in);
@@ -644,7 +644,7 @@
            }
 
            /* Get Content-Description field */
-           if (!strcasecmp (name, DESCR_FIELD)) {
+           if (!mh_strcasecmp (name, DESCR_FIELD)) {
                ct->c_descr = add (buf, ct->c_descr);
                while (state == FLDPLUS) {
                    state = m_getfld (state, name, buf, sizeof(buf), in);
@@ -654,7 +654,7 @@
            }
 
            /* Get Content-Disposition field */
-           if (!strcasecmp (name, DISPO_FIELD)) {
+           if (!mh_strcasecmp (name, DISPO_FIELD)) {
                ct->c_dispo = add (buf, ct->c_dispo);
                while (state == FLDPLUS) {
                    state = m_getfld (state, name, buf, sizeof(buf), in);
@@ -664,7 +664,7 @@
            }
 
            /* Get Content-MD5 field */
-           if (!strcasecmp (name, MD5_FIELD)) {
+           if (!mh_strcasecmp (name, MD5_FIELD)) {
                char *cp, *dp, *ep;
 
                cp = add (buf, NULL);
@@ -1220,7 +1220,7 @@
 
     /* match subtype */
     for (kv = SubText; kv->kv_key; kv++)
-       if (!strcasecmp (ci->ci_subtype, kv->kv_key))
+       if (!mh_strcasecmp (ci->ci_subtype, kv->kv_key))
            break;
     ct->c_subtype = kv->kv_value;
 
@@ -1234,14 +1234,14 @@
 
     /* scan for charset parameter */
     for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++)
-       if (!strcasecmp (*ap, "charset"))
+       if (!mh_strcasecmp (*ap, "charset"))
            break;
 
     /* check if content specified a character set */
     if (*ap) {
        /* match character set or set to CHARSET_UNKNOWN */
        for (kv = Charset; kv->kv_key; kv++)
-           if (!strcasecmp (*ep, kv->kv_key))
+           if (!mh_strcasecmp (*ep, kv->kv_key))
                break;
        t->tx_charset = kv->kv_value;
     }
@@ -1282,7 +1282,7 @@
 
     /* match subtype */
     for (kv = SubMultiPart; kv->kv_key; kv++)
-       if (!strcasecmp (ci->ci_subtype, kv->kv_key))
+       if (!mh_strcasecmp (ci->ci_subtype, kv->kv_key))
            break;
     ct->c_subtype = kv->kv_value;
 
@@ -1291,7 +1291,7 @@
      * required for multipart messages.
      */
     for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++) {
-       if (!strcasecmp (*ap, "boundary")) {
+       if (!mh_strcasecmp (*ap, "boundary")) {
            bp = *ep;
            break;
        }
@@ -1512,7 +1512,7 @@
 
     /* match subtype */
     for (kv = SubMessage; kv->kv_key; kv++)
-       if (!strcasecmp (ci->ci_subtype, kv->kv_key))
+       if (!mh_strcasecmp (ci->ci_subtype, kv->kv_key))
            break;
     ct->c_subtype = kv->kv_value;
 
@@ -1531,11 +1531,11 @@
 
                /* scan for parameters "id", "number", and "total" */
                for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++) {
-                   if (!strcasecmp (*ap, "id")) {
+                   if (!mh_strcasecmp (*ap, "id")) {
                        p->pm_partid = add (*ep, NULL);
                        continue;
                    }
-                   if (!strcasecmp (*ap, "number")) {
+                   if (!mh_strcasecmp (*ap, "number")) {
                        if (sscanf (*ep, "%d", &p->pm_partno) != 1
                                || p->pm_partno < 1) {
 invalid_param:
@@ -1547,7 +1547,7 @@
                        }
                        continue;
                    }
-                   if (!strcasecmp (*ap, "total")) {
+                   if (!mh_strcasecmp (*ap, "total")) {
                        if (sscanf (*ep, "%d", &p->pm_maxno) != 1
                                || p->pm_maxno < 1)
                            goto invalid_param;
@@ -1668,12 +1668,12 @@
     CI ci = &ct->c_ctinfo;
 
     for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++) {
-       if (!strcasecmp (*ap, "access-type")) {
+       if (!mh_strcasecmp (*ap, "access-type")) {
            struct str2init *s2i;
            CT p = e->eb_content;
 
            for (s2i = str2methods; s2i->si_key; s2i++)
-               if (!strcasecmp (*ep, s2i->si_key))
+               if (!mh_strcasecmp (*ep, s2i->si_key))
                    break;
 
            if (!s2i->si_key) {
@@ -1691,39 +1691,39 @@
                return NOTOK;
            continue;
        }
-       if (!strcasecmp (*ap, "name")) {
+       if (!mh_strcasecmp (*ap, "name")) {
            e->eb_name = *ep;
            continue;
        }
-       if (!strcasecmp (*ap, "permission")) {
+       if (!mh_strcasecmp (*ap, "permission")) {
            e->eb_permission = *ep;
            continue;
        }
-       if (!strcasecmp (*ap, "site")) {
+       if (!mh_strcasecmp (*ap, "site")) {
            e->eb_site = *ep;
            continue;
        }
-       if (!strcasecmp (*ap, "directory")) {
+       if (!mh_strcasecmp (*ap, "directory")) {
            e->eb_dir = *ep;
            continue;
        }
-       if (!strcasecmp (*ap, "mode")) {
+       if (!mh_strcasecmp (*ap, "mode")) {
            e->eb_mode = *ep;
            continue;
        }
-       if (!strcasecmp (*ap, "size")) {
+       if (!mh_strcasecmp (*ap, "size")) {
            sscanf (*ep, "%lu", &e->eb_size);
            continue;
        }
-       if (!strcasecmp (*ap, "server")) {
+       if (!mh_strcasecmp (*ap, "server")) {
            e->eb_server = *ep;
            continue;
        }
-       if (!strcasecmp (*ap, "subject")) {
+       if (!mh_strcasecmp (*ap, "subject")) {
            e->eb_subject = *ep;
            continue;
        }
-       if (composing && !strcasecmp (*ap, "body")) {
+       if (composing && !mh_strcasecmp (*ap, "body")) {
            e->eb_body = getcpy (*ep);
            continue;
        }
@@ -1752,7 +1752,7 @@
 
     /* match subtype */
     for (kv = SubApplication; kv->kv_key; kv++)
-       if (!strcasecmp (ci->ci_subtype, kv->kv_key))
+       if (!mh_strcasecmp (ci->ci_subtype, kv->kv_key))
            break;
     ct->c_subtype = kv->kv_value;
 
@@ -2503,7 +2503,7 @@
        return NOTOK;
     }
 
-    if ((!e->eb_permission || strcasecmp (e->eb_permission, "read-write"))
+    if ((!e->eb_permission || mh_strcasecmp (e->eb_permission, "read-write"))
            && find_cache (NULL, wcachesw, &cachetype, e->eb_content->c_id,
                cachefile, sizeof(cachefile)) != NOTOK) {
        int mask;
@@ -2651,7 +2651,7 @@
     ce->ce_unlink = (*file == NULL);
     caching = 0;
     cachefile[0] = '\0';
-    if ((!e->eb_permission || strcasecmp (e->eb_permission, "read-write"))
+    if ((!e->eb_permission || mh_strcasecmp (e->eb_permission, "read-write"))
            && find_cache (NULL, wcachesw, &cachetype, e->eb_content->c_id,
                cachefile, sizeof(cachefile)) != NOTOK) {
        if (*file == NULL) {
@@ -2687,7 +2687,7 @@
        vec[vecp++] = e->eb_dir;
        vec[vecp++] = e->eb_name;
        vec[vecp++] = ce->ce_file,
-       vec[vecp++] = e->eb_mode && !strcasecmp (e->eb_mode, "ascii")
+       vec[vecp++] = e->eb_mode && !mh_strcasecmp (e->eb_mode, "ascii")
                        ? "ascii" : "binary";
        vec[vecp] = NULL;
 
@@ -2724,7 +2724,7 @@
     else
        if (ftp_get (e->eb_site, user, pass, e->eb_dir, e->eb_name,
                     ce->ce_file,
-                    e->eb_mode && !strcasecmp (e->eb_mode, "ascii"), 0)
+                    e->eb_mode && !mh_strcasecmp (e->eb_mode, "ascii"), 0)
                == NOTOK)
            goto losing_ftp;
 #endif
@@ -3056,7 +3056,7 @@
            done (1);
 
        for (s2i = str2cts; s2i->si_key; s2i++)
-           if (!strcasecmp (ci->ci_type, s2i->si_key))
+           if (!mh_strcasecmp (ci->ci_type, s2i->si_key))
                break;
        if (!s2i->si_key && !uprf (ci->ci_type, "X-"))
            s2i++;
@@ -3066,7 +3066,7 @@
         */
        switch (ct->c_type = s2i->si_val) {
        case CT_MESSAGE:
-           if (!strcasecmp (ci->ci_subtype, "rfc822")) {
+           if (!mh_strcasecmp (ci->ci_subtype, "rfc822")) {
                ct->c_encoding = CE_7BIT;
                goto call_init;
            }
@@ -3102,7 +3102,7 @@
 
     /* check directive against the list of MIME types */
     for (s2i = str2cts; s2i->si_key; s2i++)
-       if (!strcasecmp (ci->ci_type, s2i->si_key))
+       if (!mh_strcasecmp (ci->ci_type, s2i->si_key))
            break;
 
     /*
@@ -3123,10 +3123,10 @@
            /* NOTREACHED */
 
        case CT_MESSAGE:
-           if (!strcasecmp (ci->ci_subtype, "partial"))
+           if (!mh_strcasecmp (ci->ci_subtype, "partial"))
                adios (NULL, "sorry, \"#%s/%s\" isn't supported",
                       ci->ci_type, ci->ci_subtype);
-           if (!strcasecmp (ci->ci_subtype, "external-body"))
+           if (!mh_strcasecmp (ci->ci_subtype, "external-body"))
                adios (NULL, "use \"address@hidden/subtype ... [] ...\" instead 
of \"#%s/%s\"",
                       ci->ci_type, ci->ci_subtype);
 use_forw:
@@ -3233,7 +3233,7 @@
      * Message directive
      * #forw [+folder] [msgs]
      */
-    if (!strcasecmp (ci->ci_type, "forw")) {
+    if (!mh_strcasecmp (ci->ci_type, "forw")) {
        int msgnum;
        char *folder, *arguments[MAXARGS];
        struct msgs *mp;
@@ -3339,7 +3339,7 @@
     /*
      * #end
      */
-    if (!strcasecmp (ci->ci_type, "end")) {
+    if (!mh_strcasecmp (ci->ci_type, "end")) {
        free_content (ct);
        *ctp = NULL;
        return DONE;
@@ -3348,14 +3348,14 @@
     /*
      * #begin [ alternative | parallel ]
      */
-    if (!strcasecmp (ci->ci_type, "begin")) {
+    if (!mh_strcasecmp (ci->ci_type, "begin")) {
        if (!ci->ci_magic) {
            vrsn = MULTI_MIXED;
            cp = SubMultiPart[vrsn - 1].kv_key;
-       } else if (!strcasecmp (ci->ci_magic, "alternative")) {
+       } else if (!mh_strcasecmp (ci->ci_magic, "alternative")) {
            vrsn = MULTI_ALTERNATE;
            cp = SubMultiPart[vrsn - 1].kv_key;
-       } else if (!strcasecmp (ci->ci_magic, "parallel")) {
+       } else if (!mh_strcasecmp (ci->ci_magic, "parallel")) {
            vrsn = MULTI_PARALLEL;
            cp = SubMultiPart[vrsn - 1].kv_key;
        } else if (uprf (ci->ci_magic, "digest")) {
@@ -3973,7 +3973,7 @@
      * the end of the Content-Type line.
      */
     for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++) {
-       if (mailbody && !strcasecmp (*ap, "body"))
+       if (mailbody && !mh_strcasecmp (*ap, "body"))
            continue;
 
        vp = add (";", vp);
Index: nmh/uip/mhlsbr.c
diff -u nmh/uip/mhlsbr.c:1.9 nmh/uip/mhlsbr.c:1.10
--- nmh/uip/mhlsbr.c:1.9        Mon Jan  2 03:25:18 2006
+++ nmh/uip/mhlsbr.c    Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * mhlsbr.c -- main routines for nmh message lister
  *
- * $Id: mhlsbr.c,v 1.9 2006/01/02 03:25:18 bress Exp $
+ * $Id: mhlsbr.c,v 1.10 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -563,7 +563,7 @@
                 * Split this list of fields to ignore, and copy
                 * it to the end of the current "ignores" list.
                 */
-               if (!strcasecmp (name, "ignores")) {
+               if (!mh_strcasecmp (name, "ignores")) {
                    char **tmparray, **p;
                    int n = 0;
 
@@ -667,17 +667,17 @@
        return 0;
     strncpy (name, parse(), sizeof(name));
 
-    if (!strcasecmp (name, "component")) {
+    if (!mh_strcasecmp (name, "component")) {
        if (ptos (name, &c1->c_text))
            return 1;
        c1->c_flags &= ~NOCOMPONENT;
        return 0;
     }
 
-    if (!strcasecmp (name, "overflowtext"))
+    if (!mh_strcasecmp (name, "overflowtext"))
        return ptos (name, &c1->c_ovtxt);
 
-    if (!strcasecmp (name, "formatfield")) {
+    if (!mh_strcasecmp (name, "formatfield")) {
        char *nfs;
 
        if (ptos (name, &cp))
@@ -688,7 +688,7 @@
        return 0;
     }
 
-    if (!strcasecmp (name, "decode")) {
+    if (!mh_strcasecmp (name, "decode")) {
        char *nfs;
 
        nfs = new_fs (NULL, NULL, "%(decode{text})");
@@ -697,21 +697,21 @@
        return 0;
     }
 
-    if (!strcasecmp (name, "offset"))
+    if (!mh_strcasecmp (name, "offset"))
        return ptoi (name, &c1->c_offset);
-    if (!strcasecmp (name, "overflowoffset"))
+    if (!mh_strcasecmp (name, "overflowoffset"))
        return ptoi (name, &c1->c_ovoff);
-    if (!strcasecmp (name, "width"))
+    if (!mh_strcasecmp (name, "width"))
        return ptoi (name, &c1->c_width);
-    if (!strcasecmp (name, "compwidth"))
+    if (!mh_strcasecmp (name, "compwidth"))
        return ptoi (name, &c1->c_cwidth);
-    if (!strcasecmp (name, "length"))
+    if (!mh_strcasecmp (name, "length"))
        return ptoi (name, &c1->c_length);
-    if (!strcasecmp (name, "nodashstuffing"))
+    if (!mh_strcasecmp (name, "nodashstuffing"))
        return (dashstuff = -1);
 
     for (ap = triples; ap->t_name; ap++)
-       if (!strcasecmp (ap->t_name, name)) {
+       if (!mh_strcasecmp (ap->t_name, name)) {
            c1->c_flags |= ap->t_on;
            c1->c_flags &= ~ap->t_off;
            return 0;
@@ -904,7 +904,7 @@
            case FLD: 
            case FLDPLUS: 
                for (ip = ignores; *ip; ip++)
-                   if (!strcasecmp (name, *ip)) {
+                   if (!mh_strcasecmp (name, *ip)) {
                        while (state == FLDPLUS)
                            state = m_getfld (state, name, buf, sizeof(buf), 
fp);
                        break;
@@ -913,12 +913,12 @@
                    continue;
 
                for (c2 = fmthd; c2; c2 = c2->c_next)
-                   if (!strcasecmp (c2->c_name, name))
+                   if (!mh_strcasecmp (c2->c_name, name))
                        break;
                c1 = NULL;
                if (!((c3 = c2 ? c2 : &global)->c_flags & SPLIT))
                    for (c1 = msghd; c1; c1 = c1->c_next)
-                       if (!strcasecmp (c1->c_name, c3->c_name)) {
+                       if (!mh_strcasecmp (c1->c_name, c3->c_name)) {
                            c1->c_text =
                                mcomp_add (c1->c_flags, buf, c1->c_text);
                            break;
@@ -941,7 +941,7 @@
                        putcomp (c1, c1, ONECOMP);
                        continue;
                    }
-                   if (!strcasecmp (c1->c_name, "messagename")) {
+                   if (!mh_strcasecmp (c1->c_name, "messagename")) {
                        holder.c_text = concat ("(Message ", mname, ")\n",
                                            NULL);
                        putcomp (c1, &holder, ONECOMP);
@@ -949,13 +949,13 @@
                        holder.c_text = NULL;
                        continue;
                    }
-                   if (!strcasecmp (c1->c_name, "extras")) {
+                   if (!mh_strcasecmp (c1->c_name, "extras")) {
                        for (c2 = msghd; c2; c2 = c2->c_next)
                            if (c2->c_flags & EXTRA)
                                putcomp (c1, c2, TWOCOMP);
                        continue;
                    }
-                   if (dobody && !strcasecmp (c1->c_name, "body")) {
+                   if (dobody && !mh_strcasecmp (c1->c_name, "body")) {
                        holder.c_text = mh_xmalloc (sizeof(buf));
                        strncpy (holder.c_text, buf, sizeof(buf));
                        while (state == BODY) {
@@ -968,7 +968,7 @@
                        continue;
                    }
                    for (c2 = msghd; c2; c2 = c2->c_next)
-                       if (!strcasecmp (c2->c_name, c1->c_name)) {
+                       if (!mh_strcasecmp (c2->c_name, c1->c_name)) {
                            putcomp (c1, c2, ONECOMP);
                            if (!(c1->c_flags & SPLIT))
                                break;
@@ -1006,7 +1006,7 @@
     struct pair *ap;
 
     for (ap = pairs; ap->p_name; ap++)
-       if (!strcasecmp (ap->p_name, name))
+       if (!mh_strcasecmp (ap->p_name, name))
            return (ap->p_flags);
 
     return 0;
Index: nmh/uip/mhmisc.c
diff -u nmh/uip/mhmisc.c:1.6 nmh/uip/mhmisc.c:1.7
--- nmh/uip/mhmisc.c:1.6        Fri Jan  6 21:51:44 2006
+++ nmh/uip/mhmisc.c    Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * mhparse.c -- misc routines to process MIME messages
  *
- * $Id: mhmisc.c,v 1.6 2006/01/06 21:51:44 bress Exp $
+ * $Id: mhmisc.c,v 1.7 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -74,7 +74,7 @@
 
     snprintf (buffer, sizeof(buffer), "%s/%s", ci->ci_type, ci->ci_subtype);
     for (ap = types; *ap; ap++)
-       if (!strcasecmp (*ap, ci->ci_type) || !strcasecmp (*ap, buffer))
+       if (!mh_strcasecmp (*ap, ci->ci_type) || !mh_strcasecmp (*ap, buffer))
            return 1;
 
     return 0;
Index: nmh/uip/mhoutsbr.c
diff -u nmh/uip/mhoutsbr.c:1.7 nmh/uip/mhoutsbr.c:1.8
--- nmh/uip/mhoutsbr.c:1.7      Tue Sep 30 16:58:43 2003
+++ nmh/uip/mhoutsbr.c  Wed Mar  8 12:14:16 2006
@@ -3,7 +3,7 @@
  * mhoutsbr.c -- routines to output MIME messages
  *            -- given a Content structure
  *
- * $Id: mhoutsbr.c,v 1.7 2003/09/30 16:58:43 gbburkhardt Exp $
+ * $Id: mhoutsbr.c,v 1.8 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -263,7 +263,7 @@
 
            case 'N':
                for (ap = ci2->ci_attrs, ep = ci2->ci_values; *ap; ap++, ep++)
-                   if (!strcasecmp (*ap, "name")) {
+                   if (!mh_strcasecmp (*ap, "name")) {
                        fprintf (out, "%s", *ep);
                        break;
                    }
Index: nmh/uip/mhparam.c
diff -u nmh/uip/mhparam.c:1.4 nmh/uip/mhparam.c:1.5
--- nmh/uip/mhparam.c:1.4       Tue Jul  2 22:09:14 2002
+++ nmh/uip/mhparam.c   Wed Mar  8 12:14:16 2006
@@ -5,7 +5,7 @@
  * Originally contributed by
  * Jeffrey C Honig <address@hidden>
  *
- * $Id: mhparam.c,v 1.4 2002/07/02 22:09:14 kenh Exp $
+ * $Id: mhparam.c,v 1.5 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -191,7 +191,7 @@
     struct proc *ps;
 
     for (ps = procs; ps->p_name; ps++)
-       if (!strcasecmp (ps->p_name, str))
+       if (!mh_strcasecmp (ps->p_name, str))
            return (*ps->p_field);
 
     return NULL;
Index: nmh/uip/mhparse.c
diff -u nmh/uip/mhparse.c:1.13 nmh/uip/mhparse.c:1.14
--- nmh/uip/mhparse.c:1.13      Mon Jan  2 03:17:42 2006
+++ nmh/uip/mhparse.c   Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * mhparse.c -- routines to parse the contents of MIME messages
  *
- * $Id: mhparse.c,v 1.13 2006/01/02 03:17:42 bress Exp $
+ * $Id: mhparse.c,v 1.14 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -375,7 +375,7 @@
     hp = ct->c_first_hf;       /* start at first header field */
     while (hp) {
        /* Get MIME-Version field */
-       if (!strcasecmp (hp->name, VRSN_FIELD)) {
+       if (!mh_strcasecmp (hp->name, VRSN_FIELD)) {
            int ucmp;
            char c, *cp, *dp;
 
@@ -407,14 +407,14 @@
                continue;
            c = *dp;
            *dp = '\0';
-           ucmp = !strcasecmp (cp, VRSN_VALUE);
+           ucmp = !mh_strcasecmp (cp, VRSN_VALUE);
            *dp = c;
            if (!ucmp) {
                admonish (NULL, "message %s has unknown value for %s: field 
(%s)",
                ct->c_file, VRSN_FIELD, cp);
            }
        }
-       else if (!strcasecmp (hp->name, TYPE_FIELD)) {
+       else if (!mh_strcasecmp (hp->name, TYPE_FIELD)) {
        /* Get Content-Type field */
            struct str2init *s2i;
            CI ci = &ct->c_ctinfo;
@@ -435,14 +435,14 @@
             * flag for this content type.
             */
            for (s2i = str2cts; s2i->si_key; s2i++)
-               if (!strcasecmp (ci->ci_type, s2i->si_key))
+               if (!mh_strcasecmp (ci->ci_type, s2i->si_key))
                    break;
            if (!s2i->si_key && !uprf (ci->ci_type, "X-"))
                s2i++;
            ct->c_type = s2i->si_val;
            ct->c_ctinitfnx = s2i->si_init;
        }
-       else if (!strcasecmp (hp->name, ENCODING_FIELD)) {
+       else if (!mh_strcasecmp (hp->name, ENCODING_FIELD)) {
        /* Get Content-Transfer-Encoding field */
            char c, *cp, *dp;
            struct str2init *s2i;
@@ -472,7 +472,7 @@
             * for this transfer encoding.
             */
            for (s2i = str2ces; s2i->si_key; s2i++)
-               if (!strcasecmp (cp, s2i->si_key))
+               if (!mh_strcasecmp (cp, s2i->si_key))
                    break;
            if (!s2i->si_key && !uprf (cp, "X-"))
                s2i++;
@@ -483,7 +483,7 @@
            if (s2i->si_init && (*s2i->si_init) (ct) == NOTOK)
                goto out;
        }
-       else if (!strcasecmp (hp->name, MD5_FIELD)) {
+       else if (!mh_strcasecmp (hp->name, MD5_FIELD)) {
        /* Get Content-MD5 field */
            char *cp, *dp, *ep;
 
@@ -522,11 +522,11 @@
            free (ep);
            ct->c_digested++;
        }
-       else if (!strcasecmp (hp->name, ID_FIELD)) {
+       else if (!mh_strcasecmp (hp->name, ID_FIELD)) {
        /* Get Content-ID field */
            ct->c_id = add (hp->value, ct->c_id);
        }
-       else if (!strcasecmp (hp->name, DESCR_FIELD)) {
+       else if (!mh_strcasecmp (hp->name, DESCR_FIELD)) {
        /* Get Content-Description field */
            ct->c_descr = add (hp->value, ct->c_descr);
        }
@@ -907,7 +907,7 @@
 
     /* match subtype */
     for (kv = SubText; kv->kv_key; kv++)
-       if (!strcasecmp (ci->ci_subtype, kv->kv_key))
+       if (!mh_strcasecmp (ci->ci_subtype, kv->kv_key))
            break;
     ct->c_subtype = kv->kv_value;
 
@@ -918,7 +918,7 @@
 
     /* scan for charset parameter */
     for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++)
-       if (!strcasecmp (*ap, "charset"))
+       if (!mh_strcasecmp (*ap, "charset"))
            break;
 
     if (*ap)
@@ -928,7 +928,7 @@
 
     /* match character set, or set to unknown */
     for (kv = Charset; kv->kv_key; kv++)
-       if (!strcasecmp (chset, kv->kv_key))
+       if (!mh_strcasecmp (chset, kv->kv_key))
            break;
     t->tx_charset = kv->kv_value;
 
@@ -979,7 +979,7 @@
 
     /* match subtype */
     for (kv = SubMultiPart; kv->kv_key; kv++)
-       if (!strcasecmp (ci->ci_subtype, kv->kv_key))
+       if (!mh_strcasecmp (ci->ci_subtype, kv->kv_key))
            break;
     ct->c_subtype = kv->kv_value;
 
@@ -989,7 +989,7 @@
      */
     bp = 0;
     for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++) {
-       if (!strcasecmp (*ap, "boundary")) {
+       if (!mh_strcasecmp (*ap, "boundary")) {
            bp = *ep;
            break;
        }
@@ -1209,7 +1209,7 @@
 
     /* match subtype */
     for (kv = SubMessage; kv->kv_key; kv++)
-       if (!strcasecmp (ci->ci_subtype, kv->kv_key))
+       if (!mh_strcasecmp (ci->ci_subtype, kv->kv_key))
            break;
     ct->c_subtype = kv->kv_value;
 
@@ -1228,11 +1228,11 @@
 
                /* scan for parameters "id", "number", and "total" */
                for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++) {
-                   if (!strcasecmp (*ap, "id")) {
+                   if (!mh_strcasecmp (*ap, "id")) {
                        p->pm_partid = add (*ep, NULL);
                        continue;
                    }
-                   if (!strcasecmp (*ap, "number")) {
+                   if (!mh_strcasecmp (*ap, "number")) {
                        if (sscanf (*ep, "%d", &p->pm_partno) != 1
                                || p->pm_partno < 1) {
 invalid_param:
@@ -1244,7 +1244,7 @@
                        }
                        continue;
                    }
-                   if (!strcasecmp (*ap, "total")) {
+                   if (!mh_strcasecmp (*ap, "total")) {
                        if (sscanf (*ep, "%d", &p->pm_maxno) != 1
                                || p->pm_maxno < 1)
                            goto invalid_param;
@@ -1364,12 +1364,12 @@
     CI ci = &ct->c_ctinfo;
 
     for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++) {
-       if (!strcasecmp (*ap, "access-type")) {
+       if (!mh_strcasecmp (*ap, "access-type")) {
            struct str2init *s2i;
            CT p = e->eb_content;
 
            for (s2i = str2methods; s2i->si_key; s2i++)
-               if (!strcasecmp (*ep, s2i->si_key))
+               if (!mh_strcasecmp (*ep, s2i->si_key))
                    break;
            if (!s2i->si_key) {
                e->eb_access = *ep;
@@ -1386,39 +1386,39 @@
                return NOTOK;
            continue;
        }
-       if (!strcasecmp (*ap, "name")) {
+       if (!mh_strcasecmp (*ap, "name")) {
            e->eb_name = *ep;
            continue;
        }
-       if (!strcasecmp (*ap, "permission")) {
+       if (!mh_strcasecmp (*ap, "permission")) {
            e->eb_permission = *ep;
            continue;
        }
-       if (!strcasecmp (*ap, "site")) {
+       if (!mh_strcasecmp (*ap, "site")) {
            e->eb_site = *ep;
            continue;
        }
-       if (!strcasecmp (*ap, "directory")) {
+       if (!mh_strcasecmp (*ap, "directory")) {
            e->eb_dir = *ep;
            continue;
        }
-       if (!strcasecmp (*ap, "mode")) {
+       if (!mh_strcasecmp (*ap, "mode")) {
            e->eb_mode = *ep;
            continue;
        }
-       if (!strcasecmp (*ap, "size")) {
+       if (!mh_strcasecmp (*ap, "size")) {
            sscanf (*ep, "%lu", &e->eb_size);
            continue;
        }
-       if (!strcasecmp (*ap, "server")) {
+       if (!mh_strcasecmp (*ap, "server")) {
            e->eb_server = *ep;
            continue;
        }
-       if (!strcasecmp (*ap, "subject")) {
+       if (!mh_strcasecmp (*ap, "subject")) {
            e->eb_subject = *ep;
            continue;
        }
-       if (composing && !strcasecmp (*ap, "body")) {
+       if (composing && !mh_strcasecmp (*ap, "body")) {
            e->eb_body = getcpy (*ep);
            continue;
        }
@@ -1447,7 +1447,7 @@
 
     /* match subtype */
     for (kv = SubApplication; kv->kv_key; kv++)
-       if (!strcasecmp (ci->ci_subtype, kv->kv_key))
+       if (!mh_strcasecmp (ci->ci_subtype, kv->kv_key))
            break;
     ct->c_subtype = kv->kv_value;
 
@@ -2225,7 +2225,7 @@
        return NOTOK;
     }
 
-    if ((!e->eb_permission || strcasecmp (e->eb_permission, "read-write"))
+    if ((!e->eb_permission || mh_strcasecmp (e->eb_permission, "read-write"))
            && find_cache (NULL, wcachesw, &cachetype, e->eb_content->c_id,
                cachefile, sizeof(cachefile)) != NOTOK) {
        int mask;
@@ -2373,7 +2373,7 @@
     ce->ce_unlink = (*file == NULL);
     caching = 0;
     cachefile[0] = '\0';
-    if ((!e->eb_permission || strcasecmp (e->eb_permission, "read-write"))
+    if ((!e->eb_permission || mh_strcasecmp (e->eb_permission, "read-write"))
            && find_cache (NULL, wcachesw, &cachetype, e->eb_content->c_id,
                cachefile, sizeof(cachefile)) != NOTOK) {
        if (*file == NULL) {
@@ -2409,7 +2409,7 @@
        vec[vecp++] = e->eb_dir;
        vec[vecp++] = e->eb_name;
        vec[vecp++] = ce->ce_file,
-       vec[vecp++] = e->eb_mode && !strcasecmp (e->eb_mode, "ascii")
+       vec[vecp++] = e->eb_mode && !mh_strcasecmp (e->eb_mode, "ascii")
                        ? "ascii" : "binary";
        vec[vecp] = NULL;
 
@@ -2446,7 +2446,7 @@
     else
        if (ftp_get (e->eb_site, user, pass, e->eb_dir, e->eb_name,
                     ce->ce_file,
-                    e->eb_mode && !strcasecmp (e->eb_mode, "ascii"), 0)
+                    e->eb_mode && !mh_strcasecmp (e->eb_mode, "ascii"), 0)
                == NOTOK)
            goto losing_ftp;
 #endif
Index: nmh/uip/mhstoresbr.c
diff -u nmh/uip/mhstoresbr.c:1.12 nmh/uip/mhstoresbr.c:1.13
--- nmh/uip/mhstoresbr.c:1.12   Mon Feb 20 03:09:08 2006
+++ nmh/uip/mhstoresbr.c        Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * mhstoresbr.c -- routines to save/store the contents of MIME messages
  *
- * $Id: mhstoresbr.c,v 1.12 2006/02/20 03:09:08 bress Exp $
+ * $Id: mhstoresbr.c,v 1.13 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -225,8 +225,8 @@
 
        for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++) {
            /* check for "type=tar" attribute */
-           if (!strcasecmp (*ap, "type")) {
-               if (strcasecmp (*ep, "tar"))
+           if (!mh_strcasecmp (*ap, "type")) {
+               if (mh_strcasecmp (*ep, "tar"))
                    break;
 
                tarP = 1;
@@ -234,14 +234,14 @@
            }
 
            /* check for "conversions=compress" attribute */
-           if ((!strcasecmp (*ap, "conversions") || !strcasecmp (*ap, 
"x-conversions"))
-               && (!strcasecmp (*ep, "compress") || !strcasecmp (*ep, 
"x-compress"))) {
+           if ((!mh_strcasecmp (*ap, "conversions") || !mh_strcasecmp (*ap, 
"x-conversions"))
+               && (!mh_strcasecmp (*ep, "compress") || !mh_strcasecmp (*ep, 
"x-compress"))) {
                zP = 1;
                continue;
            }
            /* check for "conversions=gzip" attribute */
-           if ((!strcasecmp (*ap, "conversions") || !strcasecmp (*ap, 
"x-conversions"))
-               && (!strcasecmp (*ep, "gzip") || !strcasecmp (*ep, "x-gzip"))) {
+           if ((!mh_strcasecmp (*ap, "conversions") || !mh_strcasecmp (*ap, 
"x-conversions"))
+               && (!mh_strcasecmp (*ep, "gzip") || !mh_strcasecmp (*ep, 
"x-gzip"))) {
                gzP = 1;
                continue;
            }
@@ -1041,7 +1041,7 @@
      * the storeproc.
      */
     for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++) {
-       if (!strcasecmp (*ap, "name")
+       if (!mh_strcasecmp (*ap, "name")
            && *(cp = *ep) != '/'
            && *cp != '.'
            && *cp != '|'
@@ -1072,10 +1072,10 @@
         * messages are not copied.
         */
        if (!uprf (hp->name, XXX_FIELD_PRF)
-               && strcasecmp (hp->name, VRSN_FIELD)
-               && strcasecmp (hp->name, "Subject")
-               && strcasecmp (hp->name, "Encrypted")
-               && strcasecmp (hp->name, "Message-ID"))
+               && mh_strcasecmp (hp->name, VRSN_FIELD)
+               && mh_strcasecmp (hp->name, "Subject")
+               && mh_strcasecmp (hp->name, "Encrypted")
+               && mh_strcasecmp (hp->name, "Message-ID"))
            fprintf (out, "%s:%s", hp->name, hp->value);
        hp = hp->next;  /* next header field */
     }
Index: nmh/uip/msh.c
diff -u nmh/uip/msh.c:1.9 nmh/uip/msh.c:1.10
--- nmh/uip/msh.c:1.9   Mon Jan  2 03:25:18 2006
+++ nmh/uip/msh.c       Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * msh.c -- The nmh shell
  *
- * $Id: msh.c,v 1.9 2006/01/02 03:25:18 bress Exp $
+ * $Id: msh.c,v 1.10 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -1225,7 +1225,7 @@
            case FLD: 
            case FLDEOF: 
            case FLDPLUS: 
-               if (!strcasecmp (name, BBoard_ID)) {
+               if (!mh_strcasecmp (name, BBoard_ID)) {
                    bp = getcpy (buf);
                    while (state == FLDPLUS) {
                        state = m_getfld (state, name, buf, sizeof(buf), zp);
Index: nmh/uip/mshcmds.c
diff -u nmh/uip/mshcmds.c:1.13 nmh/uip/mshcmds.c:1.14
--- nmh/uip/mshcmds.c:1.13      Mon Jan  2 03:17:42 2006
+++ nmh/uip/mshcmds.c   Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * mshcmds.c -- command handlers in msh
  *
- * $Id: mshcmds.c,v 1.13 2006/01/02 03:17:42 bress Exp $
+ * $Id: mshcmds.c,v 1.14 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -2310,10 +2310,10 @@
     char *cp, *proc = showproc, buf[BUFSIZ];
     char *msgs[MAXARGS], *vec[MAXARGS];
 
-    if (!strcasecmp (cmd_name, "next"))
+    if (!mh_strcasecmp (cmd_name, "next"))
        mode = 1;
     else
-       if (!strcasecmp (cmd_name, "prev"))
+       if (!mh_strcasecmp (cmd_name, "prev"))
            mode = -1;
     while ((cp = *args++)) {
        if (*cp == '-')
@@ -2565,7 +2565,7 @@
            /*
             * Check Content-Type field
             */
-           if (!strcasecmp (name, TYPE_FIELD)) {
+           if (!mh_strcasecmp (name, TYPE_FIELD)) {
                int passno;
                char c;
 
@@ -2620,7 +2620,7 @@
                if (!*bp)
                    goto invalid;
                if (passno > 1) {
-                   if ((result = (strcasecmp (bp, "plain") != 0)))
+                   if ((result = (mh_strcasecmp (bp, "plain") != 0)))
                        goto out;
                    *dp = c;
                    for (dp++; isspace (*dp); dp++)
@@ -2652,7 +2652,7 @@
                    /* Check the character set */
                    result = !check_charset (dp, strlen (dp));
                } else {
-                   if (!(result = (strcasecmp (bp, "text") != 0))) {
+                   if (!(result = (mh_strcasecmp (bp, "text") != 0))) {
                        *dp = c;
                        bp = dp;
                        passno = 2;
@@ -2671,7 +2671,7 @@
            /*
             * Check Content-Transfer-Encoding field
             */
-           if (!strcasecmp (name, ENCODING_FIELD)) {
+           if (!mh_strcasecmp (name, ENCODING_FIELD)) {
                cp = add (buf, NULL);
                while (state == FLDPLUS) {
                    state = m_getfld (state, name, buf, sizeof buf, fp);
@@ -2682,9 +2682,9 @@
                for (dp = bp; istoken (*dp); dp++)
                    continue;
                *dp = '\0';
-               result = (strcasecmp (bp, "7bit")
-                      && strcasecmp (bp, "8bit")
-                      && strcasecmp (bp, "binary"));
+               result = (mh_strcasecmp (bp, "7bit")
+                      && mh_strcasecmp (bp, "8bit")
+                      && mh_strcasecmp (bp, "binary"));
 
                free (cp);
                if (result) {
@@ -2868,7 +2868,7 @@
            case FLD: 
            case FLDEOF: 
            case FLDPLUS: 
-               if (!strcasecmp (name, datesw)) {
+               if (!mh_strcasecmp (name, datesw)) {
                    bp = getcpy (buf);
                    while (state == FLDPLUS) {
                        state = m_getfld (state, name, buf, sizeof buf, zp);
@@ -2885,7 +2885,7 @@
                        break;          /* all done! */
                    gotdate++;
                }
-               else if (subjsw && !strcasecmp(name, subjsw)) {
+               else if (subjsw && !mh_strcasecmp(name, subjsw)) {
                    bp = getcpy (buf);
                    while (state == FLDPLUS) {
                        state = m_getfld (state, name, buf, sizeof buf, zp);
@@ -2965,7 +2965,7 @@
     if (s) {
        cp = s;
        dp = s; /* dst pointer */
-       if (!strcasecmp (subj, "subject"))
+       if (!mh_strcasecmp (subj, "subject"))
            while ((c = *cp)) {
                if (! isspace(c)) {
                    if(uprf(cp, "re:"))
Index: nmh/uip/picksbr.c
diff -u nmh/uip/picksbr.c:1.8 nmh/uip/picksbr.c:1.9
--- nmh/uip/picksbr.c:1.8       Fri Jan  6 21:51:44 2006
+++ nmh/uip/picksbr.c   Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * picksbr.c -- routines to help pick along...
  *
- * $Id: picksbr.c,v 1.8 2006/01/06 21:51:44 bress Exp $
+ * $Id: picksbr.c,v 1.9 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -869,19 +869,19 @@
     register struct tws *tw;
 
     time (&clock);
-    if (!strcasecmp (ap, "today"))
+    if (!mh_strcasecmp (ap, "today"))
        return dlocaltime (&clock);
-    if (!strcasecmp (ap, "yesterday")) {
+    if (!mh_strcasecmp (ap, "yesterday")) {
        clock -= (long) (60 * 60 * 24);
        return dlocaltime (&clock);
     }
-    if (!strcasecmp (ap, "tomorrow")) {
+    if (!mh_strcasecmp (ap, "tomorrow")) {
        clock += (long) (60 * 60 * 24);
        return dlocaltime (&clock);
     }
 
     for (i = 0; tw_ldotw[i]; i++)
-       if (!strcasecmp (ap, tw_ldotw[i]))
+       if (!mh_strcasecmp (ap, tw_ldotw[i]))
            break;
     if (tw_ldotw[i]) {
        if ((tw = dlocaltime (&clock)) == NULL)
@@ -922,7 +922,7 @@
                    state = m_getfld (state, name, buf, sizeof buf, fp);
                    bp = add (buf, bp);
                }
-               if (!strcasecmp (name, n->n_datef))
+               if (!mh_strcasecmp (name, n->n_datef))
                    break;
                if (state != FLDEOF)
                    continue;
Index: nmh/uip/popsbr.c
diff -u nmh/uip/popsbr.c:1.15 nmh/uip/popsbr.c:1.16
--- nmh/uip/popsbr.c:1.15       Mon Jan  2 03:25:18 2006
+++ nmh/uip/popsbr.c    Wed Mar  8 12:14:16 2006
@@ -1,7 +1,7 @@
 /*
  * popsbr.c -- POP client subroutines
  *
- * $Id: popsbr.c,v 1.15 2006/01/02 03:25:18 bress Exp $
+ * $Id: popsbr.c,v 1.16 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -928,20 +928,20 @@
     snprintf (buffer, sizeof(buffer), fmt, a, b, c, d);
     ap = brkstring (buffer, " ", "\n");        /* a hack, i know... */
 
-    if (!strcasecmp(ap[0], "x-bboards")) {     /* XTND "X-BBOARDS group */
+    if (!mh_strcasecmp(ap[0], "x-bboards")) {  /* XTND "X-BBOARDS group */
        /* most of these parameters are meaningless under NNTP. 
         * bbc.c was modified to set AKA and LEADERS as appropriate,
         * the rest are left blank.
         */
        return OK;
     }
-    if (!strcasecmp (ap[0], "archive") && ap[1]) {
+    if (!mh_strcasecmp (ap[0], "archive") && ap[1]) {
        snprintf (xtnd_name, sizeof(xtnd_name), "%s", ap[1]);   /* save the 
name */
        xtnd_last = 0;
        xtnd_first = 1;         /* setup to fail in pop_stat */
        return OK;
     }
-    if (!strcasecmp (ap[0], "bboards")) {
+    if (!mh_strcasecmp (ap[0], "bboards")) {
 
        if (ap[1]) {                    /* XTND "BBOARDS group" */
            snprintf (xtnd_name, sizeof(xtnd_name), "%s", ap[1]);       /* save 
the name */
Index: nmh/uip/post.c
diff -u nmh/uip/post.c:1.18 nmh/uip/post.c:1.19
--- nmh/uip/post.c:1.18 Wed Jan 18 00:09:00 2006
+++ nmh/uip/post.c      Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * post.c -- enter messages into the mail transport system
  *
- * $Id: post.c,v 1.18 2006/01/18 00:09:00 levine Exp $
+ * $Id: post.c,v 1.19 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -946,7 +946,7 @@
     struct headers *h;
 
     for (h = table; h->value; h++)
-       if (!strcasecmp (header, h->value))
+       if (!mh_strcasecmp (header, h->value))
            return (h - table);
 
     return NOTOK;
@@ -1048,8 +1048,8 @@
            : &netaddrs;
            mp->m_next;
            mp = mp->m_next)
-       if (!strcasecmp (np->m_host, mp->m_next->m_host)
-               && !strcasecmp (np->m_mbox, mp->m_next->m_mbox)
+       if (!mh_strcasecmp (np->m_host, mp->m_next->m_host)
+               && !mh_strcasecmp (np->m_mbox, mp->m_next->m_mbox)
                && np->m_bcc == mp->m_next->m_bcc)
            return 0;
 
Index: nmh/uip/rcvdist.c
diff -u nmh/uip/rcvdist.c:1.9 nmh/uip/rcvdist.c:1.10
--- nmh/uip/rcvdist.c:1.9       Mon Jan  2 03:17:42 2006
+++ nmh/uip/rcvdist.c   Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * rcvdist.c -- asynchronously redistribute messages
  *
- * $Id: rcvdist.c,v 1.9 2006/01/02 03:17:42 bress Exp $
+ * $Id: rcvdist.c,v 1.10 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -202,7 +202,7 @@
            case FLDPLUS: 
                if ((cptr = wantcomp[CHASH (name)]))
                    do {
-                       if (!strcasecmp (name, cptr->c_name)) {
+                       if (!mh_strcasecmp (name, cptr->c_name)) {
                            char_read += msg_count;
                            if (!cptr->c_text) {
                                cptr->c_text = tmpbuf;
Index: nmh/uip/replsbr.c
diff -u nmh/uip/replsbr.c:1.9 nmh/uip/replsbr.c:1.10
--- nmh/uip/replsbr.c:1.9       Sun Jan 29 19:34:44 2006
+++ nmh/uip/replsbr.c   Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * replsbr.c -- routines to help repl along...
  *
- * $Id: replsbr.c,v 1.9 2006/01/29 19:34:44 opk Exp $
+ * $Id: replsbr.c,v 1.10 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -159,7 +159,7 @@
                 */
                if ((cptr = wantcomp[CHASH(name)]))
                    do {
-                       if (!strcasecmp(name, cptr->c_name)) {
+                       if (!mh_strcasecmp(name, cptr->c_name)) {
                            char_read += msg_count;
                            if (! cptr->c_text) {
                                i = strlen(cptr->c_text = tmpbuf) - 1;
@@ -391,8 +391,8 @@
        return 0;
 
     for (mp = &mq; mp->m_next; mp = mp->m_next) {
-       if (!strcasecmp (np->m_host, mp->m_next->m_host)
-               && !strcasecmp (np->m_mbox, mp->m_next->m_mbox))
+       if (!mh_strcasecmp (np->m_host, mp->m_next->m_host)
+               && !mh_strcasecmp (np->m_mbox, mp->m_next->m_mbox))
            return 0;
     }
     if (!ccme && ismymbox (np))
Index: nmh/uip/scansbr.c
diff -u nmh/uip/scansbr.c:1.9 nmh/uip/scansbr.c:1.10
--- nmh/uip/scansbr.c:1.9       Mon Jan 16 10:40:32 2006
+++ nmh/uip/scansbr.c   Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * scansbr.c -- routines to help scan along...
  *
- * $Id: scansbr.c,v 1.9 2006/01/16 10:40:32 opk Exp $
+ * $Id: scansbr.c,v 1.10 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -203,7 +203,7 @@
                 */
                if ((cptr = wantcomp[CHASH(name)])) {
                    do {
-                       if (!strcasecmp(name, cptr->c_name)) {
+                       if (!mh_strcasecmp(name, cptr->c_name)) {
                            if (! cptr->c_text) {
                                cptr->c_text = tmpbuf;
                                for (cp = tmpbuf + strlen (tmpbuf) - 1; 
Index: nmh/uip/sendsbr.c
diff -u nmh/uip/sendsbr.c:1.11 nmh/uip/sendsbr.c:1.12
--- nmh/uip/sendsbr.c:1.11      Sat Feb 25 14:14:06 2006
+++ nmh/uip/sendsbr.c   Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * sendsbr.c -- routines to help WhatNow/Send along
  *
- * $Id: sendsbr.c,v 1.11 2006/02/25 14:14:06 levine Exp $
+ * $Id: sendsbr.c,v 1.12 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -401,7 +401,7 @@
 
     if ((p = strrchr(file_name, '.')) != (char *)0) {
        for (np = m_defs; np; np = np->n_next) {
-           if (strncasecmp(np->n_name, "mhshow-suffix-", 14) == 0 && 
strcasecmp(p, np->n_field) == 0) {
+           if (strncasecmp(np->n_name, "mhshow-suffix-", 14) == 0 && 
mh_strcasecmp(p, np->n_field) == 0) {
                content_type = np->n_name + 14;
                break;
            }
@@ -551,13 +551,13 @@
                /*
                 * This header field is discarded.
                 */
-               if (!strcasecmp (name, "Message-ID")) {
+               if (!mh_strcasecmp (name, "Message-ID")) {
                    while (state == FLDPLUS)
                        state = m_getfld (state, name, buffer, sizeof(buffer), 
in);
                } else if (uprf (name, XXX_FIELD_PRF)
-                       || !strcasecmp (name, VRSN_FIELD)
-                       || !strcasecmp (name, "Subject")
-                       || !strcasecmp (name, "Encrypted")) {
+                       || !mh_strcasecmp (name, VRSN_FIELD)
+                       || !mh_strcasecmp (name, "Subject")
+                       || !mh_strcasecmp (name, "Encrypted")) {
                    /*
                     * These header fields are copied to the enclosed
                     * header of the first message in the collection
@@ -566,7 +566,7 @@
                     * version of it, can be copied to the header
                     * of each messsage/partial in the collection.
                     */
-                   if (!strcasecmp (name, "Subject")) {
+                   if (!mh_strcasecmp (name, "Subject")) {
                        size_t sublen;
 
                        strncpy (subject, buffer, BUFSIZ);
Index: nmh/uip/show.c
diff -u nmh/uip/show.c:1.7 nmh/uip/show.c:1.8
--- nmh/uip/show.c:1.7  Fri Jan  6 21:51:44 2006
+++ nmh/uip/show.c      Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * show.c -- show/list messages
  *
- * $Id: show.c,v 1.7 2006/01/06 21:51:44 bress Exp $
+ * $Id: show.c,v 1.8 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -81,9 +81,9 @@
     /* read user profile/context */
     context_read();
 
-    if (!strcasecmp (invo_name, "next")) {
+    if (!mh_strcasecmp (invo_name, "next")) {
        mode = NEXT;
-    } else if (!strcasecmp (invo_name, "prev")) {
+    } else if (!mh_strcasecmp (invo_name, "prev")) {
        mode = PREV;
     }
     arguments = getarguments (invo_name, argc, argv, 1);
@@ -400,7 +400,7 @@
            /*
             * Check Content-Type field
             */
-           if (!strcasecmp (name, TYPE_FIELD)) {
+           if (!mh_strcasecmp (name, TYPE_FIELD)) {
                int passno;
                char c;
 
@@ -455,7 +455,7 @@
                if (!*bp)
                    goto invalid;
                if (passno > 1) {
-                   if ((result = (strcasecmp (bp, "plain") != 0)))
+                   if ((result = (mh_strcasecmp (bp, "plain") != 0)))
                        goto out;
                    *dp = c;
                    for (dp++; isspace (*dp); dp++)
@@ -487,7 +487,7 @@
                    /* Check the character set */
                    result = !check_charset (dp, strlen (dp));
                } else {
-                   if (!(result = (strcasecmp (bp, "text") != 0))) {
+                   if (!(result = (mh_strcasecmp (bp, "text") != 0))) {
                        *dp = c;
                        bp = dp;
                        passno = 2;
@@ -506,7 +506,7 @@
            /*
             * Check Content-Transfer-Encoding field
             */
-           if (!strcasecmp (name, ENCODING_FIELD)) {
+           if (!mh_strcasecmp (name, ENCODING_FIELD)) {
                cp = add (buf, NULL);
                while (state == FLDPLUS) {
                    state = m_getfld (state, name, buf, sizeof(buf), fp);
@@ -517,9 +517,9 @@
                for (dp = bp; istoken (*dp); dp++)
                    continue;
                *dp = '\0';
-               result = (strcasecmp (bp, "7bit")
-                      && strcasecmp (bp, "8bit")
-                      && strcasecmp (bp, "binary"));
+               result = (mh_strcasecmp (bp, "7bit")
+                      && mh_strcasecmp (bp, "8bit")
+                      && mh_strcasecmp (bp, "binary"));
 
                free (cp);
                if (result) {
Index: nmh/uip/slocal.c
diff -u nmh/uip/slocal.c:1.22 nmh/uip/slocal.c:1.23
--- nmh/uip/slocal.c:1.22       Mon Jan 16 10:00:47 2006
+++ nmh/uip/slocal.c    Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * slocal.c -- asynchronously filter and deliver new mail
  *
- * $Id: slocal.c,v 1.22 2006/01/16 10:00:47 opk Exp $
+ * $Id: slocal.c,v 1.23 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -554,7 +554,7 @@
        }
 
        if (vecp > 5) {
-           if (!strcasecmp (vec[5], "select")) {
+           if (!mh_strcasecmp (vec[5], "select")) {
                if (logged_in () != -1)
                    continue;
                if (vecp > 7 && timely (vec[6], vec[7]) == -1)
@@ -573,7 +573,7 @@
             * "default" matches only if the message hasn't
             * been delivered yet.
             */
-               if (!strcasecmp (field, "default")) {
+               if (!mh_strcasecmp (field, "default")) {
                    if (won)
                        continue;
                    break;
@@ -603,7 +603,7 @@
        switch (*action) {
            case 'q':
                /* deliver to quoted pipe */
-               if (strcasecmp (action, "qpipe"))
+               if (mh_strcasecmp (action, "qpipe"))
                    continue;   /* else fall */
            case '^':
                expand (tmpbuf, string, fd);
@@ -614,7 +614,7 @@
 
            case 'p': 
                /* deliver to pipe */
-               if (strcasecmp (action, "pipe"))
+               if (mh_strcasecmp (action, "pipe"))
                    continue;   /* else fall */
            case '|': 
                vec[2] = "sh";
@@ -627,12 +627,12 @@
 
            case 'f': 
                /* mbox format */
-               if (!strcasecmp (action, "file")) {
+               if (!mh_strcasecmp (action, "file")) {
                    status = usr_file (fd, string, MBOX_FORMAT);
                    break;
                }
                /* deliver to nmh folder */
-               else if (strcasecmp (action, "folder"))
+               else if (mh_strcasecmp (action, "folder"))
                    continue;   /* else fall */
            case '+':
                status = usr_folder (fd, string);
@@ -640,12 +640,12 @@
 
            case 'm':
                /* mmdf format */
-               if (!strcasecmp (action, "mmdf")) {
+               if (!mh_strcasecmp (action, "mmdf")) {
                    status = usr_file (fd, string, MMDF_FORMAT);
                    break;
                }
                /* mbox format */
-               else if (strcasecmp (action, "mbox"))
+               else if (mh_strcasecmp (action, "mbox"))
                    continue;   /* else fall */
 
            case '>': 
@@ -655,7 +655,7 @@
 
            case 'd': 
                /* ignore message */
-               if (strcasecmp (action, "destroy"))
+               if (mh_strcasecmp (action, "destroy"))
                    continue;
                status = 0;
                break;
@@ -779,7 +779,7 @@
                    lp = add (field, lp);
                }
                for (p = hdrs; p->p_name; p++) {
-                   if (!strcasecmp (p->p_name, name)) {
+                   if (!mh_strcasecmp (p->p_name, name)) {
                        if (!(p->p_flags & P_HID)) {
                            if ((cp = p->p_value)) {
                                if (p->p_flags & P_ADR) {
@@ -933,7 +933,7 @@
 lookup (struct pair *pairs, char *key)
 {
     for (; pairs->p_name; pairs++)
-       if (!strcasecmp (pairs->p_name, key))
+       if (!mh_strcasecmp (pairs->p_name, key))
            return pairs;
 
     return NULL;
@@ -1537,7 +1537,7 @@
            case FLDPLUS:
            case FLDEOF:
                /* Search for the message ID */
-               if (strcasecmp (name, "Message-ID")) {
+               if (mh_strcasecmp (name, "Message-ID")) {
                    while (state == FLDPLUS)
                        state = m_getfld (state, name, buf, sizeof(buf), in);
                    continue;
Index: nmh/uip/sortm.c
diff -u nmh/uip/sortm.c:1.10 nmh/uip/sortm.c:1.11
--- nmh/uip/sortm.c:1.10        Mon Jan  2 03:25:18 2006
+++ nmh/uip/sortm.c     Wed Mar  8 12:14:16 2006
@@ -2,7 +2,7 @@
 /*
  * sortm.c -- sort messages in a folder by date/time
  *
- * $Id: sortm.c,v 1.10 2006/01/02 03:25:18 bress Exp $
+ * $Id: sortm.c,v 1.11 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -365,7 +365,7 @@
        case FLDEOF:
        case FLDPLUS:
            compnum++;
-           if (!strcasecmp (nam, datesw)) {
+           if (!mh_strcasecmp (nam, datesw)) {
                datecomp = add (buf, datecomp);
                while (state == FLDPLUS) {
                    state = m_getfld (state, nam, buf, sizeof(buf), in);
@@ -373,7 +373,7 @@
                }
                if (!subjsort || subjcomp)
                    break;
-           } else if (subjsort && !strcasecmp (nam, subjsort)) {
+           } else if (subjsort && !mh_strcasecmp (nam, subjsort)) {
                subjcomp = add (buf, subjcomp);
                while (state == FLDPLUS) {
                    state = m_getfld (state, nam, buf, sizeof(buf), in);
Index: nmh/uip/spost.c
diff -u nmh/uip/spost.c:1.17 nmh/uip/spost.c:1.18
--- nmh/uip/spost.c:1.17        Wed Jan 18 00:09:00 2006
+++ nmh/uip/spost.c     Wed Mar  8 12:14:16 2006
@@ -5,7 +5,7 @@
  * This is a simpler, faster, replacement for "post" for use
  * when "sendmail" is the transport system.
  *
- * $Id: spost.c,v 1.17 2006/01/18 00:09:00 levine Exp $
+ * $Id: spost.c,v 1.18 2006/03/08 12:14:16 bress Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -631,7 +631,7 @@
     struct headers *h;
 
     for (h = table; h->value; h++)
-       if (!strcasecmp (header, h->value))
+       if (!mh_strcasecmp (header, h->value))
            return (h - table);
 
     return NOTOK;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]