Fix the problem where 'showdots' flag doesn't work properly if there are two or more 'poll' entries in .fetchmailrc --- fetchmail.c.orig Wed Oct 15 20:22:31 2003 +++ fetchmail.c Mon Apr 19 12:22:33 2004 @@ -1056,6 +1056,16 @@ break; } + /* this code enables flags to be turned off */ +#define DEFAULT(flag, dflt) if (flag == FLAG_TRUE)\ + flag = TRUE;\ + else if (flag == FLAG_FALSE)\ + flag = FALSE;\ + else\ + flag = (dflt) + /* one global gets treated specially */ + DEFAULT(run.showdots, run.poll_interval==0 || nodetach); + /* merge in wired defaults, do sanity checks and prepare internal fields */ for (ctl = querylist; ctl; ctl = ctl->next) { @@ -1085,13 +1095,6 @@ if (configdump || ctl->active ) { - /* this code enables flags to be turned off */ -#define DEFAULT(flag, dflt) if (flag == FLAG_TRUE)\ - flag = TRUE;\ - else if (flag == FLAG_FALSE)\ - flag = FALSE;\ - else\ - flag = (dflt) DEFAULT(ctl->keep, FALSE); DEFAULT(ctl->fetchall, FALSE); DEFAULT(ctl->flush, FALSE); @@ -1117,8 +1120,6 @@ exit(PS_SYNTAX); } #endif /* SSL_ENABLE */ - /* one global gets treated specially */ - DEFAULT(run.showdots, run.poll_interval==0 || nodetach); #undef DEFAULT /*