[Bps-public-commit] app-wsgetmail branch fix-and-document-command_timeout updated. 04ad657feed704afbce67c836e178d8c2ad4a529

BPS Git Server git at git.bestpractical.com
Wed Apr 20 23:25:30 UTC 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "app-wsgetmail".

The branch, fix-and-document-command_timeout has been updated
       via  04ad657feed704afbce67c836e178d8c2ad4a529 (commit)
      from  dcb08514484b789556d628f758b8f4be2846d130 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 04ad657feed704afbce67c836e178d8c2ad4a529
Author: Blaine Motsinger <blaine at bestpractical.com>
Date:   Wed Apr 20 18:24:02 2022 -0500

    Move config_fields array into BUILDARGS sub
    
    The config_files array is only used inside of BUILDARGS.

diff --git a/lib/App/wsgetmail/MDA.pm b/lib/App/wsgetmail/MDA.pm
index ba7d0a7..9430f0a 100644
--- a/lib/App/wsgetmail/MDA.pm
+++ b/lib/App/wsgetmail/MDA.pm
@@ -154,8 +154,6 @@ has debug => (
 );
 
 
-
-my @config_fields = qw( command command_args command_timeout debug );
 around BUILDARGS => sub {
     my ( $orig, $class, $config ) = @_;
 
@@ -163,7 +161,7 @@ around BUILDARGS => sub {
         map {
             defined $config->{$_} && $_ => $config->{$_}
         }
-        @config_fields
+        qw(command command_args command_timeout debug)
     };
 
     return $class->$orig($attributes);
diff --git a/lib/App/wsgetmail/MS365.pm b/lib/App/wsgetmail/MS365.pm
index f734151..b1e71aa 100644
--- a/lib/App/wsgetmail/MS365.pm
+++ b/lib/App/wsgetmail/MS365.pm
@@ -225,7 +225,6 @@ has _next_fetch_url => (
 );
 
 
-my @config_fields = qw(client_id tenant_id username user_password global_access secret folder post_fetch_action debug);
 around BUILDARGS => sub {
     my ( $orig, $class, $config ) = @_;
 
@@ -233,7 +232,7 @@ around BUILDARGS => sub {
         map {
             defined $config->{$_} && $_ => $config->{$_}
         }
-        @config_fields
+        qw(client_id tenant_id username user_password global_access secret folder post_fetch_action debug)
     };
 
     return $class->$orig($attributes);

-----------------------------------------------------------------------

Summary of changes:
 lib/App/wsgetmail/MDA.pm   | 4 +---
 lib/App/wsgetmail/MS365.pm | 3 +--
 2 files changed, 2 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
app-wsgetmail


More information about the Bps-public-commit mailing list