[Rt-commit] [svn] r1339 - rt/branches/3.2-RELEASE/bin

alexmv at pallas.eruditorum.org alexmv at pallas.eruditorum.org
Tue Aug 17 18:16:12 EDT 2004


Author: alexmv
Date: Tue Aug 17 18:16:11 2004
New Revision: 1339

Modified:
   rt/branches/3.2-RELEASE/bin/rt-mailgate.in
Log:
RT-Ticket: 5963
RT-Update: correspond
RT-Status: resolved

 * Applied patch provided by bobg at the domain of uic.edu to exit if
   there is no content on standard input



Modified: rt/branches/3.2-RELEASE/bin/rt-mailgate.in
==============================================================================
--- rt/branches/3.2-RELEASE/bin/rt-mailgate.in	(original)
+++ rt/branches/3.2-RELEASE/bin/rt-mailgate.in	Tue Aug 17 18:16:11 2004
@@ -44,6 +44,7 @@
 # those contributions and any derivatives thereof.
 # 
 # }}} END BPS TAGGED BLOCK
+
 =head1 NAME
 
 rt-mailgate - Mail interface to RT3.
@@ -457,6 +458,9 @@
 # Read the message in from STDIN
 $args{'message'} = <>;
 
+unless ( $args{message} =~ /\S/ ) {
+    die "$0: no message passed on STDIN!\n";
+}
 
 if ($opts{'extension'}) {
         $args{$opts{'extension'}} = $ENV{'EXTENSION'};


More information about the Rt-commit mailing list