projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT 4.0.13
[freeside.git]
/
rt
/
lib
/
RT
/
Interface
/
Email
/
Auth
/
MailFrom.pm
diff --git
a/rt/lib/RT/Interface/Email/Auth/MailFrom.pm
b/rt/lib/RT/Interface/Email/Auth/MailFrom.pm
index
e733bda
..
bfe4939
100644
(file)
--- a/
rt/lib/RT/Interface/Email/Auth/MailFrom.pm
+++ b/
rt/lib/RT/Interface/Email/Auth/MailFrom.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
2
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)
@@
-66,9
+66,12
@@
sub GetCurrentUser {
# We don't need to do any external lookups
# We don't need to do any external lookups
- my ( $Address, $Name ) = ParseSenderAddressFromHead( $args{'Message'}->head );
+ my ( $Address, $Name, @errors ) = ParseSenderAddressFromHead( $args{'Message'}->head );
+ $RT::Logger->warning("Failed to parse ".join(', ', @errors))
+ if @errors;
+
unless ( $Address ) {
unless ( $Address ) {
- $RT::Logger->error("Couldn't find sender's address");
+ $RT::Logger->error("Couldn't
parse or
find sender's address");
return ( $args{'CurrentUser'}, -1 );
}
return ( $args{'CurrentUser'}, -1 );
}