[rt-users] On Custom Field change scrip action

2008-04-18 Thread Ben Robson
Greetings,
 
I am not sure where to start with this one I'd like to have a check
box custom field on tickets so that when the box is ticked an email is
sent to a fixed email address notifying them that the box has been
ticked.
 
Effectively:  OnUpdate - Check if CustomField checkbox has been
selected(ticked) - If yes, send defined_template to
fixed_email_address.
 
I have seen a few people doing something similar using the OnResolve
condition, but we need to be able to flag a job before resolution, so
need to use a custom field to set when the fixed_email recipient should
be notified.
 
Does anyone have any good insight as to how to make this happen?
 
Thanks heaps for your assistance with this.
 
Best regards,
BenR
 
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] On Custom Field change scrip action

2008-04-18 Thread Gene LeDuc

Hi Ben,

I use this as a User Defined Custom Condition to detect a change in a CF 
named DMCA State:


{ ### True on state change to ITSO_Review
  my $Transaction = $self-TransactionObj;
  return $Transaction-Type  eq   'CustomField'
   $Transaction-Field eq   '3'
   get_custom('DMCA State') eq   'ITSO_Review'
  ;

  sub get_custom {
  ### Returns custom field value
  ### get_custom($field_name)
my $target_name = $_[0];
my $val = $self-TicketObj-FirstCustomFieldValue($target_name);
return $val
  if defined $val;
return undef;
  }
}

I wrote this quite a while ago; from what I've learned of RT since then, I 
suspect I could have used the CF's name DMCA State instead of it's ID 3 
like this:

   $Transaction-Field eq DMCA State

Of course, what you are detecting is going to be different, but you should 
be able to use this as a guide.


Disclaimer: I know this code could be reduced to 1 or 2 lines, but my 
coding philosophy is that readability trumps terseness.


Regards,
Gene

At 01:08 AM 4/18/2008, Ben Robson wrote:

Greetings,

I am not sure where to start with this one I'd like to have a check 
box custom field on tickets so that when the box is ticked an email is 
sent to a fixed email address notifying them that the box has been ticked.


Effectively:  OnUpdate - Check if CustomField checkbox has been 
selected(ticked) - If yes, send defined_template to fixed_email_address.


I have seen a few people doing something similar using the OnResolve 
condition, but we need to be able to flag a job before resolution, so need 
to use a custom field to set when the fixed_email recipient should be notified.


Does anyone have any good insight as to how to make this happen?

Thanks heaps for your assistance with this.

Best regards,
BenR


--
Gene LeDuc, GSEC
Security Analyst
San Diego State University ___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

[rt-users] Mailer Issues

2008-04-18 Thread LDB
I need with the below issues .. RT can post, but it will not send mail.

Do I need a certain version of the PERL module?

I am using the latest stable version of RT.




[Fri Apr 18 17:49:37 2008] [debug]: Guessed encoding: utf8 (/opt/rt3/ 
lib/RT/I18N.pm:417)
[Fri Apr 18 17:49:37 2008] [debug]: Guessed encoding: utf8 (/opt/rt3/ 
lib/RT/I18N.pm:417)
[Fri Apr 18 17:49:37 2008] [debug]: Requestors got 19992 (/opt/rt3/lib/ 
RT/Interface/Web.pm:390)
[Fri Apr 18 17:49:37 2008] [debug]: Cc got 114 (/opt/rt3/lib/RT/ 
Interface/Web.pm:390)
[Fri Apr 18 17:49:37 2008] [debug]: AdminCc got  (/opt/rt3/lib/RT/ 
Interface/Web.pm:390)
[Fri Apr 18 17:49:37 2008] [debug]: About to think about scrips for  
transaction #52484 (/opt/rt3/lib/RT/Transaction_Overlay.pm:167)
[Fri Apr 18 17:49:37 2008] [debug]: About to think about scrips for  
transaction #52485 (/opt/rt3/lib/RT/Transaction_Overlay.pm:167)
[Fri Apr 18 17:49:37 2008] [debug]: About to think about scrips for  
transaction #52486 (/opt/rt3/lib/RT/Transaction_Overlay.pm:167)
[Fri Apr 18 17:49:37 2008] [debug]: About to think about scrips for  
transaction #52487 (/opt/rt3/lib/RT/Transaction_Overlay.pm:167)
[Fri Apr 18 17:49:37 2008] [debug]: About to think about scrips for  
transaction #52488 (/opt/rt3/lib/RT/Transaction_Overlay.pm:167)
[Fri Apr 18 17:49:37 2008] [debug]: About to prepare scrips for  
transaction #52488 (/opt/rt3/lib/RT/Transaction_Overlay.pm:171)
[Fri Apr 18 17:49:37 2008] [debug]: Found 5 scrips (/opt/rt3/lib/RT/ 
Scrips_Overlay.pm:365)
[Fri Apr 18 17:49:38 2008] [debug]: About to commit scrips for  
transaction #52488 (/opt/rt3/lib/RT/Transaction_Overlay.pm:180)
[Fri Apr 18 17:49:38 2008] [info]: [EMAIL PROTECTED] 
  #7753/52488 - Scrip 2  (/opt/rt3/lib/RT/Action/SendEmail.pm:266)
