config options were not case insensitive

This commit is contained in:
Michael Elkins 2000-12-21 00:35:26 +00:00
parent 21bf53b2ab
commit 813618f041
3 changed files with 24 additions and 8 deletions

View File

@ -1,5 +1,21 @@
2000-12-21 Michael Elkins <me@sigipe.org>
* imap.c, isync.h, maildir.c, main.c, sync.c:
don't fetch deleted messages when expunging
display number of messages that are to be deleted
flags for \Recent messages were not properly fetched
local messages with updated flags were not corrected renamed
2000-12-20 Michael Elkins <me@sigipe.org> 2000-12-20 Michael Elkins <me@sigipe.org>
* ChangeLog, Makefile.am:
updated ChangeLog
added log: rule in Makefile.am
* configure: forgot to remove configure script * configure: forgot to remove configure script
* INSTALL, Makefile.in, aclocal.m4, autogen.sh, install-sh, missing, mkinstalldirs: * INSTALL, Makefile.in, aclocal.m4, autogen.sh, install-sh, missing, mkinstalldirs:

View File

@ -1,5 +1,5 @@
AC_INIT(isync.h) AC_INIT(isync.h)
AM_INIT_AUTOMAKE(isync,0.1) AM_INIT_AUTOMAKE(isync,0.2)
AM_PROG_CC_STDC AM_PROG_CC_STDC
if test $CC = gcc; then if test $CC = gcc; then
CFLAGS="$CFLAGS -pipe" CFLAGS="$CFLAGS -pipe"

14
main.c
View File

@ -147,49 +147,49 @@ load_config (char *where)
p++; p++;
while (isspace (*p)) while (isspace (*p))
p++; p++;
if (!strncmp ("mailbox", buf, 7)) if (!strncasecmp ("mailbox", buf, 7))
{ {
if (*cur) if (*cur)
cur = &(*cur)->next; cur = &(*cur)->next;
*cur = calloc (1, sizeof (config_t)); *cur = calloc (1, sizeof (config_t));
(*cur)->path = strdup (p); (*cur)->path = strdup (p);
} }
else if (!strncmp ("host", buf, 4)) else if (!strncasecmp ("host", buf, 4))
{ {
if (*cur) if (*cur)
(*cur)->host = strdup (p); (*cur)->host = strdup (p);
else else
global.host = strdup (p); global.host = strdup (p);
} }
else if (!strncmp ("user", buf, 4)) else if (!strncasecmp ("user", buf, 4))
{ {
if (*cur) if (*cur)
(*cur)->user = strdup (p); (*cur)->user = strdup (p);
else else
global.user = strdup (p); global.user = strdup (p);
} }
else if (!strncmp ("pass", buf, 4)) else if (!strncasecmp ("pass", buf, 4))
{ {
if (*cur) if (*cur)
(*cur)->pass = strdup (p); (*cur)->pass = strdup (p);
else else
global.pass = strdup (p); global.pass = strdup (p);
} }
else if (!strncmp ("port", buf, 4)) else if (!strncasecmp ("port", buf, 4))
{ {
if (*cur) if (*cur)
(*cur)->port = atoi (p); (*cur)->port = atoi (p);
else else
global.port = atoi (p); global.port = atoi (p);
} }
else if (!strncmp ("box", buf, 3)) else if (!strncasecmp ("box", buf, 3))
{ {
if (*cur) if (*cur)
(*cur)->box = strdup (p); (*cur)->box = strdup (p);
else else
global.box = strdup (p); global.box = strdup (p);
} }
else if (!strncmp ("alias", buf, 5)) else if (!strncasecmp ("alias", buf, 5))
{ {
if (*cur) if (*cur)
(*cur)->alias = strdup (p); (*cur)->alias = strdup (p);