Indeed I found that canonicalizeEmailAdress is not called on the
from-adress when new email is received.
The problem is that lib/RT/Interfaces/Email/Auth/MailFrom.pm calls
CurrentUser->LoadFromEmail which is not “overlayed” in the same way as
User->LoadFromEmail is in lib/RT/User_Overlay.pm
I could change the behaviour to the (by me) intended one by patching
lib/RT/Interfaces/Email/Auth/MailFrom.pm to use User->LoadFromEmail instead
of CurrentUser->LoadFromEmail
But then I ran into another error, which is suspect:
RT3 accepts the email as a ticket but also bounces me an error message.
before I write a CurrentUser_Overlay.pm in calling CanoicalizeEmailAddress
in the same way as User::LoadFromEmail I wonder
A) is it an intended change from RT2 to RT3 to not canonicalize
Email-Adresses on receives?
B) if yes, why is it so
C) if no, what is the correct way to eliminate the bug?
Thanks,
Dirk.–On Donnerstag, 10. April 2003 11:14 Uhr +0200 Dirk Pape pape-rt@inf.fu-berlin.de wrote:
I am on the way to configure RT3 to behave like our “old” RT2 system.
In RT2 we had changed the CanonicalizeEmailAddress subroutine in
config.pm to change email-adresses from domain “inf.fu-berlin.de” to
“mi.fu-berlin.de”.
In RT3 - to acchieve the same result - I defined in RT_Siteconfig.pm:
Set($CanonicalizeEmailAddressMatch , ‘inf.fu-berlin.de$’);
Set($CanonicalizeEmailAddressReplace , ‘mi.fu-berlin.de’);
with the effect that pape@inf.fu-berlin.de cannot create tickets in a
queue where pape@mi.fu-berlin.de has rights to create. (I get the “Ticket
creation failed” mail)
I verified that pape@mi.fu-berlin.de can create and
pape@inf.fu-berlin.de cannot create, so I think address canonicalization
does not take place.
In a second step I patched lib/RT/User_Overlay.pm directly by copying the
subroutine CanonicalizeEmailAddress from our RT2-configuration into that
file.
I restarted apache afterwards.
But the behavior did not change: pape@mi.fu-berlin.de can create and
pape@inf.fu-berlin.de cannot create.
Did anything change from RT2 to RT3 in the context where
CanonicalizeEmailAddress is called?
Thanks,
Dirk.
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users
Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm