[rt-users] rt-mailgate fallback

2012-12-04 Thread Albert Shih
Hi,

I would like to known if they are any solution to have a fallback solution
about rt-mailgate with procmail.

Actually I've something like in the .procmailrc 

#
# Spam
#
:0: # spam
* ^X-Spam-Status: YES*
! humain.address

:0:
|/usr/bin/rt-mailgate --queue Support --action correspond --url 
https://ULR_OF_RT


the problem is sometime the RT website is down (power failure) and in that
case the mail is lost. 

How can I tell rt-mailgate (or procmail) to send the mail to humain.address 
only if the rt-mailgate failed

Regards.

JAS



-- 
Albert SHIH
DIO bâtiment 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
Téléphone : 01 45 07 76 26/06 86 69 95 71
xmpp: j...@obspm.fr
Heure local/Local time:
mar 4 déc 2012 10:08:17 CET

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] rt-mailgate fallback

2012-12-04 Thread Jason A. Smith
I think what you want to do is add a rule like this right below your 
pipe to rt-mailgate rule. This tells procmail to trap the error from the 
failed rt-mailgate delivery and retry later:


# If RT delivery failed, return it to the mail queue, the MTA
# will retry delivery later (75 is the value for EX_TEMPFAIL
# in /usr/include/sysexits.h):
:0 e
{ EXITCODE=75 HOST }



On 12/04/2012 04:12 AM, Albert Shih wrote:

Hi,

I would like to known if they are any solution to have a fallback solution
about rt-mailgate with procmail.

Actually I've something like in the .procmailrc

#
# Spam
#
:0: # spam
* ^X-Spam-Status: YES*
! humain.address

:0:
|/usr/bin/rt-mailgate --queue Support --action correspond --url 
https://ULR_OF_RT


the problem is sometime the RT website is down (power failure) and in that
case the mail is lost.

How can I tell rt-mailgate (or procmail) to send the mail to humain.address 
only if the rt-mailgate failed

Regards.

JAS






We're hiring! http://bestpractical.com/jobs


Re: [rt-users] Page not found http://.?./HASH(0x2af24643ee50)

2012-12-04 Thread Lukáš Loskot
Hi,

I have just solved the same problem during weekend.
Delete the mason cache and restart the apache.

In my instalation the cache lives here:
/var/cache/request-tracker4/mason_data/
I placed folowing command to my favourites and thinking of placing it in the
apache2 restart routines:
rm -rf /var/cache/request-tracker4/mason_data/obj/*

Regards,
Lukas Loskot

 Le 29/10/2012 ? 12:50:34-0400, Kevin Falcone a ?crit
 On Mon, Oct 29, 2012 at 05:32:09PM +0100, Carlos Fuentes Bermejo wrote:
  I'm just upgraded to 4.0.8, I'm also using RT::Authen::ExternalAuth to
  login against a ldap server, and when I login into RT and I get a
  Page not found, The page you requested could not be found, the URL
  which I have in the browser is http://rt.com/HASH(0x?.), any
  ideas???
 
 I assume you're using RT-Authen-ExternalAuth?
 If so, you want to grab 0.12 released last week which resolves this.
 

WellI've exactly same problem. 

I've erase the old RT-Authen-ExternalAuth by : 

rm -rf plugins/RT-Authen-ExternalAuth

install the new version 0.12 from
http://search.cpan.org/dist/RT-Authen-ExternalAuth/

but I still have this problem. 

I have do this three time. 

I'm using FreeBSD, with 

perl-5.14.2_2

and all ports is up2date. 

Regards. 

JAS



-- 
Albert SHIH
DIO b?timent 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
T?l?phone : 01 45 07 76 26/06 86 69 95 71
xmpp: j...@obspm.fr
Heure local/Local time:
lun 3 d?c 2012 12:18:02 CET


We're hiring! http://bestpractical.com/jobs


Re: [rt-users] On Correspond - Open ticket

2012-12-04 Thread Kevin Falcone
On Fri, Nov 30, 2012 at 01:00:54PM +, Nick Fennell wrote:
Actually, some additional information to this.
The scrip may in fact be working but from the opposite way to what I 
 want/expect.
When customer correspondence is received, the ticket status (on a resolved 
 ticket) is set to
Open.
However, what I want is when correspondence is added to a ticket with 
 status = New, set it to
Open.

On Correspond Open Tickets will flip a ticket from new - open or
resolved - open when correspondence happens.

Please note that it has a lot of tweaks (so, if a requestor requests a
ticket and then replies to the Autoreply email, it won't go new -
open) and other related things.

You can read more about the action here
http://bestpractical.com/rt/docs/latest/RT/Action/AutoOpen.html

-kevin


pgpt6rUA6yNST.pgp
Description: PGP signature

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] Adding CF value to Subject

2012-12-04 Thread Kevin Falcone
On Thu, Nov 29, 2012 at 07:37:55PM -, Jim Tambling wrote:
How would I go about inserting the value of a custom field to the subject 
 line on ticket
creation?

Do you want to change the Subject of the ticket or change the subject
of outgoing emails?

If the former, write a Scrip to do On Create User Defined and in the
User Defined section, write a SetSubject call.  If the latter, update
the relevant templates to include a FirstCustomField('My Field') in
the Subject: field.

-kevin


pgpM3EXHEb0yO.pgp
Description: PGP signature

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] rt-mailgate fallback

2012-12-04 Thread Thomas Sibley
On 12/04/2012 01:12 AM, Albert Shih wrote:
   :0:
   |/usr/bin/rt-mailgate --queue Support --action correspond --url 
 https://ULR_OF_RT
 
 
 the problem is sometime the RT website is down (power failure) and in that
 case the mail is lost. 
 
 How can I tell rt-mailgate (or procmail) to send the mail to humain.address 
 only if the rt-mailgate failed

Your rt-mailgate procmail recipe should start with :0w not :0:  The w
indicates procmail should wait for rt-mailgate to return and use its
exit code.

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] LDAP Mac OS X Server OD

2012-12-04 Thread Kevin Falcone
On Thu, Nov 29, 2012 at 03:44:30PM -0600, Erich Prinz wrote:
 Installed on Ubuntu 10.04 server and need to authenticate to the OD
 running on a OS X 10.6.8 server. We currently have the users log into
 the Ubuntu box via thin clients (LTSP) and utilize kerberos tickets
 (PAM SASL) from the OD machine. Yet it seems even the simplest of
 configs breaks RT.

 I've installed the RT::Authen::ExternalAuth plugin and have done a very basic 
 config.
 
 Adding Set($LogToFile , 'debug'); to RT_SiteConfig.pm breaks RT. Zero
 response in the web gui and nothing (RT) gets logged in
 /var/log/syslog or /var/log/messages after restart of the web server.

Does the default of /opt/rt4/var/log/rt.log exist and is the file
writable?  Depending on your apache configuration, RT's complaint
about writing to that file may be eaten.

Try just logging to $LogToScreen instead so that it ends up in the
normal apache logs.

 RT: RT::Authen::ExternalAuth::LDAP::_GetBoundLdapObj Can't bind: 
 LDAP_INVALID_DN_SYNTAX 34 
 (/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:495)

This implies your server probably doesn't like

'user' = 'admin',
'pass' = 'x',

This format for username.

You may need to use a full DN format, depends on the server.  You can
test with a tiny Net::LDAP script or the command line ldapsearch
program.

-kevin


pgpqAObSWyNge.pgp
Description: PGP signature

We're hiring! http://bestpractical.com/jobs


[rt-users] Rest Interface: Create New Ticket

2012-12-04 Thread Vega, Angel L.
Hello,

I've been reviewing the 
sectionhttp://requesttracker.wikia.com/wiki/REST#Interface on how to create a 
new ticket through the REST interface. Could you give me an example on how the 
following instruction would be implemented in Perl?

To create a new ticket: post on /REST/1.0/ticket/new with a variable named 
content, containing key: value line by line

Thanks,
Angel

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] Rest Interface: Create New Ticket

2012-12-04 Thread John Johnston

We are using something like this:

my $ticket = RT::Client::REST::Ticket-new(
rt  = $rt,
queue   = General,
subject = $your_subject,
status = new,
requestor = [$your_netid],
cf = {
'public' = $your_public,
},
)-store(text = $your_comments);

Where $your_subject, $your_netid, $your_public, and $your_comments are 
returned by the form once submit is pushed. Note that requestor is 
submitted as an array type object.   cf is a custom field.  You'll 
also need some sort of login section placed beforehand, and an 
identification of the server/interface to use.  For instance:



my $rt = RT::Client::REST-new(
server  = ($ENV{RTSERVER} || 'http://your.rt.domain.com'),
);

$rt-login(
username= yourAdmin,
password= yourPass,
);

So you create the RT object $rt, login to it, and then create your ticket.

Hope that helps.

J.



On 12/4/12 4:17 PM, Vega, Angel L. wrote:


Hello,

I've been reviewing the section 
http://requesttracker.wikia.com/wiki/REST#Interface on how to create 
a new ticket through the REST interface. Could you give me an example 
on how the following instruction would be implemented in Perl?


/To create a new ticket: post on /|//REST/1.0/ticket/new/|/with a 
variable named /|/content/|/, containing /|/key: value/|/ line by 
line/


Thanks,

Angel




We're hiring! http://bestpractical.com/jobs



We're hiring! http://bestpractical.com/jobs