[rt-devel] Enhanced mailgate in RT3
perreal at lyon.cemagref.fr
Fri Jul 18 06:14:32 EDT 2003
I saw in RT::Interface::Email that an enhanced mailgate behavior was
# Authentication Level
# -1 - Get out. this user has been explicitly declined
# 0 - User may not do anything (Not used at the moment)
# 1 - Normal user
# 2 - User is allowed to specify status updates etc. a la enhanced-mailgate
But for now, it seems there no code to handle this case.
I see two (quite bad) ways to implement this as "site" code :
1) redefining RT::Ticket->Correspond and RT::Ticket->Comment and calling
them with the AuthStat from RT::Interface::Email->Gateway. The first
point can be achieved by redefining two new subs (in a Ticket_Local.pm
file) that handles enhanced commands then call the original subs. The
second point needs to redefine the whole Gateway sub and I think this a
bad idea because I don't want to maintain it.
2) adding two email authentication plug-in, say
RT::Interface::Email::Auth::EnhancedGateway. The first plug-in checks
GPG signature and raises authentication level to 2 when appropriate. The
second plug-in implements the "enhanced behavior" when authentication
level equals 2.
I said "quite bad" ways because I think neither solution implements the
enhanced mailgate behavior in the right place.
Any idea ?
Cemagref, groupement de Lyon,
Tél: (+33) 220.127.116.11.87.
Fax: (+33) 18.104.22.168.75.
More information about the Rt-devel