43 |
break; |
break; |
44 |
case 'q': |
case 'q': |
45 |
options &= OPTION_DETAILS_CLEAR; |
options &= OPTION_DETAILS_CLEAR; |
46 |
options |= OPTION_DETAILS_QUITE; |
options |= OPTION_DETAILS_QUIET; |
47 |
break; |
break; |
48 |
case 'v': |
case 'v': |
49 |
options &= OPTION_DETAILS_CLEAR; |
options &= OPTION_DETAILS_CLEAR; |
65 |
close_logfile(); |
close_logfile(); |
66 |
exit(ERROR_NETWORK); |
exit(ERROR_NETWORK); |
67 |
} |
} |
68 |
server_response("\0"); |
if (greeting_response() || check_capabilities()) |
69 |
|
continue; |
70 |
|
|
71 |
#ifdef DEBUG |
#ifdef DEBUG |
72 |
test(); |
test(); |
73 |
#endif |
#endif |
74 |
|
|
75 |
login(ca->username, ca->password); |
if (login(ca->username, ca->password)) |
76 |
|
continue; |
77 |
|
|
78 |
for (cm = ca->mboxes; cm; cm = cm->next) |
for (cm = ca->mboxes; cm; cm = cm->next) |
79 |
if (!*cm->filters) { |
if (!*cm->filters) |
80 |
if (!examine_mailbox(cm->name)) |
mailbox_status(cm->name); |
81 |
close_mailbox(); |
else if (!select_mailbox(cm->name)) { |
82 |
} else if (!select_mailbox(cm->name)) { |
apply_filters(cm->filters); |
|
apply_filters(cm->filters, cm->name); |
|
83 |
close_mailbox(); |
close_mailbox(); |
84 |
} |
} |
|
|
|
85 |
logout(); |
logout(); |
86 |
|
|
87 |
close_connection(); |
close_connection(); |