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

Diff of /imapfilter/file.c

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

revision 1.46 by lefcha, Mon Feb 3 20:22:01 2003 UTC revision 1.47 by lefcha, Fri Feb 21 18:31:29 2003 UTC
# Line 43  int read_config(char *cfg) Line 43  int read_config(char *cfg)
43          snprintf(cfg, PATH_MAX, "%s/%s", home, ".imapfilterrc");          snprintf(cfg, PATH_MAX, "%s/%s", home, ".imapfilterrc");
44      }      }
45  #ifdef DEBUG  #ifdef DEBUG
46      printf("debug: configuration file: '%s'\n", cfg);      fprintf(stderr, "debug: configuration file: '%s'\n", cfg);
47  #endif  #endif
48  #ifdef CHECK_PERMISSIONS  #ifdef CHECK_PERMISSIONS
49      check_file_perms(cfg, S_IRUSR | S_IWUSR);      check_file_perms(cfg, S_IRUSR | S_IWUSR);
# Line 64  int read_config(char *cfg) Line 64  int read_config(char *cfg)
64      fclose(fd);      fclose(fd);
65    
66  #ifdef DEBUG  #ifdef DEBUG
67      printf("debug: options: %0#10x '%s'\n", options, charset);      fprintf(stderr, "debug: options: %0#10x '%s'\n", options, charset);
68  #endif  #endif
69    
70      return 0;      return 0;
# Line 285  int read_passwords(void) Line 285  int read_passwords(void)
285    
286      snprintf(pwfile, PATH_MAX, "%s/%s", home, ".imapfilter/passwords");      snprintf(pwfile, PATH_MAX, "%s/%s", home, ".imapfilter/passwords");
287  #ifdef DEBUG  #ifdef DEBUG
288      printf("debug: passwords file: '%s'\n", pwfile);      fprintf(stderr, "debug: passwords file: '%s'\n", pwfile);
289  #endif  #endif
290    
291      if (!exists_file(pwfile))      if (!exists_file(pwfile))
# Line 385  int store_passwords(account_t * accts[]) Line 385  int store_passwords(account_t * accts[])
385    
386      return 0;      return 0;
387  }  }
388    #endif                          /* ENCRYPTED_PASSWORDS */
 #endif  
389    
390    
391  /*  /*
# Line 520  int check_dir_perms(char *dname, mode_t Line 519  int check_dir_perms(char *dname, mode_t
519      return 0;      return 0;
520  }  }
521    
522  #endif  #endif                          /* CHECK_PERMISSIONS */

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26