projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add ssl_no_verify option to all http exports, RT#29298
[freeside.git]
/
rt
/
bin
/
rt-mailgate.in
diff --git
a/rt/bin/rt-mailgate.in
b/rt/bin/rt-mailgate.in
index
271806c
..
d6e80b8
100644
(file)
--- a/
rt/bin/rt-mailgate.in
+++ b/
rt/bin/rt-mailgate.in
@@
-1,9
+1,9
@@
-#!@PERL@
-w
+#!@PERL@
# BEGIN BPS TAGGED BLOCK {{{
#
# COPYRIGHT:
#
# BEGIN BPS TAGGED BLOCK {{{
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
1
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
3
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-81,9
+81,7
@@
unless ( $opts{'url'} ) {
my $ua = new LWP::UserAgent;
$ua->cookie_jar( { file => $opts{'jar'} } ) if $opts{'jar'};
my $ua = new LWP::UserAgent;
$ua->cookie_jar( { file => $opts{'jar'} } ) if $opts{'jar'};
-my %args = (
- SessionType => 'REST', # Surpress login box
-);
+my %args;
foreach ( qw(queue action) ) {
$args{$_} = $opts{$_} if defined $opts{$_};
};
foreach ( qw(queue action) ) {
$args{$_} = $opts{$_} if defined $opts{$_};
};
@@
-186,7
+184,7
@@
sub write_down_message {
print STDERR "$0: Couldn't create temp file, using memory\n";
print STDERR "error: $@\n" if $@;
print STDERR "$0: Couldn't create temp file, using memory\n";
print STDERR "error: $@\n" if $@;
- my $message = \do { local (@ARGV, $/); <> };
+ my $message = \do { local (@ARGV, $/); <
STDIN
> };
unless ( $$message =~ /\S/ ) {
print STDERR "$0: no message passed on STDIN\n";
exit 0;
unless ( $$message =~ /\S/ ) {
print STDERR "$0: no message passed on STDIN\n";
exit 0;