[Rt-commit] rt branch, 4.0/mailgate-ssl-deps, updated. rt-4.0.4-115-gb43bb9f

Alex Vandiver alexmv at bestpractical.com
Tue Dec 13 17:57:28 EST 2011


The branch, 4.0/mailgate-ssl-deps has been updated
       via  b43bb9ff0031ccbefbeba344f020d86cbf52c1f4 (commit)
      from  8647578775e9620e0d92a21d080bc8da35012b17 (commit)

Summary of changes:
 bin/rt-mailgate.in |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit b43bb9ff0031ccbefbeba344f020d86cbf52c1f4
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue Dec 13 17:57:25 2011 -0500

    Fix option parsing to match documentation

diff --git a/bin/rt-mailgate.in b/bin/rt-mailgate.in
index d460343..b679298 100755
--- a/bin/rt-mailgate.in
+++ b/bin/rt-mailgate.in
@@ -57,10 +57,10 @@ use warnings;
 
 use Getopt::Long;
 
-my $opts = { 'ssl-verify' => 1 };
+my $opts = { 'verify-ssl' => 1 };
 GetOptions( $opts,   "queue=s", "action=s", "url=s",
             "jar=s", "help",    "debug",    "extension=s",
-            "timeout=i", "ssl-verify!",
+            "timeout=i", "verify-ssl!",
           );
 
 my $gateway = RT::Client::MailGateway->new();
@@ -150,7 +150,7 @@ sub get_useragent {
     my $opts = shift;
     my $ua   = LWP::UserAgent->new();
     $ua->cookie_jar( { file => $opts->{'jar'} } ) if $opts->{'jar'};
-    $ua->ssl_opts( verify_hostname => $opts->{'ssl-verify'} );
+    $ua->ssl_opts( verify_hostname => $opts->{'verify-ssl'} );
     return $ua;
 }
 

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


More information about the Rt-commit mailing list