Problem with RT-Extension-CommandByMail

Good morning,

I have installed RT-Extension-CommandByMail-0.03 in my RT v3.4.5 setup. After
completing the installation steps, RT stops processing any messages via
rt-mailgate. Once I comment the @MailPlugins line then messages get processed
again.

I used the following install procedure:

cd ~/src/RT-Extension-CommandByMail-0.03
perl Makefile.PL
make
su
make install
cd /usr/local/rt3
patch -p0 <

~/src/RT-Extension-CommandByMail-0.03/patch/command_by_email-0.1-RT-3.4.5.patch
vi etc/RT_SiteConfig.pm
(added following line at end of file, before trailing “1;”)
@MailPlugins = qw(Auth::MailFrom Filter::TakeAction);
apachectl stop
apachectl start

I also tried some variations of the above, but nothing seems to work. I can’t
see anything in rt.log that sheds any light on the problem.

What am I possibly doing wrong? How can I get RT-Extension-CommandByMail to
work?

Thanks,
Charlie

Charlie Garrison garrison@zeta.org.au
PO Box 141, Windsor, NSW 2756, Australia

  1. Without logs I couldn’t say anything helpful.
  2. You may try 3.4.6 RC without any patchOn 9/3/06, Charlie Garrison garrison@zeta.org.au wrote:

Good morning,

I have installed RT-Extension-CommandByMail-0.03 in my RT v3.4.5 setup. After
completing the installation steps, RT stops processing any messages via
rt-mailgate. Once I comment the @MailPlugins line then messages get processed
again.

I used the following install procedure:

cd ~/src/RT-Extension-CommandByMail-0.03
perl Makefile.PL
make
su
make install
cd /usr/local/rt3
patch -p0 <

~/src/RT-Extension-CommandByMail-0.03/patch/command_by_email-0.1-RT-3.4.5.patch
vi etc/RT_SiteConfig.pm
(added following line at end of file, before trailing “1;”)
@MailPlugins = qw(Auth::MailFrom Filter::TakeAction);
apachectl stop
apachectl start

I also tried some variations of the above, but nothing seems to work. I can’t
see anything in rt.log that sheds any light on the problem.

What am I possibly doing wrong? How can I get RT-Extension-CommandByMail to
work?

Thanks,
Charlie


Charlie Garrison garrison@zeta.org.au
PO Box 141, Windsor, NSW 2756, Australia


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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

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

Best regards, Ruslan.

Good morning,

  1. Without logs I couldn’t say anything helpful.

Agreed, but I’m not sure where to look. There is nothing in the apache
error_log. And this is all I get from the rt.log:

[Sun Sep 3 19:23:47 2006] [debug]: Converting ‘US-ASCII’ to ‘utf-8’ for
text/plain - Doing command test [5] (/usr/local/rt3/lib/RT/I18N.pm:225)

If you have any suggestions for getting something useful into the logs, I’d love
to hear it.

  1. You may try 3.4.6 RC without any patch

I decided to update to 3.6.1 if I was going to bother with an update. The
CommandByMail stuff is still not working. I have tested with and without the
Interface/Email.pm patch.

If I use this line in RT_SiteConfig.pm then messages get processed and a ticket
is created:

@MailPlugins = qw(Auth::MailFrom );

But if I use this line instead then no ticket is created:

@MailPlugins = qw(Auth::MailFrom Filter::TakeAction);

Any ideas?

Thanks,
Charlie

Charlie Garrison garrison@zeta.org.au
PO Box 141, Windsor, NSW 2756, Australia

Charlie Garrison wrote:

I have installed RT-Extension-CommandByMail-0.03 in my RT v3.4.5 setup. After
completing the installation steps, RT stops processing any messages via
rt-mailgate. Once I comment the @MailPlugins line then messages get processed
again.

I used the following install procedure:

cd ~/src/RT-Extension-CommandByMail-0.03
perl Makefile.PL
make

This is the point where one usually runs the tests. They might point out something which has gone wrong with CommandByMail and your system.

  make test

Michael G Schwern wrote:

Charlie Garrison wrote:

