]> git.proxmox.com Git - pmg-api.git/commitdiff
typo fixes all over the place
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 21 Mar 2021 18:18:07 +0000 (19:18 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 21 Mar 2021 18:18:07 +0000 (19:18 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
43 files changed:
src/PMG/API2/APT.pm
src/PMG/API2/Cluster.pm
src/PMG/API2/MailTracker.pm
src/PMG/API2/Network.pm
src/PMG/API2/Quarantine.pm
src/PMG/API2/RuleDB.pm
src/PMG/API2/Rules.pm
src/PMG/API2/Services.pm
src/PMG/API2/Transport.pm
src/PMG/AtomicFile.pm
src/PMG/Backup.pm
src/PMG/CLI/pmgconfig.pm
src/PMG/CLI/pmgdb.pm
src/PMG/CLI/pmgreport.pm
src/PMG/DBTools.pm
src/PMG/ModGroup.pm
src/PMG/RuleDB.pm
src/PMG/RuleDB/Counter.pm
src/PMG/RuleDB/Disclaimer.pm
src/PMG/RuleDB/Domain.pm
src/PMG/RuleDB/EMail.pm
src/PMG/RuleDB/IPAddress.pm
src/PMG/RuleDB/IPNet.pm
src/PMG/RuleDB/LDAP.pm
src/PMG/RuleDB/LDAPUser.pm
src/PMG/RuleDB/Notify.pm
src/PMG/RuleDB/Object.pm
src/PMG/RuleDB/TimeFrame.pm
src/PMG/RuleDB/WhoRegex.pm
src/PMG/Service/pmgmirror.pm
src/PMG/Ticket.pm
src/PMG/Unpack.pm
src/PMG/UserConfig.pm
src/PMG/Utils.pm
src/PMG/pmgcfg.pm.in
src/bin/pmg-daily
src/bin/pmg-smtp-filter
src/bin/pmgbanner
src/bin/pmgpolicy
src/templates/local.cf.in
src/templates/master.cf.in
src/templates/master.cf.in.demo
src/tests/test_greylist.pl

index 51b998f925f6f6bdacf149b03d6af101dfd25259..6f191c900b5081610f532b9b7a975a7c549f6913 100644 (file)
@@ -414,7 +414,7 @@ __PACKAGE__->register_method({
                    }
                }
            }
-           die "package '$pkgname' version '$param->{version}' is not avalable\n" if !$ver;
+           die "package '$pkgname' version '$param->{version}' is not available\n" if !$ver;
        } else {
            $ver = $policy->candidate($p) || die "no installation candidate for package '$pkgname'\n";
        }
