55 |
break; |
break; |
56 |
} |
} |
57 |
} |
} |
58 |
|
|
59 |
read_config(confile); |
read_config(confile); |
60 |
open_logfile(); |
open_logfile(); |
61 |
|
|
62 |
for (ca = accounts; ca; ca = ca->next) { |
for (ca = accounts; ca; ca = ca->next) { |
63 |
|
|
64 |
if (init_connection(ca->server, ca->port)) { |
if (init_connection(ca->server, ca->port)) { |
65 |
close_logfile(); |
close_logfile(); |
66 |
exit(ERROR_NETWORK); |
exit(ERROR_NETWORK); |
67 |
} |
} |
|
|
|
68 |
server_response("\0"); |
server_response("\0"); |
69 |
|
|
70 |
#ifdef DEBUG |
#ifdef DEBUG |
75 |
|
|
76 |
for (cm = ca->mboxes; cm; cm = cm->next) { |
for (cm = ca->mboxes; cm; cm = cm->next) { |
77 |
if (!*cm->filters) |
if (!*cm->filters) |
78 |
continue; |
examine_mailbox(cm->name); |
79 |
|
else if (!select_mailbox(cm->name)) |
80 |
select_mailbox(cm->name); |
apply_filters(cm->filters, cm->name); |
|
|
|
|
apply_filters(cm->filters, cm->name); |
|
81 |
|
|
82 |
close_mailbox(); |
close_mailbox(); |
83 |
} |
} |
86 |
|
|
87 |
close_connection(); |
close_connection(); |
88 |
} |
} |
89 |
|
|
90 |
close_logfile(); |
close_logfile(); |
91 |
|
|
92 |
exit(0); |
exit(0); |