[rt-users] CommandByMail and Custom Fields
Keith Edmunds
keith at midnighthax.com
Sun Dec 10 13:26:59 EST 2006
I've done a bit more research on this, and to keep it simple I created
an "Enter one value" custom field called 'Textline'.
I added some debug lines to TakeAction.pm as follows (my lines marked
">>>"):
# Canonicalize custom fields
>>> $RT::Logger->warning("X1");
my $custom_fields = $queue->TicketCustomFields;
while ( my $cf = $custom_fields->Next ) {
>>> $RT::Logger->warning("X2: cf=$cf");
my %tmp = _ParseAdditiveCommand( \%cmds, 0, "CustomField{".
$cf->Name ."}" ); next unless keys %tmp;
$create_args{ 'CustomField-' . $cf->id } =
[ _CompileAdditiveForCreate(%tmp) ]; }
When I create a new ticket with the mail below, the status is set to
'stalled' (so it looks as if the mail is being parsed), the 'X1' line
above is logged, but there is no 'X2' line logged. It looks to me as
if $queue->TicketCustomFields is not returning the custom fields for
this queue.
I don't know Perl very well so I'm not sure how to examine what
"custom_fields" is sent to - a simple output of that variable to the
log shows it is "RT::CustomFields=HASH(0x9bf5044)"
The mail used to test:
-------------------------------------------------------
Subject: test
Status: stalled
CustomField.{Textline}: ABC
blah blah blah
-------------------------------------------------------
RT version 3.4.5, CommandByMail version 0.5. What more information can I
give to help resolve this problem?
Thanks,
Keith
More information about the rt-users
mailing list