[Fri Apr 18 17:49:38 2008] [warning]: Warning: Use of require  
without parentheses is ambiguous at (eval 486) line 1. ((eval 486):1)
[Fri Apr 18 17:49:38 2008] [warning]: Bareword found where operator  
expected at (eval 486) line 1, near /usr/bin ((eval 486):1)
[Fri Apr 18 17:49:38 2008] [warning]:   (Missing operator before bin?)  
((eval 486):1)
[Fri Apr 18 17:49:38 2008] [error]: Scrip Commit 2 died. - Compilation  
error at /usr/local/lib/perl5/site_perl/5.8.3/Mail/Mailer.pm line 117.

Stack:
   [/usr/local/lib/perl5/site_perl/5.8.3/Mail/Mailer.pm:117]
   [/usr/local/lib/perl5/site_perl/5.8.3/Mail/Internet.pm:449]
   [/opt/rt3/lib/RT/Action/SendEmail.pm:370]
   [/opt/rt3/lib/RT/Action/SendEmail.pm:288]
   [/opt/rt3/lib/RT/Action/SendEmail.pm:107]
   [/opt/rt3/lib/RT/ScripAction_Overlay.pm:242]
   [/opt/rt3/lib/RT/Scrip_Overlay.pm:507]
   [/opt/rt3/lib/RT/Scrips_Overlay.pm:195]
   [/opt/rt3/lib/RT/Transaction_Overlay.pm:181]
   [/opt/rt3/lib/RT/Record.pm:1466]
   [/opt/rt3/lib/RT/Ticket_Overlay.pm:746]
   [/opt/rt3/lib/RT/Interface/Web.pm:467]
   [/opt/rt3/share/html/Ticket/Display.html:107]
   [/opt/rt3/share/html/Ticket/Create.html:375]
   [/opt/rt3/share/html/autohandler:291] (/opt/rt3/lib/RT/ 
Scrip_Overlay.pm:515)
[Fri Apr 18 17:49:38 2008] [info]: [EMAIL PROTECTED] 
  #7753/52488 - Scrip 3  (/opt/rt3/lib/RT/Action/SendEmail.pm:266)
[Fri Apr 18 17:49:38 2008] [warning]: Warning: Use of require  
without parentheses is ambiguous at (eval 502) line 1. ((eval 502):1)
[Fri Apr 18 17:49:38 2008] [warning]: Bareword found where operator  
expected at (eval 502) line 1, near /usr/bin ((eval 502):1)
[Fri Apr 18 17:49:38 2008] [warning]:   (Missing operator before bin?)  
((eval 502):1)
[Fri Apr 18 17:49:38 2008] [error]: Scrip Commit 3 died. - Compilation  
error at /usr/local/lib/perl5/site_perl/5.8.3/Mail/Mailer.pm line 117.

Stack:
   [/usr/local/lib/perl5/site_perl/5.8.3/Mail/Mailer.pm:117]
   [/usr/local/lib/perl5/site_perl/5.8.3/Mail/Internet.pm:449]
   [/opt/rt3/lib/RT/Action/SendEmail.pm:370]
   [/opt/rt3/lib/RT/Action/SendEmail.pm:288]
   [/opt/rt3/lib/RT/Action/SendEmail.pm:107]
   [/opt/rt3/lib/RT/ScripAction_Overlay.pm:242]
   [/opt/rt3/lib/RT/Scrip_Overlay.pm:507]
   [/opt/rt3/lib/RT/Scrips_Overlay.pm:195]
   [/opt/rt3/lib/RT/Transaction_Overlay.pm:181]
   [/opt/rt3/lib/RT/Record.pm:1466]
   [/opt/rt3/lib/RT/Ticket_Overlay.pm:746]
   [/opt/rt3/lib/RT/Interface/Web.pm:467]
   [/opt/rt3/share/html/Ticket/Display.html:107]
   [/opt/rt3/share/html/Ticket/Create.html:375]
   [/opt/rt3/share/html/autohandler:291] (/opt/rt3/lib/RT/ 
Scrip_Overlay.pm:515)
[Fri Apr 18 17:49:38 2008] [info]: [EMAIL PROTECTED] 
  #7753/52488 - Scrip 14 TellOwner (/opt/rt3/lib/RT/Action/ 
SendEmail.pm:266)

== /var/log/apache2/rt_access_log ==
192.168.176.73 - - [18/Apr/2008:13:49:37 -0400] POST /Ticket/ 
Create.html HTTP/1.1 302 311

== /opt/rt3/var/log/rt.log ==
[Fri Apr 18 17:49:38 2008] [warning]: Warning: Use of require  
without parentheses is ambiguous at (eval 518) line 1. ((eval 518):1)
[Fri Apr 18 17:49:38 2008] [warning]: Bareword found where operator  
expected at (eval 518) line 1, near /usr/bin ((eval 518):1)
[Fri Apr 18 17:49:38 2008] [warning]:   (Missing operator 

[rt-users] Auto Reply email loop

2008-04-18 Thread John BORIS
It seems I have an autoreply loop that I can't seem to stop. While
testing my setup I sent a request from one of my machines to my RT
instance. When it tried to send the reply to that machine (the
requester's email address was [EMAIL PROTECTED]) it got a connection
refused since that machine was never setup to receive email and the DNS
for that system probably doesn't have an MX record. (I am assuming that
since I didn't specify the MX request when I asked our Admins to create
it. So now my RT instance is sending an email request every hour and
when it gets refused it will try three times and after three refusals
goes to sleep for another hour.  The mail is originating from the apache
user.  So is there a place that RT holds these tasks and keeps trying
until it succeeds? 


TIA

John J. Boris, Sr.
JEN-A-SyS Administrator
Archdiocese of Philadelphia
Remember! That light at the end of the tunnel
Just might be the headlight of an oncoming train!
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] error upgrading from 3.4.5 to 3.6.4 (viaetc/upgrade/3.5.1 script)

2008-04-18 Thread Sean McCreadie
I had the same issue several months ago and was never able to get my 3.4
database to upgrade to 3.6.  It seemed like the script that was provided
was wrong in some way and I could never get it upgraded to the 3.5
schema.  Does anyone have any ideas on this?  I would love to get my old
ticket in use again!  Thanks in advance.

 

Sean

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Trenton
Taylor
Sent: Thursday, April 17, 2008 8:30 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] error upgrading from 3.4.5 to 3.6.4
(viaetc/upgrade/3.5.1 script)

 

I'm trying to upgrade my RT system from 3.4.5 to 3.6.4 via:

 

# command:

/opt/rt3.6/sbin/rt-setup-database --action schema \ --datadir
etc/upgrade/3.5.1 --dba root --prompt-for-dba-password

 

But I am getting this error:

 

#:

Creating database schema.

Problem with statement:

 

 

CREATE TABLE Attachments (

  id INTEGER NOT NULL  AUTO_INCREMENT,

  TransactionId integer NOT NULL  ,

  Parent integer NOT NULL DEFAULT 0  ,

  MessageId varchar(160) NULL  ,

  Subject varchar(255) NULL  ,

  Filename varchar(255) NULL  ,

  ContentType varchar(80) NULL  ,

  ContentEncoding varchar(80) NULL  ,

  Content LONGTEXT NULL  ,

  Headers LONGTEXT NULL  ,

  Creator integer NOT NULL DEFAULT 0  ,

  Created DATETIME NULL  ,

  PRIMARY KEY (id)

) TYPE=InnoDB

Table 'Attachments' already exists at /opt/rt3.6/sbin/rt-setup-database
line 220, SCHEMA line 464.

 

 

Thanks in advance -

Trent 

 


Important: The information contained in this e-mail message is
confidential and is intended only for the named addressee(s). If the
reader of this e-mail message is not an intended recipient (or the
individual responsible for the delivery of this e-mail message to an
intended recipient), please be advised that any re-use, dissemination,
distribution or copying of this e-mail message is prohibited. If you
have received this e-mail message in error, please reply to the sender
that you have received the message in error and then delete it. Thank
you. 

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

[rt-users] More Mail Errors from RT

2008-04-18 Thread LDB
Any help would be nice ...

== /var/log/mail ==
Apr 18 15:14:42 rt postfix/pickup[23379]: 3A9DD97C89: uid=51 from=[EMAIL 
PROTECTED] 
  orig_id=38CF997EE5
Apr 18 15:14:42 rt postfix/cleanup[3476]: 3A9DD97C89: message-id=[EMAIL 
PROTECTED] 
 
Apr 18 15:14:42 rt postfix/qmgr[22295]: 3A9DD97C89:  
from=[EMAIL PROTECTED], size=2265, nrcpt=1 (queue active)
Apr 18 15:14:42 rt postfix/local[3478]: 3A9DD97C89:  
to=[EMAIL PROTECTED], relay=local, delay=-2952, status=deferred  
(temporary failure. Command output: RT server error.  The RT server  
which handled your email did not behave as expected. It said:   
Compilation error at /usr/local/lib/perl5/site_perl/5.8.3/Mail/ 
Mailer.pm line 117.  Stack:   [/usr/local/lib/perl5/site_perl/5.8.3/ 
Mail/Mailer.pm:117]   [/usr/local/lib/perl5/site_perl/5.8.3/Mail/ 
Internet.pm:449]   [/opt/rt3/lib/RT/Interface/Email.pm:280]   [/opt/ 
rt3/lib/RT/Interface/Email.pm:741]   [/opt/rt3/share/html/REST/1.0/ 
NoAuth/mail-gateway:61]  )

== /opt/rt3/var/log/rt.log ==
[Fri Apr 18 19:14:42 2008] [debug]: Converting 'us-ascii' to 'utf-8'  
for text/plain - RE: TN 0801 Full Update (/opt/rt3/lib/RT/I18N.pm:240)
[Fri Apr 18 19:14:42 2008] [error]: Disabled User #14964 failed access  
check for CreateTicket (/opt/rt3/lib/RT/Principal_Overlay.pm:310)
[Fri Apr 18 19:14:42 2008] [crit]: No permission to create tickets in  
the queue 'NVDB' (/opt/rt3/lib/RT/Interface/Email.pm:243)
[Fri Apr 18 19:14:42 2008] [warning]: Warning: Use of require  
without parentheses is ambiguous at (eval 814) line 1. ((eval 814):1)
[Fri Apr 18 19:14:42 2008] [warning]: Bareword found where operator  
expected at (eval 814) line 1, near /usr/bin ((eval 814):1)
[Fri Apr 18 19:14:42 2008] [warning]:   (Missing operator before bin?)  
((eval 814):1)


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] How to use ActivityReports

2008-04-18 Thread akos . torok
Hi All,

