Skip Menu |
 

This queue is for tickets about the RT-Extension-CommandByMail CPAN distribution.

Report information
The Basics
Id: 96757
Status: rejected
Priority: 0/
Queue: RT-Extension-CommandByMail

People
Owner: Nobody in particular
Requestors: mgollowitzer [...] sipwise.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: CommandByMail reads wrong headers
Date: Fri, 27 Jun 2014 07:36:20 +0200
To: bug-RT-Extension-CommandByMail [...] rt.cpan.org
From: Martin Gollowitzer <mgollowitzer [...] sipwise.com>
Download (untitled) / with headers
text/plain 3.3k
The CommandByMail extension sometimes reads headers as commands, which are "normal" headers like Received: or Return-Path:. The attached message produced the following extended mailgate error: --8<------------------------------------------------------ Failed command 'return-path: <martin@gollo.at>' Error message: Command 'return-path' is unknown Failed command 'delivered-to: todo@rt.gollo.at' Error message: Command 'delivered-to' is unknown Failed command 'received: from zimbra.sipwise.com (zimbra.sipwise.com [::ffff:92.42.136.235])' Error message: Command 'received' is unknown --8<------------------------------------------------------ I have set the logging to debug level and in /var/log/request-tracker4/rt.log I find the following: [Thu Jun 26 13:39:29 2014] [debug]: Found pseudoheader: Return-Path => <martin@gollo.at> (/usr/local/share/request-tracker4/plugins/RT-Extension-CommandByMail/lib/RT/Interface/Email/Filter/TakeAction.pm:234) [Thu Jun 26 13:39:29 2014] [debug]: Found pseudoheader: Delivered-To => todo@rt.gollo.at (/usr/local/share/request-tracker4/plugins/RT-Extension-CommandByMail/lib/RT/Interface/Email/Filter/TakeAction.pm:234) [Thu Jun 26 13:39:29 2014] [debug]: Found pseudoheader: Received => from zimbra.sipwise.com (zimbra.sipwise.com [::ffff:92.42.136.235]) (/usr/local/share/request-tracker4/plugins/RT-Extension-CommandByMail/lib/RT/Interface/Email/Filter/TakeAction.pm:234) [Thu Jun 26 13:39:29 2014] [debug]: Got command return-path => <martin@gollo.at> (/usr/local/share/request-tracker4/plugins/RT-Extension-CommandByMail/lib/RT/Interface/Email/Filter/TakeAction.pm:241) [Thu Jun 26 13:39:29 2014] [debug]: Got command delivered-to => todo@rt.gollo.at (/usr/local/share/request-tracker4/plugins/RT-Extension-CommandByMail/lib/RT/Interface/Email/Filter/TakeAction.pm:241) [Thu Jun 26 13:39:29 2014] [debug]: Got command received => from zimbra.sipwise.com (zimbra.sipwise.com [::ffff:92.42.136.235]) (/usr/local/share/request-tracker4/plugins/RT-Extension-CommandByMail/lib/RT/Interface/Email/Filter/TakeAction.pm:241) and then [Thu Jun 26 13:39:31 2014] [warning]: Failed command 'return-path: <martin@gollo.at>' Error message: Command 'return-path' is unknown Failed command 'delivered-to: todo@rt.gollo.at' Error message: Command 'delivered-to' is unknown Failed command 'received: from zimbra.sipwise.com (zimbra.sipwise.com [::ffff:92.42.136.235])' Error message: Command 'received' is unknown (/usr/local/share/request-tracker4/plugins/RT-Extension-CommandByMail/lib/RT/Interface/Email/Filter/TakeAction.pm:756) [Thu Jun 26 13:39:31 2014] [crit]: Failed command 'return-path: <martin@gollo.at>' Error message: Command 'return-path' is unknown Failed command 'delivered-to: todo@rt.gollo.at' Error message: Command 'delivered-to' is unknown Failed command 'received: from zimbra.sipwise.com (zimbra.sipwise.com [::ffff:92.42.136.235])' Error message: Command 'received' is unknown (/usr/share/request-tracker4/lib/RT/Interface/Email.pm:245) So it seems that the RegEx that headers are matched against does not work the way it should. I am running RT 4.0.7 from the Debian Wheezy repositories with the lates CommandByMail extension. In RT_SiteConfig.pm I have the following: Set(@MailPlugins, qw(Auth::MailFrom Auth::GnuPG Filter::TakeAction)); Set(@Plugins, ( @Plugins, "RT::Extension::CommandByMail" )); Set($CommandByMailHeader, "X-RT-Command"); Thanks, Martin
Download signature.asc
application/pgp-signature 836b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #96757] AutoReply: CommandByMail reads wrong headers
Date: Fri, 27 Jun 2014 08:21:59 +0200
To: Bugs in RT-Extension-CommandByMail via RT <bug-RT-Extension-CommandByMail [...] rt.cpan.org>
From: Martin Gollowitzer <mgollowitzer [...] sipwise.com>
And here finally the missing attachment :\

Message body is not shown because sender requested not to inline it.

Subject: test
Date: Thu, 26 Jun 2014 15:39:17 +0200
To: todo [...] rt.gollo.at
From: Martin Gollowitzer <martin [...] gollo.at>
Another test Woohoo
Download signature.asc
application/pgp-signature 836b

Message body not shown because it is not plain text.

Download signature.asc
application/pgp-signature 836b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #96757] CommandByMail reads wrong headers
Date: Thu, 23 Oct 2014 12:38:58 +0200
To: Bugs in RT-Extension-CommandByMail via RT <bug-RT-Extension-CommandByMail [...] rt.cpan.org>
From: Martin Gollowitzer <mgollowitzer [...] sipwise.com>
Download (untitled) / with headers
text/plain 305b
Hi, Is there any news on this issue? It really keeps me from using the extension at the moment. I think I haven't supplied this information before, but I use getmail to fetch the messages for my RT and then pipe them into rt-mailgate. Would it be possible that this makes a difference? Thanks, Martin
Download signature.asc
application/pgp-signature 836b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #96757] CommandByMail reads wrong headers
Date: Tue, 5 May 2015 09:53:32 +0000
To: "bug-RT-Extension-CommandByMail [...] rt.cpan.org" <bug-RT-Extension-CommandByMail [...] rt.cpan.org>
From: Martin Gollowitzer <mg [...] kapper.net>
Download (untitled) / with headers
text/plain 246b
Hi, It turned out that this problem is caused by getmail. I don't know what it does, but if I pipe the messages into sendmail which then pipes it into RT, I no longer experience this bug, so I think it can be closed. Thanks, Martin


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.