26 |
extern filter_t *filters; |
extern filter_t *filters; |
27 |
extern buffer_t ibuf, obuf; |
extern buffer_t ibuf, obuf; |
28 |
|
|
29 |
options_t opts; /* Program opts. */ |
options_t opts; /* Program options. */ |
30 |
unsigned int flags = 0; /* Program flags. */ |
unsigned int flags = 0; /* Program flags. */ |
31 |
|
|
32 |
connection_t connpri, connaux; /* Primary and auxiliary IMAP connection. */ |
connection_t connpri, connaux; /* Primary and auxiliary IMAP connection. */ |
112 |
if (opts.verbosity < 2) |
if (opts.verbosity < 2) |
113 |
opts.verbosity++; |
opts.verbosity++; |
114 |
break; |
break; |
|
default: |
|
115 |
case '?': |
case '?': |
116 |
|
default: |
117 |
usage(); |
usage(); |
118 |
/* NOTREACHED */ |
/* NOTREACHED */ |
119 |
} |
} |
130 |
corefile_disable(); |
corefile_disable(); |
131 |
|
|
132 |
tty_store(); |
tty_store(); |
133 |
|
|
134 |
catch_signals(); |
catch_signals(); |
135 |
|
|
136 |
read_config(cf); |
read_config(cf); |
170 |
} while (opts.daemon); |
} while (opts.daemon); |
171 |
|
|
172 |
log_stop(); |
log_stop(); |
173 |
|
|
174 |
secmem_clear(); |
secmem_clear(); |
175 |
|
|
176 |
lockfile_remove(); |
lockfile_remove(); |