[rt-users] Re: rt-mailgate error
Philip Shon
crazypheel at hotmail.com
Wed Jul 14 16:02:49 EDT 2004
Another follow up:
Just thought I should put this out there on the mailing list in case someone
runs into again.
In the web interface I had created some user defined actions. To debug the
scrip I had used print statements saying "Inside Unless" and "Should have
added value" Apparently those print statements were sending those lines
into '$content'.
I thought I should share my solution since I shared my problem.
-Phil Shon
----- Original Message -----
From: "Philip Shon" <crazypheel at hotmail.com>
To: <rt-users at lists.bestpractical.com>
Sent: Wednesday, July 14, 2004 12:43 PM
Subject: Re: rt-mailgate error
> A follow up:
>
> I tried running the same command again
>
> strange thing happened, the line "Should have added value" has
disappeared.
>
> But I'm still getting an error b/c "Inside Unless" is still there.
>
> Maybe that'll disappear in about an hour or so :)
>
> -Phil Shon
>
> ----- Original Message -----
> From: "Philip Shon" <crazypheel at hotmail.com>
> To: <rt-users at lists.bestpractical.com>
> Sent: Wednesday, July 14, 2004 8:47 AM
> Subject: rt-mailgate error
>
>
> > I am receiving an error whenever I send in a message to rt-mailgate. I
> ran
> > the following command (Note: "spamcop" is my email message for testing
> > purposes):
> >
> >
> > cat spamcop | /usr/local/rt3/bin/rt-mailgate --action correspond --url
> > http://X.XX.XXX.XXX --debug --queue General
> >
> > The ticket IS created in RT, but I receive the following message in the
> > console:
> >
> >
> > Connecting to http://X.XX.XXX.XXX/REST/1.0/NoAuth/mail-gateway at
> > /usr/local/rt3/bin/rt-mailgate line 444, <> chunk 1.
> > Inside Unless
> > Should have added value
> > ok
> > Ticket: 153
> > Queue:
> > Owner: Nobody
> > Status:
> > Subject:
> > Requestor:
> > RT server error.
> >
> > The RT server which handled your email did not behave as expected. It
> > said:
> >
> > Inside Unless <====== (This is my
> > problem)
> > Should have added value <====== (This is my problem
> > ok
> > Ticket: 153
> > Queue:
> > Owner: Nobody
> > Status:
> > Subject:
> > Requestor:
> >
> >
> > I have determined that the two lines (indicated by the arrows) is the
> cause
> > of the error. I went into rt-mailgate to locate the source of the
message
> > and found that the whole lower block is contained in "$content", but I
> can't
> > seem to find where the lines "Inside Unless" and "Should have added
value"
> > have been inserted into "$content".
> >
> > Any thoughts?
> >
> > -Phil Shon
> >
>
More information about the rt-users
mailing list