Problems with mail interface

hi,

i tried the following two email commands:

%RT SET due 65 05/18/00
%RT SET status 64 (closed yes)

but they don’t get recognized i.e. no action is taken. well
nearly no action is taken:
wenn iwant to change the date i get:
RT: Date due changed to Thu, Jan 1 1970 01:00:00 (225)

and when i try to change the status i just get a message that i
am authenticated what i already know, so doesn’t make sense to
me.

here are the two commands from %RT HELP which i got and on which
based the formatting of my commands:

    %RT SET due <num> <date>
	will set request <num>'s due date to <date>.
	<date> should probably be in the form MM/DD/YY.

	%RT SET status <num> (open|closed|stalled|dead yes)
    will set request <num>'s status to (open|closed|stalled|dead).

thanks and so long
Othmar

hi,

i tried the following two email commands:

%RT SET due 65 05/18/00
%RT SET status 64 (closed yes)

but they don’t get recognized i.e. no action is taken. well
nearly no action is taken:
wenn iwant to change the date i get:
RT: Date due changed to Thu, Jan 1 1970 01:00:00 (225)

There is a bug in rt/lib/rt/ui/mail/manipulate.pm in the “SET due”
handler. The function call

($trans, $message)=
&rt::change_due_date($serial_no, $date_due, $current_user);

is wrong. The second argument should be “$due_date”, not “$date_due”.

Also, there’s another minor error in the “date_parse” routine in
rt/lib/rt/support/utils.pm. This routine will parse, e.g., 4/30/00 as
month=4, day=30, year=2000, but timelocal (to which this value is
later passed) expects months counting from 0, so most of the “$month
= $n” should really be “$month = $n - 1”.

I haven’t looked at the set status “closed” command, but the command:

%RT RESOLVE 64

should work.

— Eric

Eric Goodman | “The opinions expressed by Eric do not
Workstation Support Group | represent the opinions of anyone who
UC Santa Cruz | matters.”
ericg@cats.ucsc.edu | — (modified from) “Cartoon Planet”

Cool. thanks. The mail gateway has never gotten a lot of testing or use :confused:
I’ll put this into 1.0.cvs sometime in the near future.On Wed, May 17, 2000 at 11:56:56AM -0700, Eric Goodman wrote:

hi,

i tried the following two email commands:

%RT SET due 65 05/18/00
%RT SET status 64 (closed yes)

but they don’t get recognized i.e. no action is taken. well
nearly no action is taken:
wenn iwant to change the date i get:
RT: Date due changed to Thu, Jan 1 1970 01:00:00 (225)

There is a bug in rt/lib/rt/ui/mail/manipulate.pm in the “SET due”
handler. The function call

($trans, $message)=
&rt::change_due_date($serial_no, $date_due, $current_user);

is wrong. The second argument should be “$due_date”, not “$date_due”.

Also, there’s another minor error in the “date_parse” routine in
rt/lib/rt/support/utils.pm. This routine will parse, e.g., 4/30/00 as
month=4, day=30, year=2000, but timelocal (to which this value is
later passed) expects months counting from 0, so most of the “$month
= $n” should really be “$month = $n - 1”.

I haven’t looked at the set status “closed” command, but the command:

%RT RESOLVE 64

should work.

— Eric


Eric Goodman | “The opinions expressed by Eric do not
Workstation Support Group | represent the opinions of anyone who
UC Santa Cruz | matters.”
ericg@cats.ucsc.edu | — (modified from) “Cartoon Planet”


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

jesse reed vincent — root@eruditorum.orgjesse@fsck.com
pgp keyprint: 50 41 9C 03 D0 BC BC C8 2C B9 77 26 6F E1 EB 91
A REAL sysadmin challenge is “resurrect five dead mailserver while so ripped
to the gills on mdma that you can’t focus on any given line of text for more
than 10 seconds continuously.”
-Nathan Mehl