[Rt-commit] rt branch, 5.0/pass-email-action-to-get-current-user, created. rt-5.0.1-10-g1a09e5c1b8

? sunnavy sunnavy at bestpractical.com
Mon Feb 1 15:26:22 EST 2021


The branch, 5.0/pass-email-action-to-get-current-user has been created
        at  1a09e5c1b84a86a2b9d2dc4410168929dd0c69e9 (commit)

- Log -----------------------------------------------------------------
commit 1a09e5c1b84a86a2b9d2dc4410168929dd0c69e9
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Feb 2 03:32:53 2021 +0800

    Pass action to GetCurrentUser of email interface
    
    Usually GetCurrentUser doen't need to know action. This is initially for
    SpamFilter so it could get enough info to re-route emails back to RT's
    normal workflow.

diff --git a/lib/RT/Interface/Email.pm b/lib/RT/Interface/Email.pm
index 7255b14e8a..f1cbb8df8d 100644
--- a/lib/RT/Interface/Email.pm
+++ b/lib/RT/Interface/Email.pm
@@ -229,6 +229,7 @@ sub Gateway {
         RawMessageRef => \$args{message},
         Ticket        => $SystemTicket,
         Queue         => $SystemQueueObj,
+        RawAction     => $args{action},
     );
 
     # We only care about ACLs on the _first_ action, as later actions
@@ -334,6 +335,7 @@ sub GetCurrentUser {
         RawMessageRef => undef,
         Ticket        => undef,
         Queue         => undef,
+        RawAction     => undef,
         @_,
     );
 
@@ -344,6 +346,7 @@ sub GetCurrentUser {
             RawMessageRef => $args{RawMessageRef},
             Ticket        => $args{Ticket},
             Queue         => $args{Queue},
+            RawAction     => $args{RawAction},
         );
         return $CurrentUser if $CurrentUser and $CurrentUser->id;
     }

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


More information about the rt-commit mailing list