I'm just trying to use your Activity Reports extension, but I'm totally 
lost. What should I put into the Query textarea? Could anyone give me 
just one simple example please? We use 3.4.4pre3

Many thanks!

Ákos


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] permission problems

2008-04-18 Thread LDB
This is quite frustrating .. I have a permissions problem which most  
likely cacades into sending mail problems ..

Any ideas?


== /opt/rt3/var/log/rt.log ==
[Fri Apr 18 19:47:13 2008] [crit]: No permission to create tickets in  
the queue 'NVDB' (/opt/rt3/lib/RT/Interface/Email.pm:243)
[Fri Apr 18 19:47:13 2008] [warning]: Warning: Use of require  
without parentheses is ambiguous at (eval 801) line 1. ((eval 801):1)
[Fri Apr 18 19:47:13 2008] [warning]: Bareword found where operator  
expected at (eval 801) line 1, near /usr/bin ((eval 801):1)
[Fri Apr 18 19:47:13 2008] [warning]:   (Missing operator before bin?)  
((eval 801):1)
[Fri Apr 18 20:03:54 2008] [debug]: Converting 'us-ascii' to 'utf-8'  
for text/plain - RE: TN 0801 Full Update (/opt/rt3/lib/RT/I18N.pm:240)
[Fri Apr 18 20:03:54 2008] [error]: Disabled User #14964 failed access  
check for CreateTicket (/opt/rt3/lib/RT/Principal_Overlay.pm:310)
[Fri Apr 18 20:03:54 2008] [crit]: No permission to create tickets in  
the queue 'NVDB' (/opt/rt3/lib/RT/Interface/Email.pm:243)
[Fri Apr 18 20:03:54 2008] [warning]: Warning: Use of require  
without parentheses is ambiguous at (eval 474) line 1. ((eval 474):1)
[Fri Apr 18 20:03:54 2008] [warning]: Bareword found where operator  
expected at (eval 474) line 1, near /usr/bin ((eval 474):1)
[Fri Apr 18 20:03:54 2008] [warning]:   (Missing operator before bin?)  
((eval 474):1)
[Fri Apr 18 20:12:03 2008] [warning]: Encode::Guess failed: decoder is  
undefined; fallback to iso-8859-1 (/opt/rt3/lib/RT/I18N.pm:436)
[Fri Apr 18 20:12:03 2008] [debug]: Guessed encoding: ascii (/opt/rt3/ 
lib/RT/I18N.pm:417)
[Fri Apr 18 20:12:03 2008] [warning]: Encode::Guess failed: decoder is  
undefined; fallback to iso-8859-1 (/opt/rt3/lib/RT/I18N.pm:436)
[Fri Apr 18 20:12:03 2008] [debug]: Guessed encoding: ascii (/opt/rt3/ 
lib/RT/I18N.pm:417)
[Fri Apr 18 20:12:03 2008] [debug]: About to think about scrips for  
transaction #52505 (/opt/rt3/lib/RT/Transaction_Overlay.pm:167)
[Fri Apr 18 20:12:03 2008] [debug]: About to prepare scrips for  
transaction #52505 (/opt/rt3/lib/RT/Transaction_Overlay.pm:171)
[Fri Apr 18 20:12:03 2008] [debug]: Found 7 scrips (/opt/rt3/lib/RT/ 
Scrips_Overlay.pm:365)

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] permission problems

2008-04-18 Thread roger
On Fri, 2008-04-18 at 16:38 -0400, LDB wrote:
 This is quite frustrating .. I have a permissions problem which most  
 likely cacades into sending mail problems ..
 
 Any ideas?
 
 
 == /opt/rt3/var/log/rt.log ==
 [Fri Apr 18 19:47:13 2008] [crit]: No permission to create tickets in  
 the queue 'NVDB' (/opt/rt3/lib/RT/Interface/Email.pm:243)
 [Fri Apr 18 19:47:13 2008] [warning]: Warning: Use of require  
 without parentheses is ambiguous at (eval 801) line 1. ((eval 801):1)
 [Fri Apr 18 19:47:13 2008] [warning]: Bareword found where operator  
 expected at (eval 801) line 1, near /usr/bin ((eval 801):1)
 [Fri Apr 18 19:47:13 2008] [warning]: (Missing operator )

