diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2020-05-04 22:38:08 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2020-05-04 22:41:01 +0100 |
commit | d8024efa365d10d2dba4f06977776f4091250462 (patch) | |
tree | 79c2c180cbc2849e460be903c3d784a1b582f075 /src | |
parent | 1ef01bc6ea1e26fac17df1bd5faf306478bab667 (diff) |
Consolidate $local_part_verified into $local_part_data
This removes the former; the latter having been around since before the last
release. The router check_local_user option now writes the latter
and -verified no longer exists.
Diffstat (limited to 'src')
-rw-r--r-- | src/src/configure.default | 2 | ||||
-rw-r--r-- | src/src/deliver.c | 1 | ||||
-rw-r--r-- | src/src/expand.c | 1 | ||||
-rw-r--r-- | src/src/globals.c | 2 | ||||
-rw-r--r-- | src/src/globals.h | 3 | ||||
-rw-r--r-- | src/src/route.c | 6 | ||||
-rw-r--r-- | src/src/structs.h | 1 |
7 files changed, 5 insertions, 11 deletions
diff --git a/src/src/configure.default b/src/src/configure.default index 40cc333f6..b758c8950 100644 --- a/src/src/configure.default +++ b/src/src/configure.default @@ -863,7 +863,7 @@ smarthost_smtp: local_delivery: driver = appendfile - file = /var/mail/$local_part_verified + file = /var/mail/$local_part_data delivery_date_add envelope_to_add return_path_add diff --git a/src/src/deliver.c b/src/src/deliver.c index c6e9aa66a..85b061b30 100644 --- a/src/src/deliver.c +++ b/src/src/deliver.c @@ -220,7 +220,6 @@ if (!addr->next) address_item *addr_orig; deliver_localpart = addr->local_part; - deliver_localpart_verified = addr->local_part_verified; deliver_localpart_prefix = addr->prefix; deliver_localpart_prefix_v = addr->prefix_v; deliver_localpart_suffix = addr->suffix; diff --git a/src/src/expand.c b/src/src/expand.c index 4f4cbbff3..7c9d48100 100644 --- a/src/src/expand.c +++ b/src/src/expand.c @@ -595,7 +595,6 @@ static var_entry var_table[] = { { "local_part_prefix_v", vtype_stringptr, &deliver_localpart_prefix_v }, { "local_part_suffix", vtype_stringptr, &deliver_localpart_suffix }, { "local_part_suffix_v", vtype_stringptr, &deliver_localpart_suffix_v }, - { "local_part_verified", vtype_stringptr, &deliver_localpart_verified }, #ifdef HAVE_LOCAL_SCAN { "local_scan_data", vtype_stringptr, &local_scan_data }, #endif diff --git a/src/src/globals.c b/src/src/globals.c index d630df030..ba772c631 100644 --- a/src/src/globals.c +++ b/src/src/globals.c @@ -187,7 +187,6 @@ const uschar **address_expansions[ADDRESS_EXPANSIONS_COUNT] = { CUSS &deliver_domain_orig, CUSS &deliver_domain_parent, CUSS &deliver_localpart, - CUSS &deliver_localpart_verified, CUSS &deliver_localpart_data, CUSS &deliver_localpart_orig, CUSS &deliver_localpart_parent, @@ -830,7 +829,6 @@ uschar *deliver_localpart_prefix = NULL; uschar *deliver_localpart_prefix_v = NULL; uschar *deliver_localpart_suffix = NULL; uschar *deliver_localpart_suffix_v = NULL; -uschar *deliver_localpart_verified = NULL; uschar *deliver_out_buffer = NULL; int deliver_queue_load_max = -1; address_item *deliver_recipients = NULL; diff --git a/src/src/globals.h b/src/src/globals.h index 039aaf3d1..3a8e824cf 100644 --- a/src/src/globals.h +++ b/src/src/globals.h @@ -488,14 +488,13 @@ extern int deliver_host_port; /* Address for remote delivery filter */ extern uschar *deliver_in_buffer; /* Buffer for copying file */ extern ino_t deliver_inode; /* Inode for appendfile */ extern uschar *deliver_localpart; /* The local part for delivery */ -extern uschar *deliver_localpart_data; /* From local part lookup */ +extern uschar *deliver_localpart_data; /* From local part lookup (de-tainted) */ extern uschar *deliver_localpart_orig; /* The original local part for delivery */ extern uschar *deliver_localpart_parent; /* The parent local part for delivery */ extern uschar *deliver_localpart_prefix; /* The stripped prefix, if any */ extern uschar *deliver_localpart_prefix_v; /* The stripped-prefix variable portion, if any */ extern uschar *deliver_localpart_suffix; /* The stripped suffix, if any */ extern uschar *deliver_localpart_suffix_v; /* The stripped-suffix variable portion, if any */ -extern uschar *deliver_localpart_verified; /* de-tainted by check_local_part */ extern uschar *deliver_out_buffer; /* Buffer for copying file */ extern int deliver_queue_load_max; /* Different value for queue running */ extern address_item *deliver_recipients; /* Current set of addresses */ diff --git a/src/src/route.c b/src/src/route.c index 7538b7565..a5f5feeaf 100644 --- a/src/src/route.c +++ b/src/src/route.c @@ -948,7 +948,7 @@ if ((rc = route_check_dls(r->name, US"local_parts", r->local_parts, login of a local user. Note: the third argument to route_finduser() must be NULL here, to prevent a numeric string being taken as a numeric uid. If the user is found, set deliver_home to the home directory, and also set -local_user_{uid,gid} and local_part_verified. */ +local_user_{uid,gid} and local_part_data. */ if (r->check_local_user) { @@ -959,8 +959,8 @@ if (r->check_local_user) r->name, addr->local_part); return SKIP; } - addr->local_part_verified = - deliver_localpart_verified = string_copy(US (*pw)->pw_name); + addr->prop.localpart_data = + deliver_localpart_data = string_copy(US (*pw)->pw_name); deliver_home = string_copy(US (*pw)->pw_dir); local_user_gid = (*pw)->pw_gid; local_user_uid = (*pw)->pw_uid; diff --git a/src/src/structs.h b/src/src/structs.h index ae37f3461..c6700d513 100644 --- a/src/src/structs.h +++ b/src/src/structs.h @@ -553,7 +553,6 @@ typedef struct address_item { uschar *cc_local_part; /* caseful local part */ uschar *lc_local_part; /* lowercased local part */ uschar *local_part; /* points to cc or lc version */ - uschar *local_part_verified; /* result from check_local_user */ uschar *prefix; /* stripped prefix of local part */ uschar *prefix_v; /* variable part of above */ uschar *suffix; /* stripped suffix of local part */ |