[Bps-public-commit] app-wsgetmail branch master updated. 0.07-4-g071f3b8

BPS Git Server git at git.bestpractical.com
Fri Sep 23 19:17:48 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, master has been updated
       via  071f3b89cdbfc66406610a2a03cf3e4f757f71c3 (commit)
       via  298c2c08bb6a120610a075119de8d4e2071a34cd (commit)
       via  6c866b6cc987c7040f429df2c151fa0c231f9769 (commit)
       via  edc1a9978d7d6f070945b4d6339707e1caf0e935 (commit)
      from  a7c57e246715a27fd24325496785b51703e34adb (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 071f3b89cdbfc66406610a2a03cf3e4f757f71c3
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Sat Sep 24 03:15:54 2022 +0800

    Prep 0.08

diff --git a/META.yml b/META.yml
index 102d520..55e1b13 100644
--- a/META.yml
+++ b/META.yml
@@ -41,4 +41,4 @@ requires:
   warnings: 0
 resources:
   license: http://opensource.org/licenses/gpl-license.php
-version: '0.07'
+version: '0.08'
diff --git a/lib/App/wsgetmail.pm b/lib/App/wsgetmail.pm
index ab4e3d8..b4c7aaa 100644
--- a/lib/App/wsgetmail.pm
+++ b/lib/App/wsgetmail.pm
@@ -52,7 +52,7 @@ package App::wsgetmail;
 
 use Moo;
 
-our $VERSION = '0.07';
+our $VERSION = '0.08';
 
 =head1 NAME
 

commit 298c2c08bb6a120610a075119de8d4e2071a34cd
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Sat Sep 24 03:08:02 2022 +0800

    Clean up old code that was for substitution
    
    We removed substitution in ef11666885.

diff --git a/Makefile.PL b/Makefile.PL
index 224bccb..9780bf9 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -26,11 +26,6 @@ requires 'URI::Escape';
 requires 'URI';
 requires 'warnings';
 
-my $secure_perl_path = $Config{perlpath};
-if ($^O ne 'VMS' and $secure_perl_path !~ /$Config{_exe}$/i) {
-    $secure_perl_path .= $Config{_exe};
-}
-
 install_script('bin/wsgetmail');
 auto_install();
 sign;

commit 6c866b6cc987c7040f429df2c151fa0c231f9769
Merge: a7c57e2 edc1a99
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Sat Sep 24 03:07:24 2022 +0800

    Merge branch 'update-stripcr'


commit edc1a9978d7d6f070945b4d6339707e1caf0e935
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Sep 23 14:40:25 2022 -0400

    Update strip_cr to stripcr for compatibility with fetchmail

diff --git a/Changes b/Changes
index 0855a93..5e05edc 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
 Revision history for App-wsgetmail
 
+0.08    22/09/23
+        * Update strip_cr to stripcr for more obvious compatibility
+          with the fetchmail option of the same name.
+
 0.07    22/09/23
         * Add documentation about error messages, warnings, and
           diagnosing problems with processing.
diff --git a/README.md b/README.md
index 744aacf..68d0ea9 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ where `wsgetmail.json` looks like:
     "global_access": 1,
     "username": "rt-comment at example.com",
     "folder": "Inbox",
-    "strip_cr": 0,
+    "stripcr": 0,
     "command": "/opt/rt5/bin/rt-mailgate",
     "command_args": "--url=http://rt.example.com/ --queue=General --action=comment",
     "command_timeout": 30,
@@ -203,13 +203,17 @@ configuration file.
 
     Set this to the name string of a mail folder to read.
 
-- strip\_cr
+- stripcr
 
     Set this to 1 to make wsgetmail convert the messages from the CRLF
     line-ending encoding to the LF line-ending encoding.
 
-    This is technically not standards-compliant, but some unix utilities
-    don't work with CRLF line-endings.
+    This emulates the fetchmail option of the same name, which enabled
+    the stripcr option if an MDA was declared. The feature is similar,
+    but you need to enable it explicitly in your configuration.
+
+    This option is helpful if you are forwarding email to a Linux
+    utility that doesn't work with CRLF line-endings.
 
 - command
 
diff --git a/lib/App/wsgetmail.pm b/lib/App/wsgetmail.pm
index 3676bc8..ab4e3d8 100644
--- a/lib/App/wsgetmail.pm
+++ b/lib/App/wsgetmail.pm
@@ -73,7 +73,7 @@ where C<wsgetmail.json> looks like:
     "global_access": 1,
     "username": "rt-comment at example.com",
     "folder": "Inbox",
-    "strip_cr": 0,
+    "stripcr": 0,
     "command": "/opt/rt5/bin/rt-mailgate",
     "command_args": "--url=http://rt.example.com/ --queue=General --action=comment",
     "command_timeout": 30,
@@ -412,13 +412,17 @@ configuration file.
 
 Set this to the name string of a mail folder to read.
 
-=item strip_cr
+=item stripcr
 
 Set this to 1 to make wsgetmail convert the messages from the CRLF
 line-ending encoding to the LF line-ending encoding.
 
-This is technically not standards-compliant, but some unix utilities
-don't work with CRLF line-endings.
+This emulates the fetchmail option of the same name, which enabled
+the stripcr option if an MDA was declared. The feature is similar,
+but you need to enable it explicitly in your configuration.
+
+This option is helpful if you are forwarding email to a Linux
+utility that doesn't work with CRLF line-endings.
 
 =item command
 
diff --git a/lib/App/wsgetmail/MS365.pm b/lib/App/wsgetmail/MS365.pm
index 056e1e8..d17e30a 100644
--- a/lib/App/wsgetmail/MS365.pm
+++ b/lib/App/wsgetmail/MS365.pm
@@ -186,14 +186,14 @@ has post_fetch_action => (
     required => 1
 );
 
-=head2 strip_cr
+=head2 stripcr
 
 A boolean.  If true, the message content will have CRLF line terminators
 converted to LF line terminators.
 
 =cut
 
-has strip_cr => (
+has stripcr => (
     is => 'ro',
     required => 0,
 );
@@ -250,7 +250,7 @@ around BUILDARGS => sub {
         grep {
             defined $config->{$_}
         }
-        qw(client_id tenant_id username user_password global_access secret folder post_fetch_action strip_cr debug)
+        qw(client_id tenant_id username user_password global_access secret folder post_fetch_action stripcr debug)
     };
 
     return $class->$orig($attributes);
@@ -309,7 +309,7 @@ sub get_message_mime_content {
     # can we just write straight to file from response?
     my $tmp = File::Temp->new( UNLINK => 0, SUFFIX => '.mime' );
     my $content = $response->content;
-    $content =~ s/\r$//mg if $self->strip_cr;
+    $content =~ s/\r$//mg if $self->stripcr;
     print $tmp $content;
     return $tmp->filename;
 }

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

Summary of changes:
 Changes                    |  4 ++++
 META.yml                   |  2 +-
 Makefile.PL                |  5 -----
 README.md                  | 12 ++++++++----
 lib/App/wsgetmail.pm       | 14 +++++++++-----
 lib/App/wsgetmail/MS365.pm |  8 ++++----
 6 files changed, 26 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
app-wsgetmail


More information about the Bps-public-commit mailing list