I wouldn't want to swear to it, but I suspect these last two errors
point to a problem in your scrips.

TTFN
-- 
roger [EMAIL PROTECTED]
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] permission problems

2008-04-18 Thread LDB

On Apr 18, 2008, at 5:38 PM, roger wrote:
 On Fri, 2008-04-18 at 16:38 -0400, LDB wrote:
 This is quite frustrating .. I have a permissions problem which most
 likely cacades into sending mail problems ..

 Any ideas?


 == /opt/rt3/var/log/rt.log ==
 [Fri Apr 18 19:47:13 2008] [crit]: No permission to create tickets in
 the queue 'NVDB' (/opt/rt3/lib/RT/Interface/Email.pm:243)
 [Fri Apr 18 19:47:13 2008] [warning]: Warning: Use of require
 without parentheses is ambiguous at (eval 801) line 1. ((eval 801):1)
 [Fri Apr 18 19:47:13 2008] [warning]: Bareword found where operator
 expected at (eval 801) line 1, near /usr/bin ((eval 801):1)
 [Fri Apr 18 19:47:13 2008] [warning]:(Missing operator )

 I wouldn't want to swear to it, but I suspect these last two errors
 point to a problem in your scrips.

 TTFN
 -- 
 roger [EMAIL PROTECTED]
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]


 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com



I am willing to take criticism ... :)



Set($rtname , rt.dc.org);
Set($Organization , dc.org);

Set($Timezone , 'US/Eastern');

Set($DatabaseType , 'mysql');
Set($DatabaseUser , 'user');
Set($DatabasePassword , 'pass');
Set($DatabaseName , 'rt3');
Set($DatabaseHost , 'localhost');

Set($OwnerEmail , '[EMAIL PROTECTED]');
Set($LoopsToRTOwner , 1);
Set($StoreLoops , undef);
Set($MaxAttachmentSize , 1000);
Set($TruncateLongAttachments , undef);
Set($DropLongAttachments , undef);
Set($ParseNewMessageForTicketCcs , 1);
Set($RTAddressRegexp , '[EMAIL PROTECTED]');
Set($SenderMustExistInExternalDatabase , 1);

Set($CorrespondAddress , '[EMAIL PROTECTED]');
Set($CommentAddress , '[EMAIL PROTECTED]');

#Sendmail Configuration

Set($MailCommand , 'sendmailpipe');
Set($SendmailArguments , );
#Set($SendmailArguments , -oi -t);
#Set($SendmailArguments,-oi -t -ODeliveryMode=b -OErrorMode=m);
#Set($SendmailPath , /usr/sbin/sendmail);
Set($SendmailPath , /opt/rt3/bin/mailx-wrapper);
Set($UseFriendlyFromLine , 1);
Set($FriendlyFromLineFormat , \%s via RT\ %s);
Set($UseFriendlyToLine , 1);
Set($FriendlyToLineFormat, \%s of $RT::rtname Ticket #%s\:;);
Set($NotifyActor, 0);

# Logging
Set($LogToSyslog, 'debug');
Set($LogToScreen, 'error');
Set($LogToFile  , 'debug');
Set($LogDir, '/opt/rt3/var/log');
Set($LogToFileNamed , rt.log);#log to rt.log

# Web interface configuration
Set($WebPath , );
Set($WebPath , );
Set($WebBaseURL , https://rt.dnc.org;);

Set($WebURL , $WebBaseURL . $WebPath . /);
Set($WebImagesURL , $WebURL . NoAuth/images/);
Set($LogoURL , $WebImagesURL . rt.jpg);
Set($MessageBoxWidth , 72);
Set($MessageBoxWrap, HARD);
Set($TrustHTMLAttachments , undef);
Set($MaxInlineBody, 13456);
Set($MyTicketsLength, 10);
1;

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] permission problems

2008-04-18 Thread LDB

On Apr 18, 2008, at 5:38 PM, roger wrote:
 On Fri, 2008-04-18 at 16:38 -0400, LDB wrote:
 This is quite frustrating .. I have a permissions problem which most
 likely cacades into sending mail problems ..

 Any ideas?


 == /opt/rt3/var/log/rt.log ==
 [Fri Apr 18 19:47:13 2008] [crit]: No permission to create tickets in
 the queue 'NVDB' (/opt/rt3/lib/RT/Interface/Email.pm:243)
 [Fri Apr 18 19:47:13 2008] [warning]: Warning: Use of require
 without parentheses is ambiguous at (eval 801) line 1. ((eval 801):1)
 [Fri Apr 18 19:47:13 2008] [warning]: Bareword found where operator
 expected at (eval 801) line 1, near /usr/bin ((eval 801):1)
 [Fri Apr 18 19:47:13 2008] [warning]:(Missing operator )

 I wouldn't want to swear to it, but I suspect these last two errors
 point to a problem in your scrips.

 TTFN
 --  
 roger [EMAIL PROTECTED]
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]


 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com


