diff options
author | ivan <ivan> | 2008-03-03 23:07:58 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-03-03 23:07:58 +0000 |
commit | 479339313bbda612f8fe939217fd067999ef36d4 (patch) | |
tree | a47e2fbdc0107910bbbd3b57dc0cbfc357f76aa3 /rt/lib/RT/Interface/Email/Auth | |
parent | 642d85fc54b066e6364b66644b95c7b123ba8e24 (diff) |
merge in rt 3.4.6. *gulp*!
Diffstat (limited to 'rt/lib/RT/Interface/Email/Auth')
-rw-r--r-- | rt/lib/RT/Interface/Email/Auth/MailFrom.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rt/lib/RT/Interface/Email/Auth/MailFrom.pm b/rt/lib/RT/Interface/Email/Auth/MailFrom.pm index ef315dd53..5143764e1 100644 --- a/rt/lib/RT/Interface/Email/Auth/MailFrom.pm +++ b/rt/lib/RT/Interface/Email/Auth/MailFrom.pm @@ -60,6 +60,11 @@ sub GetCurrentUser { # We don't need to do any external lookups my ( $Address, $Name ) = ParseSenderAddressFromHead( $args{'Message'}->head ); + + unless ($Address) { + return ( $args{'CurrentUser'}, -1 ); + } + my $CurrentUser = RT::CurrentUser->new(); $CurrentUser->LoadByEmail($Address); |