added recieved_to_lower option

master
Evgeniy Kozhuhovskiy 19 years ago
parent 8692f86c7f
commit 561aa3ff5b

@ -569,4 +569,10 @@ nomail_flag /etc/nomail
#
run_before_session /usr/local/bin/call_inet.sh
#
# convert names of recieved files to lower case
# (yes/no)
#
recieved_to_lower yes
# That's all!

@ -166,7 +166,8 @@ s_conf_entry bforce_config[BFORCE_NUMBER_OF_KEYWORDS+1] = {
CONF_KEY(zmodem_start_block_size, CT_NUMBER),
CONF_KEY(zmodem_tx_window, CT_NUMBER),
CONF_KEY(nomail_flag, CT_STRING),
CONF_KEY(bind_ip, CT_STRING),
CONF_KEY(bind_ip, CT_STRING),
CONF_KEY(recieved_to_lower, CT_BOOLEAN),
#ifdef USE_SYSLOG
CONF_KEY(syslog_facility, CT_NUMBER),
#endif

@ -702,7 +702,7 @@ int p_rx_fopen(s_protinfo *pi, char *fn, size_t sz, time_t tm, mode_t mode)
/*
* Upper case file names convert to lower case.
*/
if( string_isupper(pi->recv->local_name) )
if( (string_isupper(pi->recv->local_name)) && conf_boolean(cf_recieved_to_lower))
string_tolower(pi->recv->local_name);
if( strcmp(pi->recv->local_name, pi->recv->net_name) )

@ -261,6 +261,7 @@ typedef enum {
cf_zmodem_tx_window,
cf_nomail_flag,
cf_bind_ip,
cf_recieved_to_lower,
#ifdef USE_SYSLOG
cf_syslog_facility,
#endif

Loading…
Cancel
Save