I have installed RT-Extension-CommandByMail-0.03 in my RT v3.4.5
setup. After
completing the installation steps, RT stops processing any messages via
rt-mailgate. Once I comment the @MailPlugins line then messages get
processed
again.

I used the following install procedure:

cd ~/src/RT-Extension-CommandByMail-0.03
perl Makefile.PL
make

This is the point where one usually runs the tests. They might point
out something which has gone wrong with CommandByMail and your system.

Jesse informs me that its non-trivial to run the CommandByMail tests. They require a running, installed RT instance. Additionally the tests are “destructive” in that they actively add tickets and send mail via your installed RT instance. So don’t run them against a production instance.

Good morning,On 3/9/06 at 6:57 PM -0400, Michael G Schwern schwern@bestpractical.com wrote:

This is the point where one usually runs the tests. They might point
out something which has gone wrong with CommandByMail and your system.

Jesse informs me that its non-trivial to run the CommandByMail tests.
They require a running, installed RT instance. Additionally the tests
are “destructive” in that they actively add tickets and send mail via
your installed RT instance. So don’t run them against a production
instance.

Yep, I found that out the hard way. I was running tests but quickly got tired of
deleting all the ‘test’ tickets. The tests were failing, but still creating
tickets.

Is there something I can do to get more logging detail? Then maybe I can get
some clues as to where the problem might be.

Thanks,
Charlie

Charlie Garrison garrison@zeta.org.au
PO Box 141, Windsor, NSW 2756, Australia

Good morning,

This is the point where one usually runs the tests. They might point
out something which has gone wrong with CommandByMail and your system.

Jesse informs me that its non-trivial to run the CommandByMail tests.
They require a running, installed RT instance. Additionally the tests
are “destructive” in that they actively add tickets and send mail via
your installed RT instance. So don’t run them against a production
instance.

Yep, I found that out the hard way. I was running tests but quickly got tired of
deleting all the ‘test’ tickets. The tests were failing, but still creating
tickets.

Is there something I can do to get more logging detail? Then maybe I can get
some clues as to where the problem might be.
First of all, in the repository we have version 0.05 which is newer
than on the CPAN. You can check out from the SVN or wait for new
release.

To debug you can use next command: rt-mailgate --url 'http://...' --queue general --action 'correspond' --debug. As input type
something like:

test

hit ctrl+d at the end.

Also there is problem with default value of the --action argument in
3.6.0 and may be 3.6.1, try to add “–action correspond” to all your
mail aliases. I fixed it in the RT repository, but don’t remember if
it was included into 3.6.1 or not.

Thanks,
Charlie


Charlie Garrison garrison@zeta.org.au
PO Box 141, Windsor, NSW 2756, Australia


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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

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

Best regards, Ruslan.

Good afternoon,

Is there something I can do to get more logging detail? Then maybe I can get
some clues as to where the problem might be.
First of all, in the repository we have version 0.05 which is newer
than on the CPAN. You can check out from the SVN or wait for new
release.

Is this the repository you are referring to?
http://www.bestpractical.com/rt/cvs.html

OK, I think I just found the newer version you are referring to.

To debug you can use next command: rt-mailgate --url 'http://...' --queue general --action 'correspond' --debug. As input type
something like:
From: address@example.com
Subject: test

test

hit ctrl+d at the end.

I had forgotten about that technique for testing, thanks for the reminder. And
it did direct me towards the problem. One of the modules was complaining about a
missing sub. I basically had a corrupt install; I cleared out all the
CommandByEmail files and restored the Interface/Email.pm file. I re-installed
CommandByEmail and did NOT apply any patches. And I had to change one of the
modules to import the missing sub.

Messages are now getting processed and entered into RT. I’m still not getting
any changes to tickets based on commands in email messages. Maybe that will be
fixed with v0.05.

Also there is problem with default value of the --action argument in
3.6.0 and may be 3.6.1, try to add “–action correspond” to all your
mail aliases. I fixed it in the RT repository, but don’t remember if
it was included into 3.6.1 or not.

My rt-mailgate commands already had an explicit --action, so that shouldn’t be
an issue.

Thanks for your help.

Charlie

Charlie Garrison garrison@zeta.org.au
PO Box 141, Windsor, NSW 2756, Australia