[rt-users] A question about correspond
Eric Goodman
ericg at cats.ucsc.edu
Mon Aug 21 15:23:37 EDT 2000
>You can only create new tickets by sending mail to a "correspond" alias.
Oh. Whoops. I did modify the code. Just plum forgot about it.
In .../rt/lib/rt/ui/mail/manipulate.pm I made the following changes
the the "if ($in_action eq ..." switch that starts around line 33.
All I did was comment out the error message/posting and copy/pasted
the code from the 'correspond' case. The original RT code is still
there commented out, so it should be easy to find. This snippet
starts around line 62 in the v1.0.2 code:
<BEGIN EXCERPT>
elsif ($in_action eq 'comment') {
if (!$serial_num) {
#COPIED FROM 'correspond' case -- EJG
#WE REALLY SHOULD PARSE THE TIME OUT OF THE DATE HEADER...BUT FOR NOW
# THE CURRENT TIME IS GOOD ENOUGH
($serial_num,$transaction_num, $message)=&rt::add_new_request(
$in_queue,$area,
$current_user,'','',$subject,
$rt::queues{"$in_queue"}{'default_final_prio'},
$rt::queues{"$in_queue"}{'default_prio'},'open',
$rt::time,0,0,$content,$current_user);
#REMOVED FROM 'comment' case -- EJG
# $edited_content = "
#You did not specify a ticket number for these comments. Please resubmit them
#with a ticket number. Your comments appear below.
#
#$content.
#";
# &rt::template_mail('error', '_rt_system', "$current_user", '', '', "",
# "$transaction_num", "RT Error: $subject",
# "$current_user", "$edited_content");
exit(0);
}
</END EXCEPRT>
Sorry about the initial misdirection.
--- Eric
More information about the rt-users
mailing list