[rt-users] Re: rt-mailgate error

Ruslan U. Zakirov cubic at acronis.ru
Fri Jul 16 08:26:21 EDT 2004


Philip Shon wrote:
> 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'.
:)
If you wish to log something from scrip you can use:
$RT::Logger-><loglevel>("Message here goes");
			Best regards. Ruslan.
> 
> 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
>>>
>>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Be sure to check out the RT wiki at http://wiki.bestpractical.com




More information about the rt-users mailing list