/[imapfilter]/imapfilter/imapfilter.c
ViewVC logotype

Diff of /imapfilter/imapfilter.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by lefcha, Fri Oct 5 14:40:37 2001 UTC revision 1.15 by lefcha, Mon Oct 8 08:52:49 2001 UTC
# Line 43  int main(int argc, char **argv) Line 43  int main(int argc, char **argv)
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;
# Line 65  int main(int argc, char **argv) Line 65  int main(int argc, char **argv)
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();

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26