Can't call method "Parse" when sending email ...SendEmail.pm && rt-crontool

In my opinion SendEmail does’nt work with the crontool.
I asked once, but nobody said to me that it works.
Look at the archives, my theory was that a variable is not passed, I can’t remember I think transactionobj or so…

Samuel-----Original Message-----
From: Rob Walker [mailto:rob@myinternetplace.net]
Sent: Thursday,18 December,2003 19:10
To: rt-users
Subject: [rt-users] Can’t call method “Parse” when sending email …SendEmail.pm && rt-crontool

[Sorry if this comes through two times, I posted this last Monday, but haven’t seen it on the list.]

I have looked online, and the only other question about this topic is found in the question at http://lists.fsck.com/pipermail/rt-users/2003-May/013943.html but there is not any answers posted to that thread.

I need to send an email to everyone who has a ticket open which is overdue.

When I run rt-crontool from the command line, I get the following
errors:

rt-crontool --verbose
–search RT::Search::ActiveTicketsInQueue
–search-arg General
–condition RT::Condition::Overdue
–action RT::Action::SendEmail

[Tue Dec 16 00:50:49 2003] [crit]: Can’t call method “Parse” on an undefined value at /usr/share/perl5/RT/Action/SendEmail.pm line 210.
(/usr/share/perl5/RT.pm:254)

I have updated the SendEmail.pm file to be the one from 2.0.7, but the changes there are a Cc → Bcc typo fix and a || die; on a sendmail call. Doesn’t seem to be too much of a change.

Rob

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Hello out there,
I have some trouble with receiving mail with rt 3.0.11. rt is set up and running, sends and receives mails. The crontool works finde for escalation. Now I´m trying to use it to send notification to owner of ticket if his/her tickets exceed their final prio:

“rt-crontool
–search RT::Search::ActiveTicketsInQueue --search-arg ‘General’
–condition RT::Condition::PriorityExceeds --condition-arg ‘10’
–action RT::Action::Notify --action-arg ‘Owner’ --verbose”

The given Error message is:
"[crit]: Can’t call method “Parse” on an undefined value at /usr/share/request-tracker3/lib/RT/Action/SendEmail.pm line 210.
(/usr/share/request-tracker3/lib/RT.pm:257)
2: Condition trifft zu…"

in system.log:
“No template object handed to RT::Action::Notify=HASH(0x8f91788) (/usr/share/request-tracker3/lib/RT/Action/SendEmail.pm:197)
No transaction object handed to RT::Action::Notify=HASH(0x8f91788) (/usr/share/request-tracker3/lib/RT/Action/SendEmail.pm:201)
Can’t call method “Parse” on an undefined value at /usr/share/request-tracker3/lib/RT/Action/SendEmail.pm line 210. (/usr/share/request-tracker3/lib/RT.pm:257)”

rt is insalled on debian, apache 1.3.x, mysql, perl 5.8x. does anybody have a hint for me what i have been doing wrong? or ist there a faq for the rt-crontool.

thanks in advance
martin