char file_citadel_config[PATH_MAX]="";
char file_lmtp_socket[PATH_MAX]="";
char file_lmtp_unfiltered_socket[PATH_MAX]="";
+char file_mail_aliases[PATH_MAX]="";
int home_specified = 0;
"%slmtp-unfiltered.socket",
ctdl_run_dir);
+
+ /*
+ * DIRTY HACK FOLLOWS! due to configs in the network dir in the
+ * legacy installations, we need to calculate ifdeffed here.
+ */
+ snprintf(file_mail_aliases,
+ sizeof file_mail_aliases,
+ "%smail.aliases",
+#ifdef HAVE_ETC_DIR
+ ctdl_etc_dir
+#else
+ ctdl_spool_dir
+#endif
+ );
+
}
extern char file_citadel_config[PATH_MAX];
extern char file_lmtp_socket[PATH_MAX];
extern char file_lmtp_unfiltered_socket[PATH_MAX];
+extern char file_mail_aliases[PATH_MAX];
extern void calc_dirs_n_files(int relh, int home, const char *relhome,const char *ctdldir);
char node[64];
char testnode[64];
char buf[SIZ];
- char filename[256];
striplt(name);
remove_any_whitespace_to_the_left_or_right_of_at_symbol(name);
stripallbut(name, '<', '>');
- /*
- * DIRTY HACK FOLLOWS! due to configs in the network dir in the
- * legacy installations, we need to calculate ifdeffed here.
- */
- snprintf(filename,
- sizeof filename,
- "%smail.aliases",
-#ifndef HAVE_ETG_DIR
- ctdl_spool_dir
-#else
- ctdl_etc_dir
-#endif
- );
- fp = fopen(filename, "r");
+ fp = fopen(file_mail_aliases, "r");
if (fp == NULL) {
fp = fopen("/dev/null", "r");
}