config options were not case insensitive
This commit is contained in:
parent
21bf53b2ab
commit
813618f041
16
ChangeLog
16
ChangeLog
|
@ -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>
|
||||
|
||||
* ChangeLog, Makefile.am:
|
||||
updated ChangeLog
|
||||
|
||||
added log: rule in Makefile.am
|
||||
|
||||
* configure: forgot to remove configure script
|
||||
|
||||
* INSTALL, Makefile.in, aclocal.m4, autogen.sh, install-sh, missing, mkinstalldirs:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
AC_INIT(isync.h)
|
||||
AM_INIT_AUTOMAKE(isync,0.1)
|
||||
AM_INIT_AUTOMAKE(isync,0.2)
|
||||
AM_PROG_CC_STDC
|
||||
if test $CC = gcc; then
|
||||
CFLAGS="$CFLAGS -pipe"
|
||||
|
|
14
main.c
14
main.c
|
@ -147,49 +147,49 @@ load_config (char *where)
|
|||
p++;
|
||||
while (isspace (*p))
|
||||
p++;
|
||||
if (!strncmp ("mailbox", buf, 7))
|
||||
if (!strncasecmp ("mailbox", buf, 7))
|
||||
{
|
||||
if (*cur)
|
||||
cur = &(*cur)->next;
|
||||
*cur = calloc (1, sizeof (config_t));
|
||||
(*cur)->path = strdup (p);
|
||||
}
|
||||
else if (!strncmp ("host", buf, 4))
|
||||
else if (!strncasecmp ("host", buf, 4))
|
||||
{
|
||||
if (*cur)
|
||||
(*cur)->host = strdup (p);
|
||||
else
|
||||
global.host = strdup (p);
|
||||
}
|
||||
else if (!strncmp ("user", buf, 4))
|
||||
else if (!strncasecmp ("user", buf, 4))
|
||||
{
|
||||
if (*cur)
|
||||
(*cur)->user = strdup (p);
|
||||
else
|
||||
global.user = strdup (p);
|
||||
}
|
||||
else if (!strncmp ("pass", buf, 4))
|
||||
else if (!strncasecmp ("pass", buf, 4))
|
||||
{
|
||||
if (*cur)
|
||||
(*cur)->pass = strdup (p);
|
||||
else
|
||||
global.pass = strdup (p);
|
||||
}
|
||||
else if (!strncmp ("port", buf, 4))
|
||||
else if (!strncasecmp ("port", buf, 4))
|
||||
{
|
||||
if (*cur)
|
||||
(*cur)->port = atoi (p);
|
||||
else
|
||||
global.port = atoi (p);
|
||||
}
|
||||
else if (!strncmp ("box", buf, 3))
|
||||
else if (!strncasecmp ("box", buf, 3))
|
||||
{
|
||||
if (*cur)
|
||||
(*cur)->box = strdup (p);
|
||||
else
|
||||
global.box = strdup (p);
|
||||
}
|
||||
else if (!strncmp ("alias", buf, 5))
|
||||
else if (!strncasecmp ("alias", buf, 5))
|
||||
{
|
||||
if (*cur)
|
||||
(*cur)->alias = strdup (p);
|
||||
|
|
Loading…
Reference in New Issue
Block a user