]> git.proxmox.com Git - pmg-api.git/commitdiff
tree-wide typo fixes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Feb 2024 08:27:15 +0000 (09:27 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Feb 2024 12:50:28 +0000 (13:50 +0100)
mostly found using `codespell -L attribut`

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/Makefile
src/PMG/API2/AccessControl.pm
src/PMG/API2/RuleDB.pm
src/PMG/API2/Rules.pm
src/PMG/CLI/pmg7to8.pm
src/PMG/Config.pm
src/PMG/Fetchmail.pm
src/PMG/ModGroup.pm
src/PMG/Utils.pm
src/bin/pmgsh
src/tests/test_greylist.pl

index 7df54499b8873c470396242a67523d19237b2912..8e49a105b233be2fadf178c811f0794e66218985 100644 (file)
@@ -227,7 +227,7 @@ pmg7to8.1: bin/pmg7to8
        printf ".TH PMGTO8 1\n.SH NAME\npmg7to8 \- Proxmox Mail Gateway upgrade checker script for 7.3+ to current 8.x\n" > $@.tmp
        printf ".SH DESCRIPTION\nThis tool will help you to detect common pitfalls and misconfguration\
         before, and during the upgrade of a Proxmox Mail Gateway system\n" >> $@.tmp
-       printf "Any failure must be addressed before the upgrade, and any waring must be addressed, \
+       printf "Any failure must be addressed before the upgrade, and any warning must be addressed, \
         or at least carefully evaluated, if a false-positive is suspected\n" >> $@.tmp
        printf ".SH SYNOPSIS\npmg7to8\n" >> $@.tmp
        mv $@.tmp $@
index 779d1b31a4cb49afe570e66bfa192540e3ecf4cf..e26ae70260264adf1dc4d3a04667bfab7f5a54a1 100644 (file)
@@ -183,7 +183,7 @@ __PACKAGE__->register_method ({
     path => 'ticket',
     method => 'GET',
     permissions => { user => 'world' },
-    description => "Dummy. Useful for formaters which want to priovde a login page.",
+    description => "Dummy. Useful for formatters which want to priovde a login page.",
     parameters => {
        additionalProperties => 0,
     },
index 6d27b147e14671211018497a1340042a71c0d682..774bbf18fee7b11f8a9023291cd69b7a1a175dfd 100644 (file)
@@ -168,7 +168,7 @@ __PACKAGE__->register_method({
                type => 'string',
            },
            priority => {
-               description => "Rule priotity.",
+               description => "Rule priority.",
                type => 'integer',
                minimum => 0,
                maximum => 100,
index 1ebadc20ec432ca9b17a26a5a28daa96ed11dcf1..85562466fd85ebe0a78d908a2920ad0042d5ea4b 100644 (file)
@@ -230,7 +230,7 @@ __PACKAGE__->register_method ({
                optional => 1,
            },
            priority => {
-               description => "Rule priotity.",
+               description => "Rule priority.",
                type => 'integer',
                minimum => 0,
                maximum => 100,
index 947e9e33cae088d80e85cf6b71c9f7990eb58917..6d2f6fa069bd8843701af3342a65ec8922ac8495 100644 (file)
@@ -211,7 +211,7 @@ sub check_pmg_packages {
            }
        } elsif ($get_pkg->($kinstalled)) {
            # with 6.2 kernel being available in both we might want to fine-tune the check?
-           log_warn("a suitable kernel ($kinstalled) is intalled, but an unsuitable ($kernel_ver) is booted, missing reboot?!");
+           log_warn("a suitable kernel ($kinstalled) is installed, but an unsuitable ($kernel_ver) is booted, missing reboot?!");
        } else {
            log_warn("unexpected running and installed kernel '$kernel_ver'.");
        }
index 7348c00772a5b2e1695a3ab71820de6b4399f085..fefded13fac63a8082c296417d156061657ce963 100644 (file)
@@ -678,7 +678,7 @@ sub properties {
            default => 0,
        },
        verifyreceivers => {
-           description => "Enable receiver verification. The value spefifies the numerical reply"
+           description => "Enable receiver verification. The value specifies the numerical reply"
                ." code when the Postfix SMTP server rejects a recipient address."
                ." (postfix options `reject_unknown_recipient_domain`, `reject_unverified_recipient`,"
                ." and `unverified_recipient_reject_code`)",
index 7e16c7967767a3a7b45198e0f5226bded569d82e..5d71399436246737c740e1d0a9a168f251434195 100644 (file)
@@ -135,7 +135,7 @@ sub read_fetchmail_conf {
 
        my $get_token_argument = sub {
            my ($token, $string) = $get_next_token->();
-           die "line $linenr: missing token arguemnt\n" if !$token;
+           die "line $linenr: missing token argument\n" if !$token;
            return $string // $token;
        };
 
index d4e1cd5c7a7e6941c1c14139af69769d5ace2203..464975575c093e78d504c38d22fc7fc01e3f7cf5 100644 (file)
@@ -90,7 +90,7 @@ sub explode {
     my $ea = $self->{ea};
     my $res;
 
-    # TODO: implment it more direclty with less overhead!
+    # TODO: implement it more directly with less overhead!
     for my $target ($targets->@*) {
        $self->subgroups([$target]);
     }
@@ -148,5 +148,5 @@ modification have to call:
 That way we seamlessly hide the fact that mails are delivered to more
 than one recipient, without the requirement to make a copy for each
 recipient (which would lead to many unnecessays notification
-mail). Insead we only make a minimum number of copies for specific
+mail). Instead we only make a minimum number of copies for specific
 target groups.
index afccaf4ce381a45859e586bfc4210aab1d9a6826..5d9ded44859afd5f7f4870e2aa33e6c2b286ab92 100644 (file)
@@ -3,7 +3,7 @@ package PMG::Utils;
 use strict;
 use warnings;
 use utf8;
-# compat for older perl code which allows arbitray binary data (including invalid UTF-8)
+# compat for older perl code which allows arbitrary binary data (including invalid UTF-8)
 # TODO: can we remove this (as our perl source texts should be all UTF-8 compatible)?
 no utf8;
 
@@ -972,13 +972,13 @@ my $rrd_def_node = [
     "RRA:AVERAGE:0.5:30:70", # 30 min avg - one day
     "RRA:AVERAGE:0.5:180:70", # 3 hour avg - one week
     "RRA:AVERAGE:0.5:720:70", # 12 hour avg - one month
-    "RRA:AVERAGE:0.5:10080:70", # 7 day avg - ony year
+    "RRA:AVERAGE:0.5:10080:70", # 7 day avg - one year
 
     "RRA:MAX:0.5:1:70", # 1 min max - one hour
     "RRA:MAX:0.5:30:70", # 30 min max - one day
     "RRA:MAX:0.5:180:70", # 3 hour max - one week
     "RRA:MAX:0.5:720:70", # 12 hour max - one month
-    "RRA:MAX:0.5:10080:70", # 7 day max - ony year
+    "RRA:MAX:0.5:10080:70", # 7 day max - one year
 ];
 
 sub cond_create_rrd_file {
index 7499c425072076da46aa15013de4fdab433da84f..b164b9b7baffc7eb42bd0314ba2b72d0e38f6f51 100755 (executable)
@@ -76,7 +76,7 @@ if (scalar (@ARGV) != 0) {
     exit(-1);
 }
 
-# only set up once actually required allows calling verifyapi in restriced clean sbuild env
+# only set up once actually required allows calling verifyapi in restricted clean sbuild env
 PMG::RESTEnvironment->setup_default_cli_env();
 initlog($ENV{PVE_LOG_ID} || 'pmgsh');
 
@@ -140,7 +140,7 @@ $attribs->{attempted_completion_function} = sub {
     my ($text, $line, $start) = @_;
 
     my $prefix = substr($line, 0, $start);
-    if ($prefix =~ /^\s*$/) { # first word (command completeion)
+    if ($prefix =~ /^\s*$/) { # first word (command completion)
        $attribs->{completion_word} = [qw(help ls cd get set create delete quit)];
        return $term->completion_matches($text, $attribs->{list_completion_function});
     }
index 6a5a11a8a91fdd1e413fc751b81c373173e38c6f..44fd59e87676a8bb0c3616b5ce20071ebfbed5e6 100755 (executable)
@@ -215,7 +215,7 @@ sender=xyz\@$testdomain
 recipient=testspf\@maurer-it.com
 _EOD
 
-# we currently hav no backup mx, so we can't test this
+# we currently have no backup mx, so we can't test this
 #gltest ($data_ok, $testtime, 'dunno'); # mail from backup mx
 
 $testdomain = "openspf.org"; # rejects everything