unconditional.
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug],[enable nmh code debugging]))
-dnl Do you want to disable use of locale functions
-AH_TEMPLATE([LOCALE],
-[Undefine if you don't want locale features. By default this is defined.])
-AC_ARG_ENABLE([locale],
- [AS_HELP_STRING([--disable-locale], [turn off locale features])],
- [AS_IF([test x$enableval = xyes], [AC_DEFINE(LOCALE)])],
- [AC_DEFINE(LOCALE)])
-
dnl Do you want client-side support for using SASL for authentication?
dnl Note that this code will be enabled for both POP and SMTP
AC_ARG_WITH([cyrus-sasl], AS_HELP_STRING([--with-cyrus-sasl],
usr_fstring[errpos] = '\0';
for (i = errpos-errctx; i < errpos; i++) {
-#ifdef LOCALE
if (iscntrl((unsigned char) usr_fstring[i]))
-#else
- if (usr_fstring[i] < 32)
-#endif
usr_fstring[i] = '_';
}
int c1, c2;
char *s1, *s2;
-#ifdef LOCALE
while ((c1 = *sub)) {
c1 = (isascii((unsigned char) c1) && isalpha((unsigned char) c1) &&
isupper((unsigned char) c1)) ? tolower((unsigned char) c1) : c1;
if (! c1)
return 1;
}
-#else
- while ((c1 = *sub)) {
- while ((c2 = *str++) && (c1 | 040) != (c2 | 040))
- ;
- if (! c2)
- return 0;
- s1 = sub + 1; s2 = str;
- while ((c1 = *s1++) && (c1 | 040) == (*s2++ | 040))
- ;
- if (! c1)
- return 1;
- }
-#endif
return 1;
}
if (i == EOF)
return 0;
if (cp < &ansbuf[sizeof ansbuf - 1]) {
-#ifdef LOCALE
i = (isalpha(i) && isupper(i)) ? tolower(i) : i;
-#else
- if (i >= 'A' && i <= 'Z')
- i += 'a' - 'A';
-#endif
*cp++ = i;
}
}
char *cp;
for (i = 0, cp = str; *cp; cp++) {
-#ifdef LOCALE
if (!isdigit((unsigned char) *cp))
-#else
- if (*cp < '0' || *cp > '9')
-#endif
return 0;
i *= 10;
return BADNUM;
}
-#ifdef LOCALE
/* doesn't enforce lower case */
for (bp = buf; (isalpha((unsigned char) *cp) || *cp == '.')
&& (bp - buf < (int) sizeof(buf) - 1); )
-#else
- for (bp = buf; ((*cp >= 'a' && *cp <= 'z') || *cp == '.')
- && (bp - buf < (int) sizeof(buf) - 1); )
-#endif /* LOCALE */
{
*bp++ = *cp++;
}
#include <h/mh.h>
-#ifndef LOCALE
-# define TO_LOWER 040
-# define NO_MASK 000
-#endif
-
int
uprf (char *c1, char *c2)
while ((c = *c2++))
{
-#ifdef LOCALE
c &= 0xff;
mask = *c1 & 0xff;
c = (isalpha(c) && isupper(c)) ? tolower(c) : c;
mask = (isalpha(mask) && isupper(mask)) ? tolower(mask) : mask;
if (c != mask)
-#else
- mask = (isalpha(c) && isalpha(*c1)) ? TO_LOWER : NO_MASK;
- if ((c | mask) != (*c1 | mask))
-#endif
return 0;
else
c1++;
char **vec = mh_xmalloc (argc * sizeof (char *)), **arguments;
struct aka *ak;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
int list = 0; /* list header elements if set */
int number = 0; /* delete specific number of like elements if set */
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char buf[BUFSIZ], **argp;
char **arguments, *addrs[NADDRS];
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
struct smsg *smsgs;
struct msgs *mp;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
struct format *fmt;
struct stat st;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char *cp, **argp, **arguments;
char buf[BUFSIZ], *akv[50];
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* foil search of user profile/context */
struct msgs *mp = NULL;
struct stat st;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char buf[BUFSIZ], **argp, **arguments;
char *dates[NDATES];
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char **arguments;
char buf[BUFSIZ];
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex(argv[0], '/');
/* read user profile/context */
char buf[BUFSIZ], *nfs, **argp, **arguments;
struct format *fmt;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
int dat[5];
struct fmt_callbacks cb, *cbp = NULL;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char *cp, *dp, *msg = NULL, *argfolder = NULL;
char **ap, **argp, buf[BUFSIZ], **arguments;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
int buildsw = 0;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
SAVEGROUPPRIVS();
TRYDROPGROUPPRIVS();
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
FILE *in, *out;
int check;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
arguments = getarguments (invo_name, argc, argv, 0);
argp = arguments;
struct msgs_array msgs = { 0, 0, NULL };
struct msgs *mp;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
done=unlink_done;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
done = freects_done;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
int
main (int argc, char **argv)
{
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
done (mhl (argc, argv));
return 1;
}
done=freects_done;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
done=freects_done;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
struct msgs_array msgs = { 0, 0, NULL };
struct msgs *mp;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
done=freects_done;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
done=freects_done;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
done=freects_done;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char **argp, **arguments, *vec[MAXVEC];
struct passwd *pw;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char *cp, *file = NULL, *folder = NULL;
char **argp, **arguments, buf[BUFSIZ];
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char *unseen;
struct node *folder;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex(argv[0], '/');
/* read user profile/context */
done=mbxclose_done;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
done=putzero_done;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
FILE *in, *out;
m_getfld_state_t gstate = 0;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* foil search of user profile/context */
char *tmpfil;
m_getfld_state_t gstate = 0;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
done=unlink_done;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char *cp, *file = NULL, buf[BUFSIZ];
char **argp, **arguments;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
done=unlink_done;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char *cp, *user, buf[BUFSIZ], tty[BUFSIZ];
char **argp, **arguments, *vec[MAXARGS];
struct utmpx *utp;
-#ifdef LOCALE
+
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
struct msgs_array msgs = { 0, 0, NULL };
struct msgs *mp;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
int buildsw = 0;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char *cp, *folder = NULL, newfolder[BUFSIZ];
char buf[BUFSIZ], **argp, **arguments;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
struct msgs_array msgs = { 0, 0, NULL };
struct msgs *mp;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
struct msgs *mp;
FILE *in;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char *attach = NMH_ATTACH_HEADER; /* header field name for attachments */
int attachformat = 1; /* mhbuild format specifier for attachments */
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
struct msgs_array msgs = { 0, 0, NULL };
struct msgs_array vec = { 0, 0, NULL };
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char mailbox[BUFSIZ], tmpfil[BUFSIZ];
char **argp, **arguments;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (*argv, '/');
/* foil search of user profile/context */
struct smsg **dlist;
int checksw = 0;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
char *cp, buf[BUFSIZ];
char **argp, **arguments;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* foil search of user profile/context */
int
main (int argc, char **argv)
{
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
return WhatNow (argc, argv);
}
char *msg = NULL, **ap, **argp, backup[BUFSIZ];
char buf[BUFSIZ], **arguments, *vec[MAXARGS];
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */