Users may be zeroes or blanks.
---
script/public-inbox-learn | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/script/public-inbox-learn b/script/public-inbox-learn
index ad132985..299f75a0 100755
--- a/script/public-inbox-learn
+++ b/script/public-inbox-learn
@@ -65,8 +65,8 @@ if ($train eq 'spam') {
next unless ref($dst);
# We do not touch GIT_COMMITTER_* env here so we can track
# who trained the message.
- $dst->{name} = $ENV{GIT_COMMITTER_NAME} || $dst->{name};
- $dst->{-primary_address} = $ENV{GIT_COMMITTER_EMAIL} || $addr;
+ $dst->{name} = $ENV{GIT_COMMITTER_NAME} // $dst->{name};
+ $dst->{-primary_address} = $ENV{GIT_COMMITTER_EMAIL} // $addr;
$dst = PublicInbox::InboxWritable->new($dst);
my $im = $dst->importer(0);
--
unsubscribe: [email protected]
archive: https://public-inbox.org/meta/