index eda382ccc7aedb561dc4b897e2732050c2ad2c5c..84dafabb6cc22bac10f27653d480ae4c9a959966 100644 (file)
@@ -122,7 +122,7 @@ __PACKAGE__->register_method({
     path => 'nodes',
     method => 'GET',
     description => "Cluster node index.",
-    # alway read local file
+    # always read local file
     parameters => {
        additionalProperties => 0,
        properties => {},
@@ -163,7 +163,7 @@ __PACKAGE__->register_method({
     path => 'status',
     method => 'GET',
     description => "Cluster node status.",
-    # alway read local file
+    # always read local file
     parameters => {
        additionalProperties => 0,
        properties => {
@@ -335,7 +335,7 @@ __PACKAGE__->register_method({
     path => 'create',
     method => 'POST',
     description => "Create initial cluster config with current node as master.",
-    # alway read local file
+    # always read local file
     parameters => {
        additionalProperties => 0,
        properties => {},
@@ -399,7 +399,7 @@ __PACKAGE__->register_method({
     path => 'join',
     method => 'POST',
     description => "Join local node to an existing cluster.",
-    # alway read local file
+    # always read local file
     protected => 1,
     parameters => {
        additionalProperties => 0,
index c4779ed03e3fbb9e44436de4c29c2462aea76525..187decfd924230e7c4b34f47471c5a86ea4e3c91 100644 (file)
@@ -391,7 +391,7 @@ __PACKAGE__->register_method({
            starttime => get_standard_option('pmg-starttime'),
            endtime => get_standard_option('pmg-endtime'),
            id => {
-               description => "Mail ID (as returend by the list API).",
+               description => "Mail ID (as returned by the list API).",
                type => 'string',
                minLength => 3,
                maxLength => 64,
index 4bf81c2f5bebc7a21f68f85bd8830a3046889ed5..a64a39474179612af208c5df438493ca844cc688 100644 (file)
@@ -59,12 +59,12 @@ my $confdesc = {
        optional => 1,
     },
     bridge_ports => {
-       description => "Specify the iterfaces you want to add to your bridge.",
+       description => "Specify the interfaces you want to add to your bridge.",
        optional => 1,
        type => 'string', format => 'pve-iface-list',
     },
     ovs_ports => {
-       description => "Specify the iterfaces you want to add to your bridge.",
+       description => "Specify the interfaces you want to add to your bridge.",
        optional => 1,
        type => 'string', format => 'pve-iface-list',
     },
index f7285cc1b8d5972d756201858c13829d4e942648..56f248d9095a477d6291fdc997053275760f3ef6 100644 (file)
@@ -52,7 +52,7 @@ my $verify_optional_pmail = sub {
     my $pmail;
     if ($role eq 'quser') {
        $pmail = $extract_pmail->($authuser, $role);
-       raise_param_exc({ pmail => "parameter not allwed with role '$role'"})
+       raise_param_exc({ pmail => "parameter not allowed with role '$role'"})
            if defined($pmail_param) && ($pmail ne $pmail_param);
     } else {
        raise_param_exc({ pmail => "parameter required with role '$role'"})
@@ -159,7 +159,7 @@ my $parse_header_info = sub {
 };
 
 my $pmail_param_type = get_standard_option('pmg-email-address', {
-    description => "List entries for the user with this primary email address. Quarantine users cannot speficy this parameter, but it is required for all other roles.",
+    description => "List entries for the user with this primary email address. Quarantine users cannot specify this parameter, but it is required for all other roles.",
     optional => 1,
 });
 
@@ -542,7 +542,7 @@ __PACKAGE__->register_method ({
     path => 'quarusers',
     method => 'GET',
     permissions => { check => [ 'admin', 'qmanager', 'audit'] },
-    description => "Get a list of users with whitelist/blacklist setttings.",
+    description => "Get a list of users with whitelist/blacklist settings.",
     parameters => {
        additionalProperties => 0,
        properties => {
@@ -1200,7 +1200,7 @@ __PACKAGE__->register_method ({
        additionalProperties => 0,
        properties => {
            id => {
-               description => 'Unique IDs, seperate with ;',
+               description => 'Unique IDs, separate with ;',
                type => 'string',
                pattern => 'C\d+R\d+T\d+(;C\d+R\d+T\d+)*',
            },
@@ -1279,7 +1279,7 @@ my sub send_link_mail {
        Data    => $text,
     );
 
-    # we use an empty envelope sender (we dont want to receive NDRs)
+    # we use an empty envelope sender (we don't want to receive NDRs)
     PMG::Utils::reinject_mail ($mail, '', [$receiver], undef, $fqdn);
 }
 
index 8ac83aa23cbebc58171eff475324294473ab7d27..1fddb32da92d0ea979af53e302ce700efc9c500d 100644 (file)
@@ -174,7 +174,7 @@ __PACKAGE__->register_method({
                maximum => 100,
            },
            direction => {
-               description => "Rule direction. Value `0` matches incomming mails, value `1` matches outgoing mails, and value `2` matches both directions.",
+               description => "Rule direction. Value `0` matches incoming mails, value `1` matches outgoing mails, and value `2` matches both directions.",
                type => 'integer',
                minimum => 0,
                maximum => 2,
index 3b2eb3e679fb2672b1c5d8fa4a0a5f55200388ae..4f8c10b34f108924be0bd37b3d6813cf78c38573 100644 (file)
@@ -162,7 +162,7 @@ __PACKAGE__->register_method ({
                optional => 1,
            },
            direction => {
-               description => "Rule direction. Value `0` matches incomming mails, value `1` matches outgoing mails, and value `2` matches both directions.",
+               description => "Rule direction. Value `0` matches incoming mails, value `1` matches outgoing mails, and value `2` matches both directions.",
                type => 'integer',
                minimum => 0,
                maximum => 2,
index a4ea96522efda09fa9b2537401e589992dcae60f..b0d3642804ec04f3e4452c3f6bd42a979b089564 100644 (file)
@@ -258,7 +258,7 @@ __PACKAGE__->register_method ({
        my $realcmd = sub {
            my $upid = shift;
 
-           syslog('info', "stoping service $param->{service}: $upid\n");
+           syslog('info', "stopping service $param->{service}: $upid\n");
 
            PMG::Utils::service_cmd($param->{service}, 'stop');
 
index 54edbc53f9dafd868eeda1d6d0e956e086129b15..2c71703442df6a3958cfe72dfd110d84d5bd671e 100644 (file)
@@ -282,7 +282,7 @@ __PACKAGE__->register_method ({
            PMG::Config::postmap_pmg_transport();
        };
 
-       PMG::Config::lock_config($code, "delete transport map extry failed");
+       PMG::Config::lock_config($code, "delete transport map entry failed");
 
        return undef;
     }});
index df1cc3cf63d698410e63b2bd7583b7ca73a8aa13..e2d222d1c97b1c50bbb32281316d8cafac7b43d6 100644 (file)
@@ -14,7 +14,7 @@ sub new {
 }
 
 sub DESTROY {
-    # dont close atomatically (explicit close required to commit changes)
+    # don't close automatically (explicit close required to commit changes)
 }
 
 1;
index 2f96412f472da83345728eae6822aa8691ed4613..a46167cca01360181204fb6fe3d78f38caa059d4 100644 (file)
@@ -177,7 +177,7 @@ sub pmg_backup {
 
        # dump the database first
        my $fh = PMG::AtomicFile->open("$dirname/$dbfn", "w") ||
-           die "cant open '$dirname/$dbfn' - $! :ERROR";
+           die "can't open '$dirname/$dbfn' - $! :ERROR";
 
        dumpdb($fh);
 
@@ -186,7 +186,7 @@ sub pmg_backup {
        if ($include_statistics) {
            # dump the statistic db
            my $sfh = PMG::AtomicFile->open("$dirname/$statfn", "w") ||
-               die "cant open '$dirname/$statfn' - $! :ERROR";
+               die "can't open '$dirname/$statfn' - $! :ERROR";
 
            dumpstatdb($sfh);
 
@@ -197,7 +197,7 @@ sub pmg_backup {
        my $release = PMG::pmgcfg::release();
 
        my $vfh = PMG::AtomicFile->open ("$dirname/$verfn", "w") ||
-           die "cant open '$dirname/$verfn' - $! :ERROR";
+           die "can't open '$dirname/$verfn' - $! :ERROR";
 
        $time = time;
        my $now = localtime;
@@ -387,7 +387,7 @@ sub send_backup_notification {
     my $cfg = PMG::Config->new();
     my $email = $cfg->get ('admin', 'email');
     if (!$email) {
-       warn "not sending notifcation: no admin email configured\n";
+       warn "not sending notification: no admin email configured\n";
        return;
     }
 
index 4f948cf85d69f5373668a653e0cf5850c572e905..cc036fa1f8caab1c980f9faab3e532b9eef450dd 100644 (file)
@@ -104,7 +104,7 @@ __PACKAGE__->register_method ({
     name => 'sync',
     path => 'sync',
     method => 'POST',
-    description => "Syncronize Proxmox Mail Gateway configurations with system configuration.",
+    description => "Synchronize Proxmox Mail Gateway configurations with system configuration.",
     parameters => {
        additionalProperties => 0,
        properties => {
@@ -134,7 +134,7 @@ __PACKAGE__->register_method ({
     name => 'ldapsync',
     path => 'ldapsync',
     method => 'POST',
-    description => "Syncronize the LDAP database.",
+    description => "Synchronize the LDAP database.",
     parameters => {
        additionalProperties => 0,
        properties => {},
index cabf619edc9aec7c223d8fa57e7eea29a4208c21..417e0087a0d3f51e082b27d2acada8f971012feb 100644 (file)
@@ -214,7 +214,7 @@ __PACKAGE__->register_method ({
        my ($param) = @_;
 
        my $dbh = PMG::DBTools::open_ruledb("Proxmox_ruledb");
-       print "Updateing Proxmox Statistic Databases... ";
+       print "Updating Proxmox Statistic Databases... ";
        my $cinfo = PVE::INotify::read_file("cluster.conf");
        PMG::Statistic::update_stats($dbh, $cinfo);
        print "done\n";
index c863fb3138bdb4c49b67fb1c334e89f9a4e794c1..3403e445333f8d8e81c952a6927384b689b1d969 100644 (file)
@@ -267,7 +267,7 @@ __PACKAGE__->register_method ({
                default => 0,
            },
            auto => {
-               description => "Auto mode. Use setting from system configuration (set when invoked fron cron).",
+               description => "Auto mode. Use setting from system configuration (set when invoked from cron).",
                type => 'boolean',
                optional => 1,
                default => 0,
index 269ff3b33c80885e68da697b9808bda90c971cf3..c1b59c672c47b104797f48f9c7a579bc7ea19f02 100644 (file)
@@ -286,7 +286,7 @@ my $cstatistic_ctablecmd =  <<__EOD;
 __EOD
 
 # user preferences (black an whitelists, ...)
-# Name: perference name ('BL' -> blacklist, 'WL' -> whitelist)
+# Name: preference name ('BL' -> blacklist, 'WL' -> whitelist)
 # Data: arbitrary data
 my $userprefs_ctablecmd =  <<__EOD;
     CREATE TABLE UserPrefs
index df26ff49369a489f550c179e97281d1327daf119..b0fa9a6cd3549e098949158e2a2de2435f10645a 100644 (file)
@@ -104,7 +104,7 @@ with a mail containing both disclaimers, which is not what we want.
 
 Another example is when you have receiver specific content filters,
 for example you don't want to get .exe files for a specific user, but
-allow it for everone else:
+allow it for everyone else:
 
   Rule1: user1@domain1.com && .exe attachments --> remove attachments
   Rule1: .*@domain2.com && .exe attachments --> accept
@@ -128,8 +128,8 @@ modification have to call:
     my_modify_entity ($entity, $targets);
   }
 
-That way we seemlessly hide the fact that mails are delivered to more
-than one receipient, without the requirement to make a copy for each
-receipient (which would lead to many unnecessays notification
+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
 target groups.
index 8b38ac07c4cbc4b0d17b9c0ddab415a7dd7e1184..faed404afce33397f73c71e2a98a32b247a004a5 100644 (file)
@@ -873,7 +873,7 @@ Attach an object to an object group.
 =head3 $ruledb->save_object ($obj)
 
 Save or update an object. This can be used to add new objects
-to the database (although group_add_object() is the prefered way):
+to the database (although group_add_object() is the preferred way):
 
     $obj =  PMG::RuleDB::EMail->new ('.*@mydomain.com');
     # we need to set the object group manually
index 67474c1ebe54a3a384eb7d29f77a4fa0962b0803..9872ab01d5f99d7045b824b8c79d2378b4935bc8 100644 (file)
@@ -146,7 +146,7 @@ __END__
 
 Counter Object
 
-=head2 Attribues
+=head2 Attributes
 
 =head3 count
 
index 104be72ca0cfd29664ca20349ad67bee3b7227f3..1b1accfcba474bb084e2f9d83d2e0d8df81d4016 100644 (file)
@@ -122,7 +122,7 @@ sub add_data {
 
     return undef if !$fh;
 
-    # in memory (we cant modify the file, because
+    # in memory (we can't modify the file, because
     # a.) that would modify all entities (see ModGroup)
     # b.) bad performance 
     my $body = new MIME::Body::InCore || return undef;
index 9d604731157b48ee802e45f946cba39e40bb5aff..e7343b4c676413cdc5037e6ca0080ded5b0c0fdc 100644 (file)
@@ -77,7 +77,7 @@ __END__
 
 A WHO object to check email domains.
 
-=head2 Attribues
+=head2 Attributes
 
 =head3 address
 
index c7a2369ee66dfe4b3043576dbd334a3e0ee9db32..d66146fa374c8978d7bfee6749ef04a2723e0500 100644 (file)
@@ -73,7 +73,7 @@ __END__
 
 A WHO object to check email addresses.
 
-=head2 Attribues
+=head2 Attributes
 
 =head3 address
 
index a27d299b2814eb18ea6faa3495be4cd0c9bfe448..ea0c941934de132db524b1a02d3950fb49a93477 100644 (file)
@@ -68,7 +68,7 @@ __END__
 
 A WHO object to check sender IP addresses.
 
-=head2 Attribues
+=head2 Attributes
 
 =head3 address
 
index ec94931b07f073aed1dfa6835c742f6248e23758..d4c31aafbff31316a69c4dd868f1f4ce61dcf83e 100644 (file)
@@ -72,7 +72,7 @@ __END__
 
 A WHO object to check sender IP addresses.
 
-=head2 Attribues
+=head2 Attributes
 
 =head3 address
 
index 677651bb6216de405b3ad84c01c3ecc9395f6bb2..e17441be3f79daf6232642e5ffa2c150afc781be 100644 (file)
@@ -242,7 +242,7 @@ __END__
 
 A WHO object to check LDAP groups
 
-=head2 Attribues
+=head2 Attributes
 
 =head3 ldapgroup
 
index 7a197993db45c22fcc7788aae62012f10f811d92..f5508702db50e298d21857cf28182ad04c667e1f 100644 (file)
@@ -179,7 +179,7 @@ __END__
 
 A WHO object to check LDAP users
 
-=head2 Attribues
+=head2 Attributes
 
 =head3 ldapuser
 
index ec18a7e5eafc7669b18c0e6db24d8fb9c4893c4f..6b964a6faaf780f4d9c74c6ef6b3590ed3f6aabe 100644 (file)
@@ -247,7 +247,7 @@ sub execute {
        print $fh "notify content:\n";
        
        if ($self->{attach} eq 'O') {
-           # make result reproducable for regression testing
+           # make result reproducible for regression testing
            $top->head->replace('content-type', 
                                'multipart/mixed; boundary="---=_1234567"');
        }
index 32c9dcbebe5dccf5473ee4dda34aad94c70f5d83..d554e5d4d8add0d81be6efbe91389b66a413ca0c 100644 (file)
@@ -346,7 +346,7 @@ is used in the database to uniquely identify object types.
 
 =head3 $obj->id
 
-Returns the unique database ID of the object. undef means the object is not jet stored in the databse.
+Returns the unique database ID of the object. undef means the object is not jet stored in the database.
 
 =head3 $obj->final()
 
index a01e730cc10463b2e2573fbd510b4646eb21a587..7b70a0434e8f9bcc7d373821943f57ce2efb5589 100644 (file)
@@ -187,7 +187,7 @@ __END__
 
 A WHEN object to check for a specific daytime.
 
-=head2 Attribues
+=head2 Attributes
 
 =head3 start
 
index a7c53664cd9f01e91583c8bbd704dde8189256a9..b9519adfe033513cfabcb005e6ce5a611a8798ed 100644 (file)
@@ -138,9 +138,9 @@ __END__
 
 =head1 PMG::RuleDB::WhoRegex
 
-A WHO object to check email addresses with regular expresssions.
+A WHO object to check email addresses with regular expressions.
 
-=head2 Attribues
+=head2 Attributes
 
 =head3 address
 
index 2655b90bacd7d88b32859e2d14062e9e9e6be9f9..42010ba96ba420f91ea198a54d96f713c29c5442 100644 (file)
@@ -92,7 +92,7 @@ sub cluster_sync {
 
     my $start_time = [ gettimeofday() ];
 
-    syslog ('info', "starting cluster syncronization");
+    syslog ('info', "starting cluster synchronization");
 
     my $master_ip = $cinfo->{master}->{ip};
     my $master_name = $cinfo->{master}->{name};
@@ -162,7 +162,7 @@ sub cluster_sync {
 
     my $dbtime = $cptime - $rsynctime - $csynctime;
 
-    syslog('info', sprintf("cluster syncronization finished  (%d errors, %.2f seconds " .
+    syslog('info', sprintf("cluster synchronization finished  (%d errors, %.2f seconds " .
                           "(files %.2f, database %.2f, config %.2f))",
                           $errcount, $cptime, $rsynctime, $dbtime, $csynctime));
 
index 1cef4a91bda8e248ed006909e3137f2e771b17df..294e3d613245ddcd9588ce639659d93271d4c585 100644 (file)
@@ -22,7 +22,7 @@ my $basedir = "/etc/pmg";
 
 my $pmg_api_cert_fn = "$basedir/pmg-api.pem";
 
-# this is just a secret accessable by all API servers
+# this is just a secret accessible by all API servers
 # and is used for CSRF prevention
 my $pmg_csrf_key_fn = "$basedir/pmg-csrf.key";
 
index 1de629a5786760a8ca043b00d58480ea819d4635..5de786cacdedc17ac7139abb47328fe82666ee70 100755 (executable)
@@ -102,7 +102,7 @@ sub helper_pipe_open {
 
     $inputfilename = '/dev/null' if !$inputfilename;
 
-    # same algorythm as used inside SA
+    # same algorithm as used inside SA
 
     my $fd = fileno (STDIN);
     close STDIN;
@@ -261,9 +261,9 @@ sub new {
     $self->{mime} = {};
     $self->{filenames} = {};
 
-    $self->{ufid} = 0; # counter to creat unique file names
-    $self->{udid} = 0; # counter to creat unique dir names
-    $self->{ulid} = 0; # counter to creat unique link names
+    $self->{ufid} = 0; # counter to create unique file names
+    $self->{udid} = 0; # counter to create unique dir names
+    $self->{ulid} = 0; # counter to create unique link names
 
     $self->{todo} = [];
 
@@ -463,7 +463,7 @@ sub check_comp_ratio {
 
     my $ratio = $usize/$compsize;
 
-    die "compresion ratio too large (> $self->{maxratio})"
+    die "compression ratio too large (> $self->{maxratio})"
        if $ratio > $self->{maxratio};
 }
 
@@ -472,7 +472,7 @@ sub check_quota {
 
     my $sizediff = $csize ? $size - $csize : $size;
 
-    die "compresion ratio too large (> $self->{maxratio})"
+    die "compression ratio too large (> $self->{maxratio})"
        if $self->{maxratio} && (($self->{size} + $sizediff) > $self->{ratioquota});
 
     die "archive too large (> $self->{quota})"
@@ -1059,7 +1059,7 @@ sub is_archive {
 # content types (detected by magic numbers and file extension)
 # Extracted files are stored inside 'tempdir'.
 #
-# returns: true if file is archive, undef otherwhise
+# returns: true if file is archive, undef otherwise
 
 sub unpack_archive {
     my ($self, $filename, $ct) = @_;
index f3bc2e315b304ee4942315a8f0ef3179be0742ea..42a7d207d274c816e5725dedbc98b7c0b5c5b62a 100644 (file)
@@ -79,7 +79,7 @@ my $schema = {
            optional => 1,
        },
        role => {
-           description => "User role. Role 'root' is reseved for the Unix Superuser.",
+           description => "User role. Role 'root' is reserved for the Unix Superuser.",
            type => 'string',
            enum => ['root', 'admin', 'helpdesk', 'qmanager', 'audit'],
        },
index 4341dbd16837c9c1b9f733f881b4717469318c04..51d6c70aecdc52a663fc7323161f9b28e6b9685a 100644 (file)
@@ -824,7 +824,7 @@ sub clamav_dbstat {
         my $header;
        my $fh = IO::File->new("<$dbfile");
        if (!$fh) {
-           warn "cant open ClamAV Database $dbname ($dbfile) - $!\n";
+           warn "can't open ClamAV Database $dbname ($dbfile) - $!\n";
            return;
        }
        $fh->read($header, 512);
@@ -1236,7 +1236,7 @@ sub finalize_report {
        $top->print();
        return;
     }
-    # we use an empty envelope sender (we dont want to receive NDRs)
+    # we use an empty envelope sender (we don't want to receive NDRs)
     PMG::Utils::reinject_mail ($top, '', [$receiver], undef, $data->{fqdn});
 }
 
index 5b8506bc41656ebee7fe2195c9e79d3305686ae5..5a50427cd199fd2563817c1eb1deb50c1c2ecde0 100644 (file)
@@ -19,7 +19,7 @@ sub repoid {
     return '@REPOID@';
 }
 
-# this is diplayed on the GUI
+# this is displayed on the GUI
 sub version_text {
     return '@VERSION@/@REPOID@';
 }
index d454c629ed2378e2150f6ab75d391b4e6c03f3e0..b06515cc3ad24a7c2d3c97ac3b1b457b6d8596ad 100755 (executable)
@@ -59,7 +59,7 @@ if (my $statlifetime = $cfg->get ('admin', 'statlifetime')) {
 }
 
 # check for available updates
-# We assume that users with subscriptions want informations
+# We assume that users with subscriptions want information
 # about new packages.
 my $info = PVE::INotify::read_file('subscription');
 my $notify = ($info && $info->{status} eq 'Active') ? 1 : 0;
@@ -90,7 +90,7 @@ eval {
 syslog('err', "$@") if $@;
 
 PMG::Utils::service_cmd('pmg-smtp-filter', 'restart') if $restart_filter;
-# run bayes database maintainance
+# run bayes database maintenance
 system('sa-learn --force-expire >/dev/null 2>&1');
 
 eval {
index 1f3087581d9e8f46df5d99c975d64375a81e7d65..b070c8ef3dd84540733a1b040b1cb27c11179e44 100755 (executable)
@@ -464,7 +464,7 @@ sub pre_loop_hook {
        # reloading server configuration
        if (defined $prop->{children}) {
            foreach my $pid (keys %{$prop->{children}}) {
-               kill (10, $pid); # SIGUSR1 childs
+               kill (10, $pid); # SIGUSR1 children
            }
        }
     }
@@ -506,7 +506,7 @@ sub run_dequeue {
 
     my $err;
 
-    # do database maintainance here
+    # do database maintenance here
 
     # this is called every 30 secends
     eval {
@@ -525,7 +525,7 @@ sub run_dequeue {
 
     $last_dequeue_time = $ctime;
 
-    $self->log (2, "starting database maintainance");
+    $self->log (2, "starting database maintenance");
 
     my ($csec, $usec) = gettimeofday ();
 
@@ -552,7 +552,7 @@ sub run_dequeue {
     if ($err) {
        $self->log (0, $err);
     } else {
-       $self->log (2, "end database maintainance ($ptime ms)");
+       $self->log (2, "end database maintenance ($ptime ms)");
     }
 
     $dbh->disconnect() if $dbh;
@@ -930,11 +930,11 @@ sub pre_server_close_hook {
 
     if (defined $prop->{children}) {
        foreach my $pid (keys %{$prop->{children}}) {
-           kill (1, $pid); # HUP childs
+           kill (1, $pid); # HUP children
        }
     }
 
-    # nicely shutdown childs (give them max 30 seconds to shut down)
+    # nicely shutdown children (give them max 30 seconds to shut down)
     my $previous_alarm = alarm(30);
     eval {
        local $SIG{ALRM} = sub { die "Timed Out!\n" };
index 051b4da3591deace356b79a0d3c3f0c56f2959ac..f0cea2a143c2822912002afa3e7e2313de1ec79b 100755 (executable)
@@ -22,7 +22,7 @@ if (my $err = $@) { # FIXME: HACK: cope better with managed CTs and DHCP
     my $in_ct = detect_container();
     die $err if !$in_ct;
     warn "ignore failure to get local IP of $nodename, we're in a container ($in_ct)\n";
-    $localip = '<uknown>';
+    $localip = '<unknown>';
 }
 
 my $xline = '-' x 78;
index 9c279470b9a1589c6f9870d5f483ccc8b3ad26b5..58a48b7ca23c512564218ad256761f018541f6ee 100755 (executable)
@@ -129,7 +129,7 @@ sub update_rbl_stats {
 sub run_dequeue {
     my $self = shift;
 
-    $self->log(2, "starting policy database maintainance (greylist, rbl)");
+    $self->log(2, "starting policy database maintenance (greylist, rbl)");
 
     my $cinfo = PMG::ClusterConfig->new();
     my $lcid = $cinfo->{local}->{cid};
@@ -274,7 +274,7 @@ sub run_dequeue {
        $self->log(0, "greylist database update error: $err");
     }
 
-    $self->log(2, "end policy database maintainance ($rbltime ms, $ptime ms)");
+    $self->log(2, "end policy database maintenance ($rbltime ms, $ptime ms)");
 
     $dbh->disconnect() if $dbh;
 }
@@ -292,7 +292,7 @@ sub pre_loop_hook {
        # reloading server configuration
        if (defined $prop->{children}) {
            foreach my $pid (keys %{$prop->{children}}) {
-               kill(10, $pid); # SIGUSR1 childs
+               kill(10, $pid); # SIGUSR1 children
            }
        }
     };
@@ -412,7 +412,7 @@ sub get_spf_result {
     my $auth_expl;
 
     # we only use helo tests when we have no sender,
-    # helo is sometimes empty, so we cant use SPF helo tests
+    # helo is sometimes empty, so we can't use SPF helo tests
     # in that case - strange
     if ($helo && !$sender) {
        my $query;
@@ -489,7 +489,7 @@ sub is_backup_mx {
        $self->{cache}->{$dkey}->{status} = 1;
        my @mxa = grep { $_->type eq 'MX' } $mx->answer;
        my @mxl = sort { $a->preference <=> $b->preference } @mxa;
-       # shift @mxl; # optionaly skip primary MX ?
+       # shift @mxl; # optionally skip primary MX ?
        foreach my $rr (@mxl) {
            my $a = $resolver->send ($rr->exchange, 'A');
            if ($a) {
@@ -534,7 +534,7 @@ sub greylist_value {
     if (defined ($user) && defined ($domain)) {
        # see http://cr.yp.to/proto/verp.txt
        $user =~ s/\+.*//; # strip extensions  (mailing-list VERP)
-       $user =~ s/\b\d+\b/#/g; #replace nubmers in VERP address
+       $user =~ s/\b\d+\b/#/g; #replace numbers in VERP address
        $sender = "$user\@$domain";
     }
 
@@ -665,7 +665,7 @@ sub greylist_value {
 
     eval {
 
-       # we dont use alarm here, because it does not work with DBI
+       # we don't use alarm here, because it does not work with DBI
 
        $dbh->begin_work;
 
@@ -861,11 +861,11 @@ sub pre_server_close_hook {
 
     if (defined $prop->{children}) {
        foreach my $pid (keys %{$prop->{children}}) {
-           kill(1, $pid); # HUP childs
+           kill(1, $pid); # HUP children
        }
     }
 
-    # nicely shutdown childs (give them max 30 seconds to shut down)
+    # nicely shutdown children (give them max 30 seconds to shut down)
     my $previous_alarm = alarm(30);
     eval {
        local $SIG{ALRM} = sub { die "Timed Out!\n" };
@@ -898,7 +898,7 @@ sub setup_fork_signal_mask {
 # subroutine to start up a specified number of children.
 # We need to block signals until handlers are set up correctly.
 # Else its possible that HUP occurs after fork, which triggers
-# singal TERM at childs and calls server_close() instead of
+# signal TERM at children and calls server_close() instead of
 # simply exit the child.
 # Note: on server startup signals are setup to trigger
 # asynchronously for a short period of time (in PreForkSimple]::loop,
index 899f9704f2d7ae0b8c4bfbdd6b5fd488bfaaddbe..f1106fe5371f74d92ffc29e78dbfa692565a9016 100644 (file)
@@ -1,4 +1,4 @@
-# dont use things by default
+# don't use things by default
 use_bayes 0
 bayes_auto_expire 0
 bayes_learn_to_journal 1
index b7761ea821dba16183b5ea145a23e62daf3750ad..046af19c08bacc524cd9d2c58ba896646970ea7c 100644 (file)
@@ -56,7 +56,7 @@
 # in the main.cf configuration file). See individual command man pages
 # for specific command-line options, if any.
 #
-# In order to use the "uucp" message tranport below, set up entries
+# In order to use the "uucp" message transport below, set up entries
 # in the transport table.
 #
 # In order to use the "cyrus" message transport below, configure it
index 44f806c742e6e3f9d62a5063582a2948d2fbeccb..a5e225adb4ca1505f542b2b5a2db7d0f064ff8b1 100644 (file)
@@ -56,7 +56,7 @@
 # in the main.cf configuration file). See individual command man pages
 # for specific command-line options, if any.
 #
-# In order to use the "uucp" message tranport below, set up entries
+# In order to use the "uucp" message transport below, set up entries
 # in the transport table.
 #
 # In order to use the "cyrus" message transport below, configure it
index 258a6826021d36a9f58ab4dd056c4eee72744fd8..3aa613f3789427e4b1affcd1542d2a1bc87e8a3b 100755 (executable)
@@ -209,7 +209,7 @@ sender=xyz\@$testdomain
 recipient=testspf\@maurer-it.com
 _EOD
 
-# we currently hav no backup mx, so we cant test this
+# we currently hav no backup mx, so we can't test this
 #gltest ($data_ok, $testtime, 'dunno'); # mail from backup mx
 
 $testdomain = "openspf.org"; # rejects everything