Also, my rt.conf file is not sitting with me well either 

Notice Apache2 module I CANNOT get to load properly ... :(





VirtualHost *:443
ServerName rt.dc.org
DocumentRoot /opt/rt3/share/html
ServerAdmin [EMAIL PROTECTED]
LogLevel warn
ErrorLog /var/log/apache2/rt_error_log
TransferLog /var/log/apache2/rt_access_log
PerlSetVar MasonArgsMethod CGI
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:- 
EXP:-eNULL
SSLCertificateFile /etc/apache2/ssl.crt/rt.crt
SSLCertificateKeyFile /etc/apache2/ssl.key/rt.key

# this line applies to Apache2+mod_perl2 only
# Below line might be incorrect, I had to use:
# PerlModule Apache2::compat
# mod_perl 2.0.1 from FC4 Linux
#   PerlModule Apache2 Apache::compat


Alias /rt /opt/rt3/share/html
PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl

Directory /opt/rt3/share/html
  AllowOverride All
  Options ExecCGI FollowSymLinks
  IfModule mod_access.c
 Order allow,deny
  Allow from all
  /IfModule
/Directory

Location /rt
  RewriteEngine On
  RedirectMatch permanent (.*)/$ $1/index.html
  AddDefaultCharset UTF-8
  SetHandler perl-script
  PerlHandler RT::Mason
/Location
/VirtualHost



___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] RT not generating email for CCs/AdminCCs

2008-04-18 Thread Thierry Thelliez
I think I have a similar issue trying to understand how the CC field
works on the Resolve Ticket page.

The Watchers CC and Watchers AdminCC work fine (after changing the
default scrip #10). When a ticket is resolved they receive an email.
Good.

But my users also want to add email addresses 'on the fly' to a ticket
resolution. Isn't it what this CC field is about? I am not talking
about the Watcher CC.

Watching the email server log shows that RT does not send anything to
the CC field.

(This is on RT 3.6.5 updated from 3.6.4).

Thanks,
Thierry
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] RT as a intranet portal? Or other suggestions?

2008-04-18 Thread Kim Pedersen

 I've been happy with TWiki for our internal needs.  A wiki-notion
 of edit-in-place is more suitable for our documentation than RT's
 notion of serial appends to a thread (ticket).

 I've also been interested in Trac, but that uses its own
 built-in wiki and ticketing system.  I like the integration Trac
 provides, but I don't want a second ticketing system or a second wiki.

 FWIW, it probably would not be too hard to make a twiki plugin
 that interacted with RT via the REST interface.  And probably
 the reverse, if you wanted some RT interface to twiki (e.g. to
 use wiki pages instead of RTFM articles).
   
We use Twiki and RT as well, but with no integration.

Googling on the subject sometime last year, I did run across references 
to companies who have done some integration of RT into Twiki, using 
Mason - but I've been unable to find any concrete information, and it 
isn't a high enough priority / we don't have the resources at my work 
place for it.



Regards,
Kim

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com