On Fri, 2009-12-04 at 16:59 -0500, Jason A. Smith wrote:
> Okay, I also have RT-Extension-CommandByMail installed and it appears
> that it is preventing rt-mailgate from running the UnsafeEmailCommands.
> If I remove Filter::TakeAction from my @MailPlugins list, then it works
> as it should.
> 
> Is this expected behavior, or would this be considered a bug?

I am going to Cc the rt-devel list, if you think this is a bug you can
remove the rt-user list from followups.

I think the problem is actually with the logic in:

RT::Interface::Email::GetAuthenticationLevel

The AuthStat value is only initialized once in the beginning of the
function and after CommandByMail's TakeAction processes the correspond
action, AuthStat is left with a value of -2, which means all remaining
actions will be skipped with any plugin.

Shouldn't the AuthStat value be reset for each action?  I think it may
be better to put the actions loop outside of the plugins loop and reset
the AuthStat value for each action.  What do you think?

~Jason


-- 
/------------------------------------------------------------------\
|  Jason A. Smith                          Email:  [email protected] |
|  Atlas Computing Facility, Bldg. 510M    Phone: +1-631-344-4226  |
|  Brookhaven National Lab, P.O. Box 5000  Fax:   +1-631-344-7616  |
|  Upton, NY 11973-5000,  U.S.A.                                   |
\------------------------------------------------------------------/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [email protected]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to