[Rt-commit] r11065 - in rt/branches/3.7-RTIR-RELENG/lib/RT: Interface

ruz at bestpractical.com ruz at bestpractical.com
Thu Mar 13 12:57:00 EDT 2008


Author: ruz
Date: Thu Mar 13 12:56:59 2008
New Revision: 11065

Modified:
   rt/branches/3.7-RTIR-RELENG/lib/RT/Action/SendEmail.pm
   rt/branches/3.7-RTIR-RELENG/lib/RT/Interface/Email.pm

Log:
* fix typo that affects logic of operations.
  Thanks to Salih Gonullu


Modified: rt/branches/3.7-RTIR-RELENG/lib/RT/Action/SendEmail.pm
==============================================================================
--- rt/branches/3.7-RTIR-RELENG/lib/RT/Action/SendEmail.pm	(original)
+++ rt/branches/3.7-RTIR-RELENG/lib/RT/Action/SendEmail.pm	Thu Mar 13 12:56:59 2008
@@ -208,7 +208,7 @@
     my $attachment = $self->TransactionObj->Attachments->First;
     if ( $attachment && !( $attachment->GetHeader('X-RT-Encrypt') || $self->TicketObj->QueueObj->Encrypt ) ) {
         $attachment->SetHeader( 'X-RT-Encrypt' => 1 )
-            if $attachment->GetHeader("X-RT-Incoming-Encryption")||'' eq 'Success';
+            if ($attachment->GetHeader("X-RT-Incoming-Encryption")||'') eq 'Success';
     }
 
     return $result;

Modified: rt/branches/3.7-RTIR-RELENG/lib/RT/Interface/Email.pm
==============================================================================
--- rt/branches/3.7-RTIR-RELENG/lib/RT/Interface/Email.pm	(original)
+++ rt/branches/3.7-RTIR-RELENG/lib/RT/Interface/Email.pm	Thu Mar 13 12:56:59 2008
@@ -733,7 +733,7 @@
         # if the passphrase fails, either you have a bad passphrase
         # or gpg-agent has died.  That should get caught in Create and
         # Update, but at least throw an error here
-        if (($line->{'Operation'}||'' eq 'PassphraseCheck')
+        if (($line->{'Operation'}||'') eq 'PassphraseCheck'
             && $line->{'Status'} =~ /^(?:BAD|MISSING)$/ ) {
             $RT::Logger->error( "$line->{'Status'} PASSPHRASE: $line->{'Message'}" );
             return 0;


More information about the Rt-commit mailing list