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); |
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; |
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)) |
385 |
|
|
386 |
return 0; |
return 0; |
387 |
} |
} |
388 |
|
#endif /* ENCRYPTED_PASSWORDS */ |
|
#endif |
|
389 |
|
|
390 |
|
|
391 |
/* |
/* |
519 |
return 0; |
return 0; |
520 |
} |
} |
521 |
|
|
522 |
#endif |
#endif /* CHECK_PERMISSIONS */ |