about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-04-07 21:55:54 +0000
committerEric Wong <e@yhbt.net>2020-04-09 05:41:57 +0000
commit4da62f284003d75abe7cb35594414eb2224f42bc (patch)
treedd25b2c4be46c954176c2a85f14e13709bf5d5dd
parentcffc7d4fc1c36169654f8447b23b3c5c43830eed (diff)
downloadpublic-inbox-4da62f284003d75abe7cb35594414eb2224f42bc.tar.gz
Dikshunarees R gude!
-rw-r--r--lib/PublicInbox/DS.pm2
-rw-r--r--lib/PublicInbox/Hval.pm2
-rw-r--r--lib/PublicInbox/MsgTime.pm2
-rw-r--r--lib/PublicInbox/SearchIdx.pm2
-rw-r--r--lib/PublicInbox/SearchThread.pm2
-rw-r--r--lib/PublicInbox/View.pm2
-rw-r--r--t/data/0001.patch2
-rw-r--r--t/httpd-corner.t2
-rw-r--r--t/mda.t2
-rw-r--r--t/search.t2
10 files changed, 10 insertions, 10 deletions
diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm
index 4d685131..01c8917e 100644
--- a/lib/PublicInbox/DS.pm
+++ b/lib/PublicInbox/DS.pm
@@ -615,7 +615,7 @@ sub shutdn_tls_step ($) {
 }
 
 # don't bother with shutdown($sock, 2), we don't fork+exec w/o CLOEXEC
-# or fork w/o exec, so no inadvertant socket sharing
+# or fork w/o exec, so no inadvertent socket sharing
 sub shutdn ($) {
     my ($self) = @_;
     my $sock = $self->{sock} or return;
diff --git a/lib/PublicInbox/Hval.pm b/lib/PublicInbox/Hval.pm
index 23233f0e..46a83916 100644
--- a/lib/PublicInbox/Hval.pm
+++ b/lib/PublicInbox/Hval.pm
@@ -80,7 +80,7 @@ sub obfuscate_addrs ($$;$) {
         my $ibx = $_[0];
         my $repl = $_[2] // '&#8226;';
         my $re = $ibx->{-no_obfuscate_re}; # regex of domains
-        my $addrs = $ibx->{-no_obfuscate}; # { adddress => 1 }
+        my $addrs = $ibx->{-no_obfuscate}; # { $address => 1 }
         $_[1] =~ s/(([\w\.\+=\-]+)\@([\w\-]+\.[\w\.\-]+))/
                 my ($addr, $user, $domain) = ($1, $2, $3);
                 if ($addrs->{$addr} || ((defined $re && $domain =~ $re))) {
diff --git a/lib/PublicInbox/MsgTime.pm b/lib/PublicInbox/MsgTime.pm
index bd7ef811..920e8f8a 100644
--- a/lib/PublicInbox/MsgTime.pm
+++ b/lib/PublicInbox/MsgTime.pm
@@ -95,7 +95,7 @@ sub str2date_zone ($) {
                 $sign = '+' if $off == 0;
                 $zone = sprintf('%s%02d%02d', $sign, $tz_hh, $tz_mm);
 
-        # Time::Zone and Date::Parse are part of the same distibution,
+        # Time::Zone and Date::Parse are part of the same distribution,
         # and we need Time::Zone to deal with tz names like "EDT"
         } elsif (eval { require Date::Parse }) {
                 $ts = Date::Parse::str2time($date);
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index 9a5484e3..05689941 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -634,7 +634,7 @@ sub _git_log {
         my $git = $self->{git};
 
         if (index($range, '..') < 0) {
-                # don't show annoying git errrors to users who run -index
+                # don't show annoying git errors to users who run -index
                 # on empty inboxes
                 $git->qx(qw(rev-parse -q --verify), "$range^0");
                 if ($?) {
diff --git a/lib/PublicInbox/SearchThread.pm b/lib/PublicInbox/SearchThread.pm
index 8b2cb805..38d1aa6e 100644
--- a/lib/PublicInbox/SearchThread.pm
+++ b/lib/PublicInbox/SearchThread.pm
@@ -29,7 +29,7 @@ sub thread {
         # Sadly, we sort here anyways since the fill-in-the-blanks References:
         # can be shakier if somebody used In-Reply-To with multiple, disparate
         # messages.  So, take the client Date: into account since we can't
-        # alway determine ordering when somebody uses multiple In-Reply-To.
+        # always determine ordering when somebody uses multiple In-Reply-To.
         # We'll trust the client Date: header here instead of the Received:
         # time since this is for display (and not retrieval)
         _add_message($id_table, $_) for sort { $a->{ds} <=> $b->{ds} } @$msgs;
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 33b323dc..b6d7acaf 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -150,7 +150,7 @@ sub in_reply_to {
 sub fold_addresses ($) {
         return $_[0] if length($_[0]) <= COLS;
         # try to fold on commas after non-word chars before $lim chars,
-        # Try to get the "," preceeded by ">" or ")", but avoid folding
+        # Try to get the "," preceded by ">" or ")", but avoid folding
         # on the comma where somebody uses "Lastname, Firstname".
         # We also try to keep the last and penultimate addresses in
         # the list on the same line if possible, hence the extra \z
diff --git a/t/data/0001.patch b/t/data/0001.patch
index b7964a2b..4d0e52fc 100644
--- a/t/data/0001.patch
+++ b/t/data/0001.patch
@@ -12,7 +12,7 @@ still allows probabilistic searches on everything that's in a
 "git diff", including the blob names which were just made
 boolean.
 
-Note, attachment filenames ("n:" prefix) will stil use
+Note, attachment filenames ("n:" prefix) will still use
 probabilistic search, as they're hardly standardized.
 ---
  lib/PublicInbox/Search.pm | 6 +++---
diff --git a/t/httpd-corner.t b/t/httpd-corner.t
index cbfc8332..89f2866b 100644
--- a/t/httpd-corner.t
+++ b/t/httpd-corner.t
@@ -544,7 +544,7 @@ SKIP: {
 }
 
 {
-        my $conn = conn_for($sock, '1.1 Connnection: close');
+        my $conn = conn_for($sock, '1.1 Connection: close');
         $conn->write("PUT /sha1 HTTP/1.1\r\nConnection:close\r\n");
         delay();
         $conn->write("Content-Length: $len\r\n\r\n$str");
diff --git a/t/mda.t b/t/mda.t
index 3bdccb49..ddc0c279 100644
--- a/t/mda.t
+++ b/t/mda.t
@@ -34,7 +34,7 @@ my $fail_bad_header = sub ($$$) {
                 "no error on undeliverable ($msg)");
         my $rev = $git->qx(qw(rev-list HEAD));
         chomp $rev;
-        is($rev, $good_rev, "bad revision not commited ($msg)");
+        is($rev, $good_rev, "bad revision not committed ($msg)");
         @f = glob("$faildir/*/*");
         is(scalar @f, 1, "faildir written to");
         [ $in, $out, $err ];
diff --git a/t/search.t b/t/search.t
index 3213ac2a..839a320a 100644
--- a/t/search.t
+++ b/t/search.t
@@ -229,7 +229,7 @@ $ibx->with_umask(sub {
         $rw_commit->();
         $ro->reopen;
         my $t = $ro->{over_ro}->get_thread('root@s');
-        is(scalar(@$t), 4, "got all 4 mesages in thread");
+        is(scalar(@$t), 4, "got all 4 messages in thread");
         my @exp = sort($long_reply_mid, 'root@s', 'last@s', $long_mid);
         @res = filter_mids($t);
         is_deeply(\@res, \@exp, "get_thread works");