]> git.proxmox.com Git - pmg-api.git/commitdiff
smtp-filter: whitespace and indentation clean-ups
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Feb 2024 13:27:56 +0000 (14:27 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Feb 2024 13:28:03 +0000 (14:28 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/bin/pmg-smtp-filter

index 835af2d7a13d02e6589c4a9e8aad331f7d94dfdf..854d9bb4cb9e58ca2ad37a6241b0903c59da7dbb 100755 (executable)
@@ -70,10 +70,12 @@ my $prog_name = 'pmg-smtp-filter';
 
 initlog($prog_name, 'mail');
 
-if (!GetOptions ('testmode=s' => \$opt_testmode,
-                'pidfile=s' => \$opt_pidfile,
-                'untrusted' => \$opt_untrusted,
-                'database=s' => \$opt_database)) {
+if (!GetOptions(
+    'testmode=s' => \$opt_testmode,
+    'pidfile=s' => \$opt_pidfile,
+    'untrusted' => \$opt_untrusted,
+    'database=s' => \$opt_database
+)) {
     die "usage error\n";
     exit (-1);
 }
@@ -949,9 +951,11 @@ if (!$opt_testmode) {
     } else {
 
        my $sender ='sender@pmg.example';
-       my $targets = ['target1@pmg.example',
-                      'target2@pmg.example',
-                      'target3@pmg.example'];
+       my $targets = [
+           'target1@pmg.example',
+           'target2@pmg.example',
+           'target3@pmg.example',
+       ];
 
        my $smtp;
        while (!$smtp) {