starting to work...
[freeside.git] / rt / etc / RT_Config.pm.in
1 #
2 # RT was configured with:
3 #
4 #   $ @CONFIGURE_INCANT@
5 #
6
7 package RT;
8
9 #############################  WARNING  #############################
10 #                                                                   #
11 #                     NEVER EDIT RT_Config.pm !                     #
12 #                                                                   #
13 #         Instead, copy any sections you want to change to          #
14 #         RT_SiteConfig.pm and edit them there.  Otherwise,         #
15 #         your changes will be lost when you upgrade RT.            #
16 #                                                                   #
17 #############################  WARNING  #############################
18
19 =head1 NAME
20
21 RT::Config
22
23 =head1 Base configuration
24
25 =over 4
26
27 =item C<$rtname>
28
29 C<$rtname> is the string that RT will look for in mail messages to
30 figure out what ticket a new piece of mail belongs to.
31
32 Your domain name is recommended, so as not to pollute the namespace.
33 Once you start using a given tag, you should probably never change it;
34 otherwise, mail for existing tickets won't get put in the right place.
35
36 =cut
37
38 Set($rtname, "example.com");
39
40 =item C<$Organization>
41
42 You should set this to your organization's DNS domain. For example,
43 I<fsck.com> or I<asylum.arkham.ma.us>. It is used by the linking
44 interface to guarantee that ticket URIs are unique and easy to
45 construct.  Changing it after you have created tickets in the system
46 will B<break> all existing ticket links!
47
48 =cut
49
50 Set($Organization, "example.com");
51
52 =item C<$CorrespondAddress>, C<$CommentAddress>
53
54 RT is designed such that any mail which already has a ticket-id
55 associated with it will get to the right place automatically.
56
57 C<$CorrespondAddress> and C<$CommentAddress> are the default addresses
58 that will be listed in From: and Reply-To: headers of correspondence
59 and comment mail tracked by RT, unless overridden by a queue-specific
60 address.  They should be set to email addresses which have been
61 configured as aliases for F<rt-mailgate>.
62
63 =cut
64
65 Set($CorrespondAddress, '');
66
67 Set($CommentAddress, '');
68
69 =item C<$WebDomain>
70
71 Domain name of the RT server, e.g. 'www.example.com'. It should not
72 contain anything except the server name.
73
74 =cut
75
76 Set($WebDomain, "localhost");
77
78 =item C<$WebPort>
79
80 If we're running as a superuser, run on port 80.  Otherwise, pick a
81 high port for this user.
82
83 443 is default port for https protocol.
84
85 =cut
86
87 Set($WebPort, 80);
88
89 =item C<$WebPath>
90
91 If you're putting the web UI somewhere other than at the root of your
92 server, you should set C<$WebPath> to the path you'll be serving RT
93 at.
94
95 C<$WebPath> requires a leading / but no trailing /, or it can be
96 blank.
97
98 In most cases, you should leave C<$WebPath> set to "" (an empty
99 value).
100
101 =cut
102
103 Set($WebPath, "");
104
105 =item C<$Timezone>
106
107 C<$Timezone> is the default timezone, used to convert times entered by
108 users into GMT, as they are stored in the database, and back again;
109 users can override this.  It should be set to a timezone recognized by
110 your server.
111
112 =cut
113
114 Set($Timezone, "US/Eastern");
115
116 =item C<@Plugins>
117
118 Set C<@Plugins> to a list of external RT plugins that should be
119 enabled (those plugins have to be previously downloaded and
120 installed).
121
122 Example:
123
124 C<Set(@Plugins, (qw(Extension::QuickDelete RT::Extension::CommandByMail)));>
125
126 =cut
127
128 Set(@Plugins, (qw(RTx::Calendar
129                   RT::Extension::MobileUI))); #RTx::Checklist ));
130
131 =back
132
133
134
135
136 =head1 Database connection
137
138 =over 4
139
140 =item C<$DatabaseType>
141
142 Database driver being used; case matters.  Valid types are "mysql",
143 "Oracle" and "Pg".
144
145 =cut
146
147 Set($DatabaseType, "@DB_TYPE@");
148
149 =item C<$DatabaseHost>, C<$DatabaseRTHost>
150
151 The domain name of your database server.  If you're running MySQL and
152 on localhost, leave it blank for enhanced performance.
153
154 C<DatabaseRTHost> is the fully-qualified hostname of your RT server,
155 for use in granting ACL rights on MySQL.
156
157 =cut
158
159 Set($DatabaseHost,   "@DB_HOST@");
160 Set($DatabaseRTHost, "@DB_RT_HOST@");
161
162 =item C<$DatabasePort>
163
164 The port that your database server is running on.  Ignored unless it's
165 a positive integer. It's usually safe to leave this blank; RT will
166 choose the correct default.
167
168 =cut
169
170 Set($DatabasePort, "@DB_PORT@");
171
172 =item C<$DatabaseUser>
173
174 The name of the user to connect to the database as.
175
176 =cut
177
178 Set($DatabaseUser, "@DB_RT_USER@");
179
180 =item C<$DatabasePassword>
181
182 The password the C<$DatabaseUser> should use to access the database.
183
184 =cut
185
186 Set($DatabasePassword, q{@DB_RT_PASS@});
187
188 =item C<$DatabaseName>
189
190 The name of the RT database on your database server. For Oracle, the
191 SID and database objects are created in C<$DatabaseUser>'s schema.
192
193 =cut
194
195 Set($DatabaseName, q{@DB_DATABASE@});
196
197 =item C<$DatabaseRequireSSL>
198
199 If you're using PostgreSQL and have compiled in SSL support, set
200 C<$DatabaseRequireSSL> to 1 to turn on SSL communication with the
201 database.
202
203 =cut
204
205 Set($DatabaseRequireSSL, undef);
206
207 =back
208
209
210
211
212 =head1 Logging
213
214 The default is to log anything except debugging information to syslog.
215 Check the L<Log::Dispatch> POD for information about how to get things
216 by syslog, mail or anything else, get debugging info in the log, etc.
217
218 It might generally make sense to send error and higher by email to
219 some administrator.  If you do this, be careful that this email isn't
220 sent to this RT instance.  Mail loops will generate a critical log
221 message.
222
223 =over 4
224
225 =item C<$LogToSyslog>, C<$LogToScreen>
226
227 The minimum level error that will be logged to the specific device.
228 From lowest to highest priority, the levels are:
229
230     debug info notice warning error critical alert emergency
231
232 Many syslogds are configured to discard or file debug messages away, so
233 if you're attempting to debug RT you may need to reconfigure your
234 syslogd or use one of the other logging options.
235
236 Logging to your screen affects scripts run from the command line as well
237 as the STDERR sent to your webserver (so these logs will usually show up
238 in your web server's error logs).
239
240 =cut
241
242 Set($LogToSyslog, "info");
243 Set($LogToScreen, "info");
244
245 =item C<$LogToFile>, C<$LogDir>, C<$LogToFileNamed>
246
247 Logging to a standalone file is also possible. The file needs to both
248 exist and be writable by all direct users of the RT API. This generally
249 includes the web server and whoever rt-crontool runs as. Note that
250 rt-mailgate and the RT CLI go through the webserver, so their users do
251 not need to have write permissions to this file. If you expect to have
252 multiple users of the direct API, Best Practical recommends using syslog
253 instead of direct file logging.
254
255 You should set C<$LogToFile> to one of the levels documented above.
256
257 =cut
258
259 Set($LogToFile, undef);
260 Set($LogDir, q{@RT_LOG_PATH@});
261 Set($LogToFileNamed, "rt.log");    #log to rt.log
262
263 =item C<$LogStackTraces>
264
265 If set to a log level then logging will include stack traces for
266 messages with level equal to or greater than specified.
267
268 NOTICE: Stack traces include parameters supplied to functions or
269 methods. It is possible for stack trace logging to reveal sensitive
270 information such as passwords or ticket content in your logs.
271
272 =cut
273
274 Set($LogStackTraces, "");
275
276 =item C<@LogToSyslogConf>
277
278 On Solaris or UnixWare, set to ( socket => 'inet' ).  Options here
279 override any other options RT passes to L<Log::Dispatch::Syslog>.
280 Other interesting flags include facility and logopt.  (See the
281 L<Log::Dispatch::Syslog> documentation for more information.)  (Maybe
282 ident too, if you have multiple RT installations.)
283
284 =cut
285
286 Set(@LogToSyslogConf, ());
287
288 =back
289
290
291
292 =head1 Incoming mail gateway
293
294 =over 4
295
296 =item C<$EmailSubjectTagRegex>
297
298 This regexp controls what subject tags RT recognizes as its own.  If
299 you're not dealing with historical C<$rtname> values, you'll likely
300 never have to change this configuration.
301
302 Be B<very careful> with it. Note that it overrides C<$rtname> for
303 subject token matching and that you should use only "non-capturing"
304 parenthesis grouping. For example:
305
306 C<Set($EmailSubjectTagRegex, qr/(?:example.com|example.org)/i );>
307
308 and NOT
309
310 C<Set($EmailSubjectTagRegex, qr/(example.com|example.org)/i );>
311
312 The setting below would make RT behave exactly as it does without the
313 setting enabled.
314
315 =cut
316
317 # Set($EmailSubjectTagRegex, qr/\Q$rtname\E/i );
318
319 =item C<$OwnerEmail>
320
321 C<$OwnerEmail> is the address of a human who manages RT. RT will send
322 errors generated by the mail gateway to this address.  This address
323 should I<not> be an address that's managed by your RT instance.
324
325 =cut
326
327 Set($OwnerEmail, 'root');
328
329 =item C<$LoopsToRTOwner>
330
331 If C<$LoopsToRTOwner> is defined, RT will send mail that it believes
332 might be a loop to C<$OwnerEmail>.
333
334 =cut
335
336 Set($LoopsToRTOwner, 1);
337
338 =item C<$StoreLoops>
339
340 If C<$StoreLoops> is defined, RT will record messages that it believes
341 to be part of mail loops.  As it does this, it will try to be careful
342 not to send mail to the sender of these messages.
343
344 =cut
345
346 Set($StoreLoops, undef);
347
348 =item C<$MaxAttachmentSize>
349
350 C<$MaxAttachmentSize> sets the maximum size (in bytes) of attachments
351 stored in the database.
352
353 For MySQL and Oracle, we set this size to 10 megabytes.  If you're
354 running a PostgreSQL version earlier than 7.1, you will need to drop
355 this to 8192. (8k)
356
357 =cut
358
359
360 Set($MaxAttachmentSize, 10_000_000);
361
362 =item C<$TruncateLongAttachments>
363
364 If this is set to a non-undef value, RT will truncate attachments
365 longer than C<$MaxAttachmentSize>.
366
367 =cut
368
369 Set($TruncateLongAttachments, undef);
370
371 =item C<$DropLongAttachments>
372
373 If this is set to a non-undef value, RT will silently drop attachments
374 longer than C<MaxAttachmentSize>.  C<$TruncateLongAttachments>, above,
375 takes priority over this.
376
377 =cut
378
379 Set($DropLongAttachments, undef);
380
381 =item C<$RTAddressRegexp>
382
383 C<$RTAddressRegexp> is used to make sure RT doesn't add itself as a
384 ticket CC if C<$ParseNewMessageForTicketCcs>, above, is enabled.  It
385 is important that you set this to a regular expression that matches
386 all addresses used by your RT.  This lets RT avoid sending mail to
387 itself.  It will also hide RT addresses from the list of "One-time Cc"
388 and Bcc lists on ticket reply.
389
390 If you have a number of addresses configured in your RT database
391 already, you can generate a naive first pass regexp by using:
392
393     perl etc/upgrade/generate-rtaddressregexp
394
395 If left blank, RT will generate a regexp for you, based on your
396 comment and correspond address settings on your queues; this comes at
397 a small cost in start-up speed.
398
399 =cut
400
401 Set($RTAddressRegexp, undef);
402
403 =item C<$IgnoreCcRegexp>
404
405 C<$IgnoreCcRegexp> is a regexp to exclude addresses from automatic addition 
406 to the Cc list.  Use this for addresses that are I<not> received by RT but
407 are sometimes added to Cc lists by mistake.  Unlike C<$RTAddressRegexp>, 
408 these addresses can still receive email from RT otherwise.
409
410 =cut
411
412 Set($IgnoreCcRegexp, undef);
413
414 =item C<$CanonicalizeEmailAddressMatch>, C<$CanonicalizeEmailAddressReplace>
415
416 RT provides functionality which allows the system to rewrite incoming
417 email addresses.  In its simplest form, you can substitute the value
418 in C<CanonicalizeEmailAddressReplace> for the value in
419 C<CanonicalizeEmailAddressMatch> (These values are passed to the
420 C<CanonicalizeEmailAddress> subroutine in F<RT/User.pm>)
421
422 By default, that routine performs a C<s/$Match/$Replace/gi> on any
423 address passed to it.
424
425 =cut
426
427 # Set($CanonicalizeEmailAddressMatch, '@subdomain\.example\.com$');
428 # Set($CanonicalizeEmailAddressReplace, '@example.com');
429
430 =item C<$CanonicalizeOnCreate>
431
432 Set this to 1 and the create new user page will use the values that
433 you enter in the form but use the function CanonicalizeUserInfo in
434 F<RT/User_Local.pm>
435
436 =cut
437
438 Set($CanonicalizeOnCreate, 0);
439
440 =item C<$ValidateUserEmailAddresses>
441
442 If C<$ValidateUserEmailAddresses> is 1, RT will refuse to create
443 users with an invalid email address (as specified in RFC 2822) or with
444 an email address made of multiple email addresses.
445
446 =cut
447
448 Set($ValidateUserEmailAddresses, undef);
449
450 =item C<$NonCustomerEmailRegexp>
451
452 Normally, when a ticket is linked to a customer, any requestors on that
453 ticket that didn't previously have customer memberships are linked to 
454 the customer also.  C<$NonCustomerEmailRegexp> is a regexp for email 
455 addresses that should I<not> automatically be linked to a customer in 
456 this way.
457
458 =cut
459
460 Set($NonCustomerEmailRegexp, undef);
461
462 =item C<@MailPlugins>
463
464 C<@MailPlugins> is a list of authentication plugins for
465 L<RT::Interface::Email> to use; see L<rt-mailgate>
466
467 =cut
468
469 =item C<$UnsafeEmailCommands>
470
471 C<$UnsafeEmailCommands>, if set to 1, enables 'take' and 'resolve'
472 as possible actions via the mail gateway.  As its name implies, this
473 is very unsafe, as it allows email with a forged sender to possibly
474 resolve arbitrary tickets!
475
476 =cut
477
478 =item C<$ExtractSubjectTagMatch>, C<$ExtractSubjectTagNoMatch>
479
480 The default "extract remote tracking tags" scrip settings; these
481 detect when your RT is talking to another RT, and adjust the subject
482 accordingly.
483
484 =cut
485
486 Set($ExtractSubjectTagMatch, qr/\[.+? #\d+\]/);
487 Set($ExtractSubjectTagNoMatch, ( ${RT::EmailSubjectTagRegex}
488        ? qr/\[(?:${RT::EmailSubjectTagRegex}) #\d+\]/
489        : qr/\[\Q$RT::rtname\E #\d+\]/));
490
491 =back
492
493
494
495 =head1 Outgoing mail
496
497 =over 4
498
499 =item C<$MailCommand>
500
501 C<$MailCommand> defines which method RT will use to try to send mail.
502 We know that 'sendmailpipe' works fairly well.  If 'sendmailpipe'
503 doesn't work well for you, try 'sendmail'.  Other options are 'smtp'
504 or 'qmail'.
505
506 Note that you should remove the '-t' from C<$SendmailArguments> if you
507 use 'sendmail' rather than 'sendmailpipe'
508
509 For testing purposes, or to simply disable sending mail out into the
510 world, you can set C<$MailCommand> to 'testfile' which writes all mail
511 to a temporary file.  RT will log the location of the temporary file
512 so you can extract mail from it afterward.
513
514 =cut
515
516 Set($MailCommand, "sendmailpipe");
517
518 =item C<$SetOutgoingMailFrom>
519
520 C<$SetOutgoingMailFrom> tells RT to set the sender envelope to the
521 Correspond mail address of the ticket's queue.
522
523 Warning: If you use this setting, bounced mails will appear to be
524 incoming mail to the system, thus creating new tickets.
525
526 =cut
527
528 Set($SetOutgoingMailFrom, 0);
529
530 =item C<$OverrideOutgoingMailFrom>
531
532 C<$OverrideOutgoingMailFrom> is used for overwriting the Correspond
533 address of the queue as it is handed to sendmail -f. This helps force
534 the From_ header away from www-data or other email addresses that show
535 up in the "Sent by" line in Outlook.
536
537 The option is a hash reference of queue name to email address.  If
538 there is no ticket involved, then the value of the C<Default> key will
539 be used.
540
541 This option is irrelevant unless C<$SetOutgoingMailFrom> is set.
542
543 =cut
544
545 Set($OverrideOutgoingMailFrom, {
546 #    'Default' => 'admin@rt.example.com',
547 #    'General' => 'general@rt.example.com',
548 });
549
550 =item C<$DefaultMailPrecedence>
551
552 C<$DefaultMailPrecedence> is used to control the default Precedence
553 level of outgoing mail where none is specified.  By default it is
554 C<bulk>, but if you only send mail to your staff, you may wish to
555 change it.
556
557 Note that you can set the precedence of individual templates by
558 including an explicit Precedence header.
559
560 If you set this value to C<undef> then we do not set a default
561 Precedence header to outgoing mail. However, if there already is a
562 Precedence header, it will be preserved.
563
564 =cut
565
566 Set($DefaultMailPrecedence, "bulk");
567
568 =item C<$DefaultErrorMailPrecedence>
569
570 C<$DefaultErrorMailPrecedence> is used to control the default
571 Precedence level of outgoing mail that indicates some kind of error
572 condition. By default it is C<bulk>, but if you only send mail to your
573 staff, you may wish to change it.
574
575 If you set this value to C<undef> then we do not add a Precedence
576 header to error mail.
577
578 =cut
579
580 Set($DefaultErrorMailPrecedence, "bulk");
581
582 =item C<$UseOriginatorHeader>
583
584 C<$UseOriginatorHeader> is used to control the insertion of an
585 RT-Originator Header in every outgoing mail, containing the mail
586 address of the transaction creator.
587
588 =cut
589
590 Set($UseOriginatorHeader, 1);
591
592 =item C<$UseFriendlyFromLine>
593
594 By default, RT sets the outgoing mail's "From:" header to "SenderName
595 via RT".  Setting C<$UseFriendlyFromLine> to 0 disables it.
596
597 =cut
598
599 Set($UseFriendlyFromLine, 1);
600
601 =item C<$FriendlyFromLineFormat>
602
603 C<sprintf()> format of the friendly 'From:' header; its arguments are
604 SenderName and SenderEmailAddress.
605
606 =cut
607
608 Set($FriendlyFromLineFormat, "\"%s via RT\" <%s>");
609
610 =item C<$UseFriendlyToLine>
611
612 RT can optionally set a "Friendly" 'To:' header when sending messages
613 to Ccs or AdminCcs (rather than having a blank 'To:' header.
614
615 This feature DOES NOT WORK WITH SENDMAIL[tm] BRAND SENDMAIL.  If you
616 are using sendmail, rather than postfix, qmail, exim or some other
617 MTA, you _must_ disable this option.
618
619 =cut
620
621 Set($UseFriendlyToLine, 0);
622
623 =item C<$FriendlyToLineFormat>
624
625 C<sprintf()> format of the friendly 'To:' header; its arguments are
626 WatcherType and TicketId.
627
628 =cut
629
630 Set($FriendlyToLineFormat, "\"%s of ". RT->Config->Get('rtname') ." Ticket #%s\":;");
631
632 =item C<$NotifyActor>
633
634 By default, RT doesn't notify the person who performs an update, as
635 they already know what they've done. If you'd like to change this
636 behavior, Set C<$NotifyActor> to 1
637
638 =cut
639
640 Set($NotifyActor, 0);
641
642 =item C<$RecordOutgoingEmail>
643
644 By default, RT records each message it sends out to its own internal
645 database.  To change this behavior, set C<$RecordOutgoingEmail> to 0
646
647 =cut
648
649 Set($RecordOutgoingEmail, 1);
650
651 =item C<$VERPPrefix>, C<$VERPDomain>
652
653 Setting these options enables VERP support
654 L<http://cr.yp.to/proto/verp.txt>.
655
656 Uncomment the following two directives to generate envelope senders
657 of the form C<${VERPPrefix}${originaladdress}@${VERPDomain}>
658 (i.e. rt-jesse=fsck.com@rt.example.com ).
659
660 This currently only works with sendmail and sendmailpipe.
661
662 =cut
663
664 # Set($VERPPrefix, "rt-");
665 # Set($VERPDomain, $RT::Organization);
666
667
668 =item C<$ForwardFromUser>
669
670 By default, RT forwards a message using queue's address and adds RT's
671 tag into subject of the outgoing message, so recipients' replies go
672 into RT as correspondents.
673
674 To change this behavior, set C<$ForwardFromUser> to 1 and RT
675 will use the address of the current user and remove RT's subject tag.
676
677 =cut
678
679 Set($ForwardFromUser, 0);
680
681 =back
682
683 =head2 Email dashboards
684
685 =over 4
686
687 =item C<$DashboardAddress>
688
689 The email address from which RT will send dashboards. If none is set,
690 then C<$OwnerEmail> will be used.
691
692 =cut
693
694 Set($DashboardAddress, '');
695
696 =item C<$DashboardSubject>
697
698 Lets you set the subject of dashboards. Arguments are the frequency (Daily,
699 Weekly, Monthly) of the dashboard and the dashboard's name.
700
701 =cut
702
703 Set($DashboardSubject, "%s Dashboard: %s");
704
705 =item C<@EmailDashboardRemove>
706
707 A list of regular expressions that will be used to remove content from
708 mailed dashboards.
709
710 =cut
711
712 Set(@EmailDashboardRemove, ());
713
714 =back
715
716
717
718 =head2 Sendmail configuration
719
720 These options only take effect if C<$MailCommand> is 'sendmail' or
721 'sendmailpipe'
722
723 =over 4
724
725 =item C<$SendmailArguments>
726
727 C<$SendmailArguments> defines what flags to pass to C<$SendmailPath>
728 If you picked 'sendmailpipe', you MUST add a -t flag to
729 C<$SendmailArguments> These options are good for most sendmail
730 wrappers and work-a-likes.
731
732 These arguments are good for sendmail brand sendmail 8 and newer:
733 C<Set($SendmailArguments,"-oi -t -ODeliveryMode=b -OErrorMode=m");>
734
735 =cut
736
737 Set($SendmailArguments, "-oi -t");
738
739
740 =item C<$SendmailBounceArguments>
741
742 C<$SendmailBounceArguments> defines what flags to pass to C<$Sendmail>
743 assuming RT needs to send an error (i.e. bounce).
744
745 =cut
746
747 Set($SendmailBounceArguments, '-f "<>"');
748
749 =item C<$SendmailPath>
750
751 If you selected 'sendmailpipe' above, you MUST specify the path to
752 your sendmail binary in C<$SendmailPath>.
753
754 =cut
755
756 Set($SendmailPath, "/usr/sbin/sendmail");
757
758
759 =back
760
761 =head2 SMTP configuration
762
763 These options only take effect if C<$MailCommand> is 'smtp'
764
765 =over 4
766
767 =item C<$SMTPServer>
768
769 C<$SMTPServer> should be set to the hostname of the SMTP server to use
770
771 =cut
772
773 Set($SMTPServer, undef);
774
775 =item C<$SMTPFrom>
776
777 C<$SMTPFrom> should be set to the 'From' address to use, if not the
778 email's 'From'
779
780 =cut
781
782 Set($SMTPFrom, undef);
783
784 =item C<$SMTPDebug>
785
786 C<$SMTPDebug> should be set to 1 to debug SMTP mail sending
787
788 =cut
789
790 Set($SMTPDebug, 0);
791
792 =back
793
794 =head2 Other mailers
795
796 =over 4
797
798 =item C<@MailParams>
799
800 C<@MailParams> defines a list of options passed to $MailCommand if it
801 is not 'sendmailpipe', 'sendmail', or 'smtp'
802
803 =cut
804
805 Set(@MailParams, ());
806
807 =back
808
809
810 =head1 Web interface
811
812 =over 4
813
814 =item C<$WebDefaultStylesheet>
815
816 This determines the default stylesheet the RT web interface will use.
817 RT ships with several themes by default:
818
819   web2            The default layout for RT 3.8
820   aileron         The default layout for RT 4.0
821   ballard         Theme which doesn't rely on JavaScript for menuing
822
823 This bundled distibution of RT also includes:
824   freeside3       Integration with Freeside (enabled by default)
825   freeside2.1     Previous Freeside theme
826
827 This value actually specifies a directory in F<share/html/NoAuth/css/>
828 from which RT will try to load the file main.css (which should @import
829 any other files the stylesheet needs).  This allows you to easily and
830 cleanly create your own stylesheets to apply to RT.  This option can
831 be overridden by users in their preferences.
832
833 =cut
834
835 Set($WebDefaultStylesheet, "freeside3");
836
837 =item C<$DefaultQueue>
838
839 Use this to select the default queue name that will be used for
840 creating new tickets. You may use either the queue's name or its
841 ID. This only affects the queue selection boxes on the web interface.
842
843 =cut
844
845 # Set($DefaultQueue, "General");
846
847 =item C<$RememberDefaultQueue>
848
849 When a queue is selected in the new ticket dropdown, make it the new
850 default for the new ticket dropdown.
851
852 =cut
853
854 # Set($RememberDefaultQueue, 1);
855
856 =item C<$EnableReminders>
857
858 Hide all links and portlets related to Reminders by setting this to 0
859
860 =cut
861
862 Set($EnableReminders, 1);
863
864 =item C<@CustomFieldValuesSources>
865
866 Set C<@CustomFieldValuesSources> to a list of class names which extend
867 L<RT::CustomFieldValues::External>.  This can be used to pull lists of
868 custom field values from external sources at runtime.
869
870 =cut
871
872 Set(@CustomFieldValuesSources, ('RT::CustomFieldValues::Queues'));
873
874 =item C<$CanonicalizeRedirectURLs>
875
876 Set C<$CanonicalizeRedirectURLs> to 1 to use C<$WebURL> when
877 redirecting rather than the one we get from C<%ENV>.
878
879 Apache's UseCanonicalName directive changes the hostname that RT
880 finds in C<%ENV>.  You can read more about what turning it On or Off
881 means in the documentation for your version of Apache.
882
883 If you use RT behind a reverse proxy, you almost certainly want to
884 enable this option.
885
886 =cut
887
888 Set($CanonicalizeRedirectURLs, 0);
889
890 =item C<@JSFiles>
891
892 A list of JavaScript files to be included in head.  Removing any of
893 the default entries is not suggested.
894
895 =cut
896
897 Set(@JSFiles, qw/
898     jquery-1.4.2.min.js
899     jquery_noconflict.js
900     jquery-ui-1.8.4.custom.min.js
901     jquery-ui-patch-datepicker.js
902     ui.timepickr.js
903     titlebox-state.js
904     util.js
905     userautocomplete.js
906     jquery.event.hover-1.0.js
907     superfish.js
908     supersubs.js
909     jquery.supposition.js
910     history-folding.js
911     late.js
912 /);
913
914 =item C<$JSMinPath>
915
916 Path to the jsmin binary; if specified, it will be used to minify
917 C<JSFiles>.  The default, and the fallback if the binary cannot be
918 found, is to simply concatenate the files.
919
920 jsmin can be installed by running 'make jsmin' from the RT install
921 directory, or from http://www.crockford.com/javascript/jsmin.html
922
923 =cut
924
925 # Set($JSMinPath, "/path/to/jsmin");
926
927 =item C<@CSSFiles>
928
929 A list of additional CSS files to be included in head.
930
931 =cut
932
933 Set(@CSSFiles, qw//);
934
935 =item C<$UsernameFormat>
936
937 This determines how user info is displayed. 'concise' will show one of
938 either NickName, RealName, Name or EmailAddress, depending on what
939 exists and whether the user is privileged or not. 'verbose' will show
940 RealName and EmailAddress.
941
942 =cut
943
944 Set($UsernameFormat, "verbose");
945
946 =item C<$WebBaseURL>, C<$WebURL>
947
948 Usually you don't want to set these options. The only obvious reason
949 is if RT is accessible via https protocol on a non standard port, e.g.
950 'https://rt.example.com:9999'. In all other cases these options are
951 computed using C<$WebDomain>, C<$WebPort> and C<$WebPath>.
952
953 C<$WebBaseURL> is the scheme, server and port
954 (e.g. 'http://rt.example.com') for constructing URLs to the web
955 UI. C<$WebBaseURL> doesn't need a trailing /.
956
957 C<$WebURL> is the C<$WebBaseURL>, C<$WebPath> and trailing /, for
958 example: 'http://www.example.com/rt/'.
959
960 =cut
961
962 my $port = RT->Config->Get('WebPort');
963 Set($WebBaseURL,
964     ($port == 443? 'https': 'http') .'://'
965     . RT->Config->Get('WebDomain')
966     . ($port != 80 && $port != 443? ":$port" : '')
967 );
968
969 Set($WebURL, RT->Config->Get('WebBaseURL') . RT->Config->Get('WebPath') . "/");
970
971 =item C<$WebImagesURL>
972
973 C<$WebImagesURL> points to the base URL where RT can find its images.
974 Define the directory name to be used for images in RT web documents.
975
976 =cut
977
978 Set($WebImagesURL, RT->Config->Get('WebPath') . "/NoAuth/images/");
979
980 =item C<$LogoURL>
981
982 C<$LogoURL> points to the URL of the RT logo displayed in the web UI.
983 This can also be configured via the web UI.
984
985 =cut
986
987 Set($LogoURL, RT->Config->Get('WebImagesURL') . "bpslogo.png");
988
989 =item C<$LogoLinkURL>
990
991 C<$LogoLinkURL> is the URL that the RT logo hyperlinks to.
992
993 =cut
994
995 Set($LogoLinkURL, "http://bestpractical.com");
996
997 =item C<$LogoAltText>
998
999 C<$LogoAltText> is a string of text for the alt-text of the logo. It
1000 will be passed through C<loc> for localization.
1001
1002 =cut
1003
1004 Set($LogoAltText, "Best Practical Solutions, LLC corporate logo");
1005
1006 =item C<$LogoImageHeight>
1007
1008 C<$LogoImageHeight> is the value of the C<height> attribute of the logo
1009 C<img> tag.
1010
1011 =cut
1012
1013 Set($LogoImageHeight, 38);
1014
1015 =item C<$LogoImageWidth>
1016
1017 C<$LogoImageWidth> is the value of the C<width> attribute of the logo
1018 C<img> tag.
1019
1020 =cut
1021
1022 Set($LogoImageWidth, 181);
1023
1024 =item C<$WebNoAuthRegex>
1025
1026 What portion of RT's URL space should not require authentication.  The
1027 default is almost certainly correct, and should only be changed if you
1028 are extending RT.
1029
1030 =cut
1031
1032 Set($WebNoAuthRegex, qr{^ /rt (?:/+NoAuth/ | /+REST/\d+\.\d+/NoAuth/) }x );
1033
1034 =item C<$SelfServiceRegex>
1035
1036 What portion of RT's URLspace should be accessible to Unprivileged
1037 users This does not override the redirect from F</Ticket/Display.html>
1038 to F</SelfService/Display.html> when Unprivileged users attempt to
1039 access ticked displays.
1040
1041 =cut
1042
1043 Set($SelfServiceRegex, qr!^(?:/+SelfService/)!x );
1044
1045 =item C<$WebFlushDbCacheEveryRequest>
1046
1047 By default, RT clears its database cache after every page view.  This
1048 ensures that you've always got the most current information when
1049 working in a multi-process (mod_perl or FastCGI) Environment.  Setting
1050 C<$WebFlushDbCacheEveryRequest> to 0 will turn this off, which will
1051 speed RT up a bit, at the expense of a tiny bit of data accuracy.
1052
1053 =cut
1054
1055 Set($WebFlushDbCacheEveryRequest, 1);
1056
1057 =item C<%ChartFont>
1058
1059 The L<GD> module (which RT uses for graphs) ships with a built-in font
1060 that doesn't have full Unicode support. You can use a given TrueType
1061 font for a specific language by setting %ChartFont to (language =E<gt>
1062 the absolute path of a font) pairs. Your GD library must have support
1063 for TrueType fonts to use this option. If there is no entry for a
1064 language in the hash then font with 'others' key is used.
1065
1066 RT comes with two TrueType fonts covering most available languages.
1067
1068 =cut
1069
1070 Set(
1071     %ChartFont,
1072     'zh-cn'  => "$RT::BasePath/share/fonts/DroidSansFallback.ttf",
1073     'zh-tw'  => "$RT::BasePath/share/fonts/DroidSansFallback.ttf",
1074     'ja'     => "$RT::BasePath/share/fonts/DroidSansFallback.ttf",
1075     'others' => "$RT::BasePath/share/fonts/DroidSans.ttf",
1076 );
1077
1078 =item C<$ChartsTimezonesInDB>
1079
1080 RT stores dates using the UTC timezone in the DB, so charts grouped by
1081 dates and time are not representative. Set C<$ChartsTimezonesInDB> to 1
1082 to enable timezone conversions using your DB's capabilities. You may
1083 need to do some work on the DB side to use this feature, read more in
1084 F<docs/customizing/timezones_in_charts.pod>.
1085
1086 At this time, this feature only applies to MySQL and PostgreSQL.
1087
1088 =cut
1089
1090 Set($ChartsTimezonesInDB, 0);
1091
1092 =back
1093
1094
1095
1096 =head2 Home page
1097
1098 =over 4
1099
1100 =item C<$DefaultSummaryRows>
1101
1102 C<$DefaultSummaryRows> is default number of rows displayed in for
1103 search results on the front page.
1104
1105 =cut
1106
1107 Set($DefaultSummaryRows, 10);
1108
1109 =item C<$HomePageRefreshInterval>
1110
1111 C<$HomePageRefreshInterval> is default number of seconds to refresh
1112 the RT home page. Choose from [0, 120, 300, 600, 1200, 3600, 7200].
1113
1114 =cut
1115
1116 Set($HomePageRefreshInterval, 0);
1117
1118 =item C<$HomepageComponents>
1119
1120 C<$HomepageComponents> is an arrayref of allowed components on a
1121 user's customized homepage ("RT at a glance").
1122
1123 =cut
1124
1125 Set($HomepageComponents, [qw(QuickCreate Quicksearch MyCalendar MyAdminQueues MySupportQueues MyReminders RefreshHomepage Dashboards SavedSearches)]);
1126
1127 =back
1128
1129
1130
1131
1132 =head2 Ticket search
1133
1134 =over 4
1135
1136 =item C<$UseSQLForACLChecks>
1137
1138 Historically, ACLs were checked on display, which could lead to empty
1139 search pages and wrong ticket counts.  Set C<$UseSQLForACLChecks> to 1
1140 to limit search results in SQL instead, which eliminates these
1141 problems.
1142
1143 This option is still relatively new; it may result in performance
1144 problems in some cases, or significant speedups in others.
1145
1146 =cut
1147
1148 Set($UseSQLForACLChecks, undef);
1149
1150 =item C<$TicketsItemMapSize>
1151
1152 On the display page of a ticket from search results, RT provides links
1153 to the first, next, previous and last ticket from the results.  In
1154 order to build these links, RT needs to fetch the full result set from
1155 the database, which can be resource-intensive.
1156
1157 Set C<$TicketsItemMapSize> to number of tickets you want RT to examine
1158 to build these links. If the full result set is larger than this
1159 number, RT will omit the "last" link in the menu.  Set this to zero to
1160 always examine all results.
1161
1162 =cut
1163
1164 Set($TicketsItemMapSize, 1000);
1165
1166 =item C<$SearchResultsRefreshInterval>
1167
1168 C<$SearchResultsRefreshInterval> is default number of seconds to
1169 refresh search results in RT. Choose from [0, 120, 300, 600, 1200,
1170 3600, 7200].
1171
1172 =cut
1173
1174 Set($SearchResultsRefreshInterval, 0);
1175
1176 =item C<$DefaultSearchResultFormat>
1177
1178 C<$DefaultSearchResultFormat> is the default format for RT search
1179 results
1180
1181 =cut
1182
1183 Set ($DefaultSearchResultFormat, qq{
1184    '<B><A HREF="__WebPath__/Ticket/Display.html?id=__id__">__id__</a></B>/TITLE:#',
1185    '<B><A HREF="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a></B>/TITLE:Subject',
1186    Customer,
1187    Status,
1188    QueueName,
1189    OwnerName,
1190    Priority,
1191    '__NEWLINE__',
1192    '',
1193    '<small>__Requestors__</small>',
1194    '<small>__CustomerTags__</small>',
1195    '<small>__CreatedRelative__</small>',
1196    '<small>__ToldRelative__</small>',
1197    '<small>__LastUpdatedRelative__</small>',
1198    '<small>__TimeLeft__</small>'});
1199
1200 =item C<$DefaultSelfServiceSearchResultFormat>
1201
1202 C<$DefaultSelfServiceSearchResultFormat> is the default format of
1203 searches displayed in the SelfService interface.
1204
1205 =cut
1206
1207 Set($DefaultSelfServiceSearchResultFormat, qq{
1208    '<B><A HREF="__WebPath__/SelfService/Display.html?id=__id__">__id__</a></B>/TITLE:#',
1209    '<B><A HREF="__WebPath__/SelfService/Display.html?id=__id__">__Subject__</a></B>/TITLE:Subject',
1210    Status,
1211    Requestors,
1212    OwnerName});
1213
1214 =item C<%FullTextSearch>
1215
1216 Full text search (FTS) without database indexing is a very slow
1217 operation, and is thus disabled by default.
1218
1219 Before setting C<Indexed> to 1, read F<docs/full_text_indexing.pod> for
1220 the full details of FTS on your particular database.
1221
1222 It is possible to enable FTS without database indexing support, simply
1223 by setting the C<Enable> key to 1, while leaving C<Indexed> set to 0.
1224 This is not generally suggested, as unindexed full-text searching can
1225 cause severe performance problems.
1226
1227 =cut
1228
1229 Set(%FullTextSearch,
1230     Enable  => 0,
1231     Indexed => 0,
1232 );
1233
1234
1235 =item C<$OnlySearchActiveTicketsInSimpleSearch>
1236
1237 When query in simple search doesn't have status info, use this to only
1238 search active ones.
1239
1240 =cut
1241
1242 Set($OnlySearchActiveTicketsInSimpleSearch, 1);
1243
1244 =item C<$SearchResultsAutoRedirect>
1245
1246 When only one ticket is found in search, use this to redirect to the
1247 ticket display page automatically.
1248
1249 =cut
1250
1251 Set($SearchResultsAutoRedirect, 0);
1252
1253 =back
1254
1255
1256
1257 =head2 Ticket display
1258
1259 =over 4
1260
1261 =item C<$ShowMoreAboutPrivilegedUsers>
1262
1263 This determines if the 'More about requestor' box on
1264 Ticket/Display.html is shown for Privileged Users.
1265
1266 =cut
1267
1268 Set($ShowMoreAboutPrivilegedUsers, 0);
1269
1270 =item C<$MoreAboutRequestorTicketList>
1271
1272 This can be set to Active, Inactive, All or None.  It controls what
1273 ticket list will be displayed in the 'More about requestor' box on
1274 Ticket/Display.html.  This option can be controlled by users also.
1275
1276 =cut
1277
1278 Set($MoreAboutRequestorTicketList, "Active");
1279
1280 =item C<$MoreAboutRequestorExtraInfo>
1281
1282 By default, the 'More about requestor' box on Ticket/Display.html
1283 shows the Requestor's name and ticket list.  If you would like to see
1284 extra information about the user, this expects a Format string of user
1285 attributes.  Please note that not all the attributes are supported in
1286 this display because we're not building a table.
1287
1288 Example:
1289 C<Set($MoreAboutRequestorExtraInfo,"Organization, Address1")>
1290
1291 =cut
1292
1293 Set($MoreAboutRequestorExtraInfo, "");
1294
1295 =item C<$MoreAboutRequestorGroupsLimit>
1296
1297 By default, the 'More about requestor' box on Ticket/Display.html
1298 shows all the groups of the Requestor.  Use this to limit the number
1299 of groups; a value of undef removes the group display entirely.
1300
1301 =cut
1302
1303 Set($MoreAboutRequestorGroupsLimit, 0);
1304
1305 =item C<$UseSideBySideLayout>
1306
1307 Should the ticket create and update forms use a more space efficient
1308 two column layout.  This layout may not work in narrow browsers if you
1309 set a MessageBoxWidth (below).
1310
1311 =cut
1312
1313 Set($UseSideBySideLayout, 1);
1314
1315 =item C<$EditCustomFieldsSingleColumn>
1316
1317 When displaying a list of Ticket Custom Fields for editing, RT
1318 defaults to a 2 column list.  If you set this to 1, it will instead
1319 display the Custom Fields in a single column.
1320
1321 =cut
1322
1323 Set($EditCustomFieldsSingleColumn, 0);
1324
1325 =item C<$ShowUnreadMessageNotifications>
1326
1327 If set to 1, RT will prompt users when there are new,
1328 unread messages on tickets they are viewing.
1329
1330 =cut
1331
1332 Set($ShowUnreadMessageNotifications, 0);
1333
1334 =item C<$AutocompleteOwners>
1335
1336 If set to 1, the owner drop-downs for ticket update/modify and the query
1337 builder are replaced by text fields that autocomplete.  This can
1338 alleviate the sometimes huge owner list for installations where many
1339 users have the OwnTicket right.
1340
1341 =cut
1342
1343 Set($AutocompleteOwners, 0);
1344
1345 =item C<$AutocompleteOwnersForSearch>
1346
1347 If set to 1, the owner drop-downs for the query builder are always
1348 replaced by text field that autocomplete and C<$AutocompleteOwners>
1349 is ignored. Helpful when owners list is huge in the query builder.
1350
1351 =cut
1352
1353 Set($AutocompleteOwnersForSearch, 0);
1354
1355 =item C<$UserAutocompleteFields>
1356
1357 Specifies which fields of L<RT::User> to match against and how to
1358 match each field when autocompleting users.  Valid match methods are
1359 LIKE, STARTSWITH, ENDSWITH, =, and !=.
1360
1361 =cut
1362
1363 Set($UserAutocompleteFields, {
1364     EmailAddress => 'STARTSWITH',
1365     Name         => 'STARTSWITH',
1366     RealName     => 'LIKE',
1367 });
1368
1369 =item C<$AllowUserAutocompleteForUnprivileged>
1370
1371 Should unprivileged users be allowed to autocomplete users.  Setting
1372 this option to 1 means unprivileged users will be able to search all
1373 your users.
1374
1375 =cut
1376
1377 Set($AllowUserAutocompleteForUnprivileged, 0);
1378
1379 =item C<$DisplayTicketAfterQuickCreate>
1380
1381 Enable this to redirect to the created ticket display page
1382 automatically when using QuickCreate.
1383
1384 =cut
1385
1386 Set($DisplayTicketAfterQuickCreate, 0);
1387
1388 =item C<$WikiImplicitLinks>
1389
1390 Support implicit links in WikiText custom fields?  Setting this to 1
1391 causes InterCapped or ALLCAPS words in WikiText fields to automatically
1392 become links to searches for those words.  If used on Articles, it links
1393 to the Article with that name.
1394
1395 =cut
1396
1397 Set($WikiImplicitLinks, 0);
1398
1399 =item C<$PreviewScripMessages>
1400
1401 Set C<$PreviewScripMessages> to 1 if the scrips preview on the ticket
1402 reply page should include the content of the messages to be sent.
1403
1404 =cut
1405
1406 Set($PreviewScripMessages, 0);
1407
1408 =item C<$SimplifiedRecipients>
1409
1410 If C<$SimplifiedRecipients> is set, a simple list of who will receive
1411 B<any> kind of mail will be shown on the ticket reply page, instead of a
1412 detailed breakdown by scrip.
1413
1414 =cut
1415
1416 Set($SimplifiedRecipients, 0);
1417
1418 =item C<$HideResolveActionsWithDependencies>
1419
1420 If set to 1, this option will skip ticket menu actions which can't be
1421 completed successfully because of outstanding active Depends On tickets.
1422
1423 By default, all ticket actions are displayed in the menu even if some of
1424 them can't be successful until all Depends On links are resolved or
1425 transitioned to another inactive status.
1426
1427 =cut
1428
1429 Set($HideResolveActionsWithDependencies, 0);
1430
1431 =back
1432
1433
1434
1435 =head2 Articles
1436
1437 =over 4
1438
1439 =item C<$ArticleOnTicketCreate>
1440
1441 Set this to 1 to display the Articles interface on the Ticket Create
1442 page in addition to the Reply/Comment page.
1443
1444 =cut
1445
1446 Set($ArticleOnTicketCreate, 0);
1447
1448 =item C<$HideArticleSearchOnReplyCreate>
1449
1450 Set this to 1 to hide the search and include boxes from the Article
1451 UI.  This assumes you have enabled Article Hotlist feature, otherwise
1452 you will have no access to Articles.
1453
1454 =cut
1455
1456 Set($HideArticleSearchOnReplyCreate, 0);
1457
1458 =back
1459
1460
1461
1462 =head2 Message box properties
1463
1464 =over 4
1465
1466 =item C<$MessageBoxWidth>, C<$MessageBoxHeight>
1467
1468 For message boxes, set the entry box width, height and what type of
1469 wrapping to use.  These options can be overridden by users in their
1470 preferences.
1471
1472 When the width is set to undef, no column count is specified and the
1473 message box will take up 100% of the available width.  Combining this
1474 with HARD messagebox wrapping (below) is not recommended, as it will
1475 lead to inconsistent width in transactions between browsers.
1476
1477 These settings only apply to the non-RichText message box.  See below
1478 for Rich Text settings.
1479
1480 =cut
1481
1482 Set($MessageBoxWidth, undef);
1483 Set($MessageBoxHeight, 15);
1484
1485 =item C<$MessageBoxWrap>
1486
1487 Wrapping is disabled when using MessageBoxRichText because of a bad
1488 interaction between IE and wrapping with the Rich Text Editor.
1489
1490 =cut
1491
1492 Set($MessageBoxWrap, "SOFT");
1493
1494 =item C<$MessageBoxRichText>
1495
1496 Should "rich text" editing be enabled? This option lets your users
1497 send HTML email messages from the web interface.
1498
1499 =cut
1500
1501 Set($MessageBoxRichText, 1);
1502
1503 =item C<$MessageBoxRichTextHeight>
1504
1505 Height of rich text JavaScript enabled editing boxes (in pixels)
1506
1507 =cut
1508
1509 Set($MessageBoxRichTextHeight, 200);
1510
1511 =item C<$MessageBoxIncludeSignature>
1512
1513 Should your users' signatures (from their Preferences page) be
1514 included in Comments and Replies.
1515
1516 =cut
1517
1518 Set($MessageBoxIncludeSignature, 1);
1519
1520 =item C<$MessageBoxIncludeSignatureOnComment>
1521
1522 Should your users' signatures (from their Preferences page) be
1523 included in Comments. Setting this to false overrides
1524 C<$MessageBoxIncludeSignature>.
1525
1526 =cut
1527
1528 Set($MessageBoxIncludeSignatureOnComment, 1);
1529
1530 =back
1531
1532
1533 =head2 Transaction display
1534
1535 =over 4
1536
1537 =item C<$OldestTransactionsFirst>
1538
1539 By default, RT shows newest transactions at the bottom of the ticket
1540 history page, if you want see them at the top set this to 0.  This
1541 option can be overridden by users in their preferences.
1542
1543 =cut
1544
1545 Set($OldestTransactionsFirst, 1);
1546
1547 =item C<$DeferTransactionLoading>
1548
1549 When set, defers loading ticket history until the user clicks a link.
1550 This should end up serving pages to users quicker, since generating
1551 all the HTML for transaction history can be slow for long tickets.
1552
1553 =cut
1554
1555 # Set($DeferTransactionLoading, 1);
1556
1557 =item C<$ShowBccHeader>
1558
1559 By default, RT hides from the web UI information about blind copies
1560 user sent on reply or comment.
1561
1562 =cut
1563
1564 Set($ShowBccHeader, 0);
1565
1566 =item C<$TrustHTMLAttachments>
1567
1568 If C<TrustHTMLAttachments> is not defined, we will display them as
1569 text. This prevents malicious HTML and JavaScript from being sent in a
1570 request (although there is probably more to it than that)
1571
1572 =cut
1573
1574 Set($TrustHTMLAttachments, undef);
1575
1576 =item C<$AlwaysDownloadAttachments>
1577
1578 Always download attachments, regardless of content type. If set, this
1579 overrides C<TrustHTMLAttachments>.
1580
1581 =cut
1582
1583 Set($AlwaysDownloadAttachments, undef);
1584
1585 =item C<$AttachmentUnits>
1586
1587 Controls the units (kilobytes or bytes) that attachment sizes use for
1588 display. The default is to display kilobytes if the attachment is
1589 larger than 1024 bytes, bytes otherwise. If you set
1590 C<$AttachmentUnits> to C<'k'> then attachment sizes will always be
1591 displayed in kilobytes. If set to C<'b'>, then sizes will be bytes.
1592
1593 =cut
1594
1595 Set($AttachmentUnits, undef);
1596
1597 =item C<$PreferRichText>
1598
1599 If C<$PreferRichText> is set to 1, RT will show HTML/Rich text messages
1600 in preference to their plain-text alternatives. RT "scrubs" the HTML to
1601 show only a minimal subset of HTML to avoid possible contamination by
1602 cross-site-scripting attacks.
1603
1604 =cut
1605
1606 Set($PreferRichText, undef);
1607
1608 =item C<$MaxInlineBody>
1609
1610 C<$MaxInlineBody> is the maximum attachment size that we want to see
1611 inline when viewing a transaction.  RT will inline any text if the
1612 value is undefined or 0.  This option can be overridden by users in
1613 their preferences.
1614
1615 =cut
1616
1617 Set($MaxInlineBody, 12000);
1618
1619 =item C<$ShowTransactionImages>
1620
1621 By default, RT shows images attached to incoming (and outgoing) ticket
1622 updates inline. Set this variable to 0 if you'd like to disable that
1623 behavior.
1624
1625 =cut
1626
1627 Set($ShowTransactionImages, 1);
1628
1629 =item C<$PlainTextPre>
1630
1631 Normally plaintext attachments are displayed as HTML with line breaks
1632 preserved.  This causes space- and tab-based formatting not to be
1633 displayed correctly.  By setting $PlainTextPre messages will be
1634 displayed using <pre>.
1635
1636 =cut
1637
1638 Set($PlainTextPre, 0);
1639
1640
1641 =item C<$PlainTextMono>
1642
1643 Set C<$PlainTextMono> to 1 to use monospaced font and preserve
1644 formatting; unlike C<$PlainTextPre>, the text will wrap to fit width
1645 of the browser window; this option overrides C<$PlainTextPre>.
1646
1647 =cut
1648
1649 Set($PlainTextMono, 0);
1650
1651 =item C<$SuppressInlineTextFiles>
1652
1653 If C<$SuppressInlineTextFiles> is set to 1, then uploaded text files
1654 (text-type attachments with file names) are prevented from being
1655 displayed in-line when viewing a ticket's history.
1656
1657 =cut
1658
1659 Set($SuppressInlineTextFiles, undef);
1660
1661
1662 =item C<@Active_MakeClicky>
1663
1664 MakeClicky detects various formats of data in headers and email
1665 messages, and extends them with supporting links.  By default, RT
1666 provides two formats:
1667
1668 * 'httpurl': detects http:// and https:// URLs and adds '[Open URL]'
1669   link after the URL.
1670
1671 * 'httpurl_overwrite': also detects URLs as 'httpurl' format, but
1672   replaces the URL with a link.
1673
1674 See F<share/html/Elements/MakeClicky> for documentation on how to add
1675 your own styles of link detection.
1676
1677 =cut
1678
1679 Set(@Active_MakeClicky, qw());
1680
1681 =back
1682
1683
1684
1685 =head1 Application logic
1686
1687 =over 4
1688
1689 =item C<$ParseNewMessageForTicketCcs>
1690
1691 If C<$ParseNewMessageForTicketCcs> is set to 1, RT will attempt to
1692 divine Ticket 'Cc' watchers from the To and Cc lines of incoming
1693 messages.  Be forewarned that if you have I<any> addresses which forward
1694 mail to RT automatically and you enable this option without modifying
1695 C<$RTAddressRegexp> below, you will get yourself into a heap of trouble.
1696
1697 =cut
1698
1699 Set($ParseNewMessageForTicketCcs, undef);
1700
1701 =item C<$UseTransactionBatch>
1702
1703 Set C<$UseTransactionBatch> to 1 to execute transactions in batches,
1704 such that a resolve and comment (for example) would happen
1705 simultaneously, instead of as two transactions, unaware of each
1706 others' existence.
1707
1708 =cut
1709
1710 Set($UseTransactionBatch, 1);
1711
1712 =item C<$StrictLinkACL>
1713
1714 When this feature is enabled a user needs I<ModifyTicket> rights on
1715 both tickets to link them together; otherwise, I<ModifyTicket> rights
1716 on either of them is sufficient.
1717
1718 =cut
1719
1720 Set($StrictLinkACL, 1);
1721
1722 =item C<$RedistributeAutoGeneratedMessages>
1723
1724 Should RT redistribute correspondence that it identifies as machine
1725 generated?  A 1 will do so; setting this to 0 will cause no
1726 such messages to be redistributed.  You can also use 'privileged' (the
1727 default), which will redistribute only to privileged users. This helps
1728 to protect against malformed bounces and loops caused by auto-created
1729 requestors with bogus addresses.
1730
1731 =cut
1732
1733 Set($RedistributeAutoGeneratedMessages, "privileged");
1734
1735 =item C<$ApprovalRejectionNotes>
1736
1737 Should rejection notes from approvals be sent to the requestors?
1738
1739 =cut
1740
1741 Set($ApprovalRejectionNotes, 1);
1742
1743 =item C<$ForceApprovalsView>
1744
1745 Should approval tickets only be viewed and modified through the standard
1746 approval interface?  Changing this setting to 1 will redirect any attempt to
1747 use the normal ticket display and modify page for approval tickets.
1748
1749 For example, with this option set to 1 and an approval ticket #123:
1750
1751     /Ticket/Display.html?id=123
1752
1753 is redirected to
1754
1755     /Approval/Display.html?id=123
1756
1757 =back
1758
1759 =cut
1760
1761 Set($ForceApprovalsView, 0);
1762
1763 =head1 Extra security
1764
1765 =over 4
1766
1767 This is a list of extra security measures to enable that help keep your RT
1768 safe.  If you don't know what these mean, you should almost certainly leave the
1769 defaults alone.
1770
1771 =item C<$DisallowExecuteCode>
1772
1773 If set to a true value, the C<ExecuteCode> right will be removed from
1774 all users, B<including> the superuser.  This is intended for when RT is
1775 installed into a shared environment where even the superuser should not
1776 be allowed to run arbitrary Perl code on the server via scrips.
1777
1778 =cut
1779
1780 Set($DisallowExecuteCode, 0);
1781
1782 =item C<$Framebusting>
1783
1784 If set to a false value, framekiller javascript will be disabled and the
1785 X-Frame-Options: DENY header will be suppressed from all responses.
1786 This disables RT's clickjacking protection.
1787
1788 =cut
1789
1790 Set($Framebusting, 1);
1791
1792 =back
1793
1794 =head1 Authorization and user configuration
1795
1796 =over 4
1797
1798 =item C<$WebExternalAuth>
1799
1800 If C<$WebExternalAuth> is defined, RT will defer to the environment's
1801 REMOTE_USER variable.
1802
1803 =cut
1804
1805 Set($WebExternalAuth, undef);
1806
1807 =item C<$WebExternalAuthContinuous>
1808
1809 If C<$WebExternalAuthContinuous> is defined, RT will check for the
1810 REMOTE_USER on each access.  If you would prefer this to only happen
1811 once (at initial login) set this to a false value.  The default
1812 setting will help ensure that if your external authentication system
1813 deauthenticates a user, RT notices as soon as possible.
1814
1815 =cut
1816
1817 Set($WebExternalAuthContinuous, 1);
1818
1819 =item C<$WebFallbackToInternalAuth>
1820
1821 If C<$WebFallbackToInternalAuth> is defined, the user is allowed a
1822 chance of fallback to the login screen, even if REMOTE_USER failed.
1823
1824 =cut
1825
1826 Set($WebFallbackToInternalAuth, undef);
1827
1828 =item C<$WebExternalGecos>
1829
1830 C<$WebExternalGecos> means to match 'gecos' field as the user
1831 identity); useful with mod_auth_pwcheck and IIS Integrated Windows
1832 logon.
1833
1834 =cut
1835
1836 Set($WebExternalGecos, undef);
1837
1838 =item C<$WebExternalAuto>
1839
1840 C<$WebExternalAuto> will create users under the same name as
1841 REMOTE_USER upon login, if it's missing in the Users table.
1842
1843 =cut
1844
1845 Set($WebExternalAuto, undef);
1846
1847 =item C<$AutoCreate>
1848
1849 If C<$WebExternalAuto> is set to 1, C<$AutoCreate> will be passed to
1850 User's Create method.  Use it to set defaults, such as creating
1851 Unprivileged users with C<{ Privileged => 0 }> This must be a hashref.
1852
1853 =cut
1854
1855 Set($AutoCreate, undef);
1856
1857 =item C<$WebSessionClass>
1858
1859 C<$WebSessionClass> is the class you wish to use for managing
1860 Sessions.  It defaults to use your SQL database, but if you are using
1861 MySQL 3.x and plans to use non-ascii Queue names, uncomment and add
1862 this line to F<RT_SiteConfig.pm> to prevent session corruption.
1863
1864 =cut
1865
1866 # Set($WebSessionClass, "Apache::Session::File");
1867
1868 =item C<$AutoLogoff>
1869
1870 By default, RT's user sessions persist until a user closes his or her
1871 browser. With the C<$AutoLogoff> option you can setup session lifetime
1872 in minutes. A user will be logged out if he or she doesn't send any
1873 requests to RT for the defined time.
1874
1875 =cut
1876
1877 Set($AutoLogoff, 0);
1878
1879 =item C<$LogoutRefresh>
1880
1881 The number of seconds to wait after logout before sending the user to
1882 the login page. By default, 1 second, though you may want to increase
1883 this if you display additional information on the logout page.
1884
1885 =cut
1886
1887 Set($LogoutRefresh, 1);
1888
1889 =item C<$WebSecureCookies>
1890
1891 By default, RT's session cookie isn't marked as "secure". Some web
1892 browsers will treat secure cookies more carefully than non-secure
1893 ones, being careful not to write them to disk, only sending them over
1894 an SSL secured connection, and so on. To enable this behavior, set
1895 C<$WebSecureCookies> to 1.  NOTE: You probably don't want to turn this
1896 on I<unless> users are only connecting via SSL encrypted HTTPS
1897 connections.
1898
1899 =cut
1900
1901 Set($WebSecureCookies, 0);
1902
1903 =item C<$WebHttpOnlyCookies>
1904
1905 Default RT's session cookie to not being directly accessible to
1906 javascript.  The content is still sent during regular and AJAX requests,
1907 and other cookies are unaffected, but the session-id is less
1908 programmatically accessible to javascript.  Turning this off should only
1909 be necessary in situations with odd client-side authentication
1910 requirements.
1911
1912 =cut
1913
1914 Set($WebHttpOnlyCookies, 1);
1915
1916 =item C<$MinimumPasswordLength>
1917
1918 C<$MinimumPasswordLength> defines the minimum length for user
1919 passwords. Setting it to 0 disables this check.
1920
1921 =cut
1922
1923 Set($MinimumPasswordLength, 5);
1924
1925 =back
1926
1927
1928 =head1 Internationalization
1929
1930 =over 4
1931
1932 =item C<@LexiconLanguages>
1933
1934 An array that contains languages supported by RT's
1935 internationalization interface.  Defaults to all *.po lexicons;
1936 setting it to C<qw(en ja)> will make RT bilingual instead of
1937 multilingual, but will save some memory.
1938
1939 =cut
1940
1941 Set(@LexiconLanguages, qw(*));
1942
1943 =item C<@EmailInputEncodings>
1944
1945 An array that contains default encodings used to guess which charset
1946 an attachment uses, if it does not specify one explicitly.  All
1947 options must be recognized by L<Encode::Guess>.  The first element may
1948 also be '*', which enables encoding detection using
1949 L<Encode::Detect::Detector>, if installed.
1950
1951 =cut
1952
1953 Set(@EmailInputEncodings, qw(utf-8 iso-8859-1 us-ascii));
1954
1955 =item C<$EmailOutputEncoding>
1956
1957 The charset for localized email.  Must be recognized by Encode.
1958
1959 =cut
1960
1961 Set($EmailOutputEncoding, "utf-8");
1962
1963 =back
1964
1965
1966
1967
1968
1969
1970
1971 =head1 Date and time handling
1972
1973 =over 4
1974
1975 =item C<$DateTimeFormat>
1976
1977 You can choose date and time format.  See the "Output formatters"
1978 section in perldoc F<lib/RT/Date.pm> for more options.  This option
1979 can be overridden by users in their preferences.
1980
1981 Some examples:
1982
1983 C<Set($DateTimeFormat, "LocalizedDateTime");>
1984 C<Set($DateTimeFormat, { Format => "ISO", Seconds => 0 });>
1985 C<Set($DateTimeFormat, "RFC2822");>
1986 C<Set($DateTimeFormat, { Format => "RFC2822", Seconds => 0, DayOfWeek => 0 });>
1987
1988 =cut
1989
1990 Set($DateTimeFormat, "DefaultFormat");
1991
1992 # Next two options are for Time::ParseDate
1993
1994 =item C<$DateDayBeforeMonth>
1995
1996 Set this to 1 if your local date convention looks like "dd/mm/yy"
1997 instead of "mm/dd/yy". Used only for parsing, not for displaying
1998 dates.
1999
2000 =cut
2001
2002 Set($DateDayBeforeMonth, 1);
2003
2004 =item C<$AmbiguousDayInPast>, C<$AmbiguousDayInFuture>
2005
2006 Should an unspecified day or year in a date refer to a future or a
2007 past value? For example, should a date of "Tuesday" default to mean
2008 the date for next Tuesday or last Tuesday? Should the date "March 1"
2009 default to the date for next March or last March?
2010
2011 Set C<$AmbiguousDayInPast> for the last date, or
2012 C<$AmbiguousDayInFuture> for the next date; the default is usually
2013 correct.  If both are set, C<$AmbiguousDayInPast> takes precedence.
2014
2015 =cut
2016
2017 Set($AmbiguousDayInPast, 0);
2018 Set($AmbiguousDayInFuture, 0);
2019
2020 =item C<$DefaultTimeUnitsToHours>
2021
2022 Use this to set the default units for time entry to hours instead of
2023 minutes.  Note that this only effects entry, not display.
2024
2025 =cut
2026
2027 Set($DefaultTimeUnitsToHours, 0);
2028
2029 =item C<$SimpleSearchIncludeResolved>
2030
2031 By default, the simple ticket search in the top bar excludes "resolved" tickets
2032 unless a status argument is specified.  Set this to a true value to include 
2033 them.
2034
2035 =cut
2036
2037 Set($SimpleSearchIncludeResolved, 0);
2038
2039 =back
2040
2041
2042
2043
2044 =head1 GnuPG integration
2045
2046 A full description of the (somewhat extensive) GnuPG integration can
2047 be found by running the command `perldoc L<RT::Crypt::GnuPG>` (or
2048 `perldoc lib/RT/Crypt/GnuPG.pm` from your RT install directory).
2049
2050 =over 4
2051
2052 =item C<%GnuPG>
2053
2054 Set C<OutgoingMessagesFormat> to 'inline' to use inline encryption and
2055 signatures instead of 'RFC' (GPG/MIME: RFC3156 and RFC1847) format.
2056
2057 If you want to allow people to encrypt attachments inside the DB then
2058 set C<AllowEncryptDataInDB> to 1.
2059
2060 Set C<RejectOnMissingPrivateKey> to false if you don't want to reject
2061 emails encrypted for key RT doesn't have and can not decrypt.
2062
2063 Set C<RejectOnBadData> to false if you don't want to reject letters
2064 with incorrect GnuPG data.
2065
2066 =cut
2067
2068 Set(%GnuPG,
2069     Enable => @RT_GPG@,
2070     OutgoingMessagesFormat => "RFC", # Inline
2071     AllowEncryptDataInDB   => 0,
2072
2073     RejectOnMissingPrivateKey => 1,
2074     RejectOnBadData           => 1,
2075 );
2076
2077 =item C<%GnuPGOptions>
2078
2079 Options to pass to the GnuPG program.
2080
2081 If you override this in your RT_SiteConfig, you should be sure to
2082 include a homedir setting.
2083
2084 Note that options with '-' character MUST be quoted.
2085
2086 =cut
2087
2088 Set(%GnuPGOptions,
2089     homedir => q{@RT_VAR_PATH@/data/gpg},
2090
2091 # URL of a keyserver
2092 #    keyserver => 'hkp://subkeys.pgp.net',
2093
2094 # enables the automatic retrieving of keys when encrypting
2095 #    'auto-key-locate' => 'keyserver',
2096
2097 # enables the automatic retrieving of keys when verifying signatures
2098 #    'auto-key-retrieve' => undef,
2099 );
2100
2101 =back
2102
2103
2104
2105 =head1 Lifecycles
2106
2107 =head2 Lifecycle definitions
2108
2109 Each lifecycle is a list of possible statuses split into three logic
2110 sets: B<initial>, B<active> and B<inactive>. Each status in a
2111 lifecycle must be unique. (Statuses may not be repeated across sets.)
2112 Each set may have any number of statuses.
2113
2114 For example:
2115
2116     default => {
2117         initial  => ['new'],
2118         active   => ['open', 'stalled'],
2119         inactive => ['resolved', 'rejected', 'deleted'],
2120         ...
2121     },
2122
2123 Status names can be from 1 to 64 ASCII characters.  Statuses are
2124 localized using RT's standard internationalization and localization
2125 system.
2126
2127 =over 4
2128
2129 =item initial
2130
2131 You can define multiple B<initial> statuses for tickets in a given
2132 lifecycle.
2133
2134 RT will automatically set its B<Started> date when you change a
2135 ticket's status from an B<initial> state to an B<active> or
2136 B<inactive> status.
2137
2138 =item active
2139
2140 B<Active> tickets are "currently in play" - they're things that are
2141 being worked on and not yet complete.
2142
2143 =item inactive
2144
2145 B<Inactive> tickets are typically in their "final resting state".
2146
2147 While you're free to implement a workflow that ignores that
2148 description, typically once a ticket enters an inactive state, it will
2149 never again enter an active state.
2150
2151 RT will automatically set the B<Resolved> date when a ticket's status
2152 is changed from an B<Initial> or B<Active> status to an B<Inactive>
2153 status.
2154
2155 B<deleted> is still a special status and protected by the
2156 B<DeleteTicket> right, unless you re-defined rights (read below). If
2157 you don't want to allow ticket deletion at any time simply don't
2158 include it in your lifecycle.
2159
2160 =back
2161
2162 Statuses in each set are ordered and listed in the UI in the defined
2163 order.
2164
2165 Changes between statuses are constrained by transition rules, as
2166 described below.
2167
2168 =head2 Default values
2169
2170 In some cases a default value is used to display in UI or in API when
2171 value is not provided. You can configure defaults using the following
2172 syntax:
2173
2174     default => {
2175         ...
2176         defaults => {
2177             on_create => 'new',
2178             on_resolve => 'resolved',
2179             ...
2180         },
2181     },
2182
2183 The following defaults are used.
2184
2185 =over 4
2186
2187 =item on_create
2188
2189 If you (or your code) doesn't specify a status when creating a ticket,
2190 RT will use the this status. See also L</Statuses available during
2191 ticket creation>.
2192
2193 =item on_merge
2194
2195 When tickets are merged, the status of the ticket that was merged
2196 away is forced to this value.  It should be one of inactive statuses;
2197 'resolved' or its equivalent is most probably the best candidate.
2198
2199 =item approved
2200
2201 When an approval is accepted, the status of depending tickets will
2202 be changed to this value.
2203
2204 =item denied
2205
2206 When an approval is denied, the status of depending tickets will
2207 be changed to this value.
2208
2209 =back
2210
2211 =head2 Transitions between statuses and UI actions
2212
2213 A B<Transition> is a change of status from A to B. You should define
2214 all possible transitions in each lifecycle using the following format:
2215
2216     default => {
2217         ...
2218         transitions => {
2219             ''       => [qw(new open resolved)],
2220             new      => [qw(open resolved rejected deleted)],
2221             open     => [qw(stalled resolved rejected deleted)],
2222             stalled  => [qw(open)],
2223             resolved => [qw(open)],
2224             rejected => [qw(open)],
2225             deleted  => [qw(open)],
2226         },
2227         ...
2228     },
2229
2230 =head3 Statuses available during ticket creation
2231
2232 By default users can create tickets with any status, except
2233 deleted. If you want to restrict statuses available during creation
2234 then describe transition from '' (empty string), like in the example
2235 above.
2236
2237 =head3 Protecting status changes with rights
2238
2239 A transition or group of transitions can be protected by a specific
2240 right.  Additionally, you can name new right names, which will be added
2241 to the system to control that transition.  For example, if you wished to
2242 create a lesser right than ModifyTicket for rejecting tickets, you could
2243 write:
2244
2245     default => {
2246         ...
2247         rights => {
2248             '* -> deleted'  => 'DeleteTicket',
2249             '* -> rejected' => 'RejectTicket',
2250             '* -> *'        => 'ModifyTicket',
2251         },
2252         ...
2253     },
2254
2255 This would create a new C<RejectTicket> right in the system which you
2256 could assign to whatever groups you choose.
2257
2258 On the left hand side you can have the following variants:
2259
2260     '<from> -> <to>'
2261     '* -> <to>'
2262     '<from> -> *'
2263     '* -> *'
2264
2265 Valid transitions are listed in order of priority. If a user attempts
2266 to change a ticket's status from B<new> to B<open> then the lifecycle
2267 is checked for presence of an exact match, then for 'any to B<open>',
2268 'B<new> to any' and finally 'any to any'.
2269
2270 If you don't define any rights, or there is no match for a transition,
2271 RT will use the B<DeleteTicket> or B<ModifyTicket> as appropriate.
2272
2273 =head3 Labeling and defining actions
2274
2275 For each transition you can define an action that will be shown in the
2276 UI; each action annotated with a label and an update type.
2277
2278 Each action may provide a default update type, which can be
2279 B<Comment>, B<Respond>, or absent. For example, you may want your
2280 staff to write a reply to the end user when they change status from
2281 B<new> to B<open>, and thus set the update to B<Respond>.  Neither
2282 B<Comment> nor B<Respond> are mandatory, and user may leave the
2283 message empty, regardless of the update type.
2284
2285 This configuration can be used to accomplish what
2286 $ResolveDefaultUpdateType was used for in RT 3.8.
2287
2288 Use the following format to define labels and actions of transitions:
2289
2290     default => {
2291         ...
2292         actions => [
2293             'new -> open'     => { label => 'Open it', update => 'Respond' },
2294             'new -> resolved' => { label => 'Resolve', update => 'Comment' },
2295             'new -> rejected' => { label => 'Reject',  update => 'Respond' },
2296             'new -> deleted'  => { label => 'Delete' },
2297
2298             'open -> stalled'  => { label => 'Stall',   update => 'Comment' },
2299             'open -> resolved' => { label => 'Resolve', update => 'Comment' },
2300             'open -> rejected' => { label => 'Reject',  update => 'Respond' },
2301
2302             'stalled -> open'  => { label => 'Open it' },
2303             'resolved -> open' => { label => 'Re-open', update => 'Comment' },
2304             'rejected -> open' => { label => 'Re-open', update => 'Comment' },
2305             'deleted -> open'  => { label => 'Undelete' },
2306         ],
2307         ...
2308     },
2309
2310 In addition, you may define multiple actions for the same transition.
2311 Alternately, you may use '* -> x' to match more than one transition.
2312 For example:
2313
2314     default => {
2315         ...
2316         actions => [
2317             ...
2318             'new -> rejected' => { label => 'Reject', update => 'Respond' },
2319             'new -> rejected' => { label => 'Quick Reject' },
2320             ...
2321             '* -> deleted' => { label => 'Delete' },
2322             ...
2323         ],
2324         ...
2325     },
2326
2327 =head2 Moving tickets between queues with different lifecycles
2328
2329 Unless there is an explicit mapping between statuses in two different
2330 lifecycles, you can not move tickets between queues with these
2331 lifecycles.  This is true even if the different lifecycles use the exact
2332 same set of statuses.  Such a mapping is defined as follows:
2333
2334     __maps__ => {
2335         'from lifecycle -> to lifecycle' => {
2336             'status in left lifecycle' => 'status in right lifecycle',
2337             ...
2338         },
2339         ...
2340     },
2341
2342 =cut
2343
2344 Set(%Lifecycles,
2345     default => {
2346         initial         => [ 'new' ],
2347         active          => [ 'open', 'stalled' ],
2348         inactive        => [ 'resolved', 'rejected', 'deleted' ],
2349
2350         defaults => {
2351             on_create => 'new',
2352             on_merge  => 'resolved',
2353             approved  => 'open',
2354             denied    => 'rejected',
2355         },
2356
2357         transitions => {
2358             ''       => [qw(new open resolved)],
2359
2360             # from   => [ to list ],
2361             new      => [qw(open stalled resolved rejected deleted)],
2362             open     => [qw(new stalled resolved rejected deleted)],
2363             stalled  => [qw(new open rejected resolved deleted)],
2364             resolved => [qw(new open stalled rejected deleted)],
2365             rejected => [qw(new open stalled resolved deleted)],
2366             deleted  => [qw(new open stalled rejected resolved)],
2367         },
2368         rights => {
2369             '* -> deleted'  => 'DeleteTicket',
2370             '* -> *'        => 'ModifyTicket',
2371         },
2372         actions => [
2373             'new -> open'      => {
2374                 label  => 'Open It', # loc
2375                 update => 'Respond',
2376             },
2377             'new -> resolved'  => {
2378                 label  => 'Resolve', # loc
2379                 update => 'Comment',
2380             },
2381             'new -> rejected'  => {
2382                 label  => 'Reject', # loc
2383                 update => 'Respond',
2384             },
2385             'new -> deleted'   => {
2386                 label  => 'Delete', # loc
2387             },
2388
2389             'open -> stalled'  => {
2390                 label  => 'Stall', # loc
2391                 update => 'Comment',
2392             },
2393             'open -> resolved' => {
2394                 label  => 'Resolve', # loc
2395                 update => 'Comment',
2396             },
2397             'open -> rejected' => {
2398                 label  => 'Reject', # loc
2399                 update => 'Respond',
2400             },
2401
2402             'stalled -> open'  => {
2403                 label  => 'Open It', # loc
2404             },
2405             'resolved -> open' => {
2406                 label  => 'Re-open', # loc
2407                 update => 'Comment',
2408             },
2409             'rejected -> open' => {
2410                 label  => 'Re-open', # loc
2411                 update => 'Comment',
2412             },
2413             'deleted -> open'  => {
2414                 label  => 'Undelete', # loc
2415             },
2416         ],
2417     },
2418 # don't change lifecyle of the approvals, they are not capable to deal with
2419 # custom statuses
2420     approvals => {
2421         initial         => [ 'new' ],
2422         active          => [ 'open', 'stalled' ],
2423         inactive        => [ 'resolved', 'rejected', 'deleted' ],
2424
2425         defaults => {
2426             on_create => 'new',
2427             on_merge => 'resolved',
2428         },
2429
2430         transitions => {
2431             ''       => [qw(new open resolved)],
2432
2433             # from   => [ to list ],
2434             new      => [qw(open stalled resolved rejected deleted)],
2435             open     => [qw(new stalled resolved rejected deleted)],
2436             stalled  => [qw(new open rejected resolved deleted)],
2437             resolved => [qw(new open stalled rejected deleted)],
2438             rejected => [qw(new open stalled resolved deleted)],
2439             deleted  => [qw(new open stalled rejected resolved)],
2440         },
2441         rights => {
2442             '* -> deleted'  => 'DeleteTicket',
2443             '* -> rejected' => 'ModifyTicket',
2444             '* -> *'        => 'ModifyTicket',
2445         },
2446         actions => [
2447             'new -> open'      => {
2448                 label  => 'Open It', # loc
2449                 update => 'Respond',
2450             },
2451             'new -> resolved'  => {
2452                 label  => 'Resolve', # loc
2453                 update => 'Comment',
2454             },
2455             'new -> rejected'  => {
2456                 label  => 'Reject', # loc
2457                 update => 'Respond',
2458             },
2459             'new -> deleted'   => {
2460                 label  => 'Delete', # loc
2461             },
2462
2463             'open -> stalled'  => {
2464                 label  => 'Stall', # loc
2465                 update => 'Comment',
2466             },
2467             'open -> resolved' => {
2468                 label  => 'Resolve', # loc
2469                 update => 'Comment',
2470             },
2471             'open -> rejected' => {
2472                 label  => 'Reject', # loc
2473                 update => 'Respond',
2474             },
2475
2476             'stalled -> open'  => {
2477                 label  => 'Open It', # loc
2478             },
2479             'resolved -> open' => {
2480                 label  => 'Re-open', # loc
2481                 update => 'Comment',
2482             },
2483             'rejected -> open' => {
2484                 label  => 'Re-open', # loc
2485                 update => 'Comment',
2486             },
2487             'deleted -> open'  => {
2488                 label  => 'Undelete', # loc
2489             },
2490         ],
2491     },
2492 );
2493
2494
2495
2496
2497
2498 =head1 Administrative interface
2499
2500 =over 4
2501
2502 =item C<$ShowRTPortal>
2503
2504 RT can show administrators a feed of recent RT releases and other
2505 related announcements and information from Best Practical on the top
2506 level Configuration page.  This feature helps you stay up to date on
2507 RT security announcements and version updates.
2508
2509 RT provides this feature using an "iframe" on C</Admin/index.html>
2510 which asks the administrator's browser to show an inline page from
2511 Best Practical's website.
2512
2513 If you'd rather not make this feature available to your
2514 administrators, set C<$ShowRTPortal> to a false value.
2515
2516 =cut
2517
2518 Set($ShowRTPortal, 1);
2519
2520 =item C<%AdminSearchResultFormat>
2521
2522 In the admin interface, format strings similar to tickets result
2523 formats are used. Use C<%AdminSearchResultFormat> to define the format
2524 strings used in the admin interface on a per-RT-class basis.
2525
2526 =cut
2527
2528 Set(%AdminSearchResultFormat,
2529     Queues =>
2530         q{'<a href="__WebPath__/Admin/Queues/Modify.html?id=__id__">__id__</a>/TITLE:#'}
2531         .q{,'<a href="__WebPath__/Admin/Queues/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
2532         .q{,__Description__,__Address__,__Priority__,__DefaultDueIn__,__Disabled__},
2533
2534     Groups =>
2535         q{'<a href="__WebPath__/Admin/Groups/Modify.html?id=__id__">__id__</a>/TITLE:#'}
2536         .q{,'<a href="__WebPath__/Admin/Groups/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
2537         .q{,'__Description__'},
2538
2539     Users =>
2540         q{'<a href="__WebPath__/Admin/Users/Modify.html?id=__id__">__id__</a>/TITLE:#'}
2541         .q{,'<a href="__WebPath__/Admin/Users/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
2542         .q{,__RealName__, __EmailAddress__},
2543
2544     CustomFields =>
2545         q{'<a href="__WebPath__/Admin/CustomFields/Modify.html?id=__id__">__id__</a>/TITLE:#'}
2546         .q{,'<a href="__WebPath__/Admin/CustomFields/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
2547         .q{,__AppliedTo__, __FriendlyType__, __FriendlyPattern__},
2548
2549     Scrips =>
2550         q{'<a href="__WebPath__/Admin/Queues/Scrip.html?id=__id__&Queue=__QueueId__">__id__</a>/TITLE:#'}
2551         .q{,'<a href="__WebPath__/Admin/Queues/Scrip.html?id=__id__&Queue=__QueueId__">__Description__</a>/TITLE:Description'}
2552         .q{,__Stage__, __Condition__, __Action__, __Template__},
2553
2554     GlobalScrips =>
2555         q{'<a href="__WebPath__/Admin/Global/Scrip.html?id=__id__">__id__</a>/TITLE:#'}
2556         .q{,'<a href="__WebPath__/Admin/Global/Scrip.html?id=__id__">__Description__</a>/TITLE:Description'}
2557         .q{,__Stage__, __Condition__, __Action__, __Template__},
2558
2559     Templates =>
2560         q{'<a href="__WebPath__/__WebRequestPathDir__/Template.html?Queue=__QueueId__&Template=__id__">__id__</a>/TITLE:#'}
2561         .q{,'<a href="__WebPath__/__WebRequestPathDir__/Template.html?Queue=__QueueId__&Template=__id__">__Name__</a>/TITLE:Name'}
2562         .q{,'__Description__'},
2563     Classes =>
2564         q{ '<a href="__WebPath__/Admin/Articles/Classes/Modify.html?id=__id__">__id__</a>/TITLE:#'}
2565         .q{,'<a href="__WebPath__/Admin/Articles/Classes/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
2566         .q{,__Description__},
2567 );
2568
2569 =back
2570
2571
2572
2573
2574 =head1 Development options
2575
2576 =over 4
2577
2578 =item C<$DevelMode>
2579
2580 RT comes with a "Development mode" setting.  This setting, as a
2581 convenience for developers, turns on several of development options
2582 that you most likely don't want in production:
2583
2584 =over 4
2585
2586 =item *
2587
2588 Disables CSS and JS minification and concatenation.  Both CSS and JS
2589 will be instead be served as a number of individual smaller files,
2590 unchanged from how they are stored on disk.
2591
2592 =item *
2593
2594 Uses L<Module::Refresh> to reload changed Perl modules on each
2595 request.
2596
2597 =item *
2598
2599 Turns off Mason's C<static_source> directive; this causes Mason to
2600 reload template files which have been modified on disk.
2601
2602 =item *
2603
2604 Turns on Mason's HTML C<error_format>; this renders compilation errors
2605 to the browser, along with a full stack trace.  It is possible for
2606 stack traces to reveal sensitive information such as passwords or
2607 ticket content.
2608
2609 =item *
2610
2611 Turns off caching of callbacks; this enables additional callbacks to
2612 be added while the server is running.
2613
2614 =back
2615
2616 =cut
2617
2618 Set($DevelMode, "@RT_DEVEL_MODE@");
2619
2620
2621 =item C<$RecordBaseClass>
2622
2623 What abstract base class should RT use for its records. You should
2624 probably never change this.
2625
2626 Valid values are C<DBIx::SearchBuilder::Record> or
2627 C<DBIx::SearchBuilder::Record::Cachable>
2628
2629 =cut
2630
2631 Set($RecordBaseClass, "DBIx::SearchBuilder::Record::Cachable");
2632
2633
2634 =item C<@MasonParameters>
2635
2636 C<@MasonParameters> is the list of parameters for the constructor of
2637 HTML::Mason's Apache or CGI Handler.  This is normally only useful for
2638 debugging, e.g. profiling individual components with:
2639
2640     use MasonX::Profiler; # available on CPAN
2641     Set(@MasonParameters, (preamble => 'my $p = MasonX::Profiler->new($m, $r);'));
2642
2643 =cut
2644
2645 Set(@MasonParameters, ());
2646
2647 =item C<$StatementLog>
2648
2649 RT has rudimentary SQL statement logging support; simply set
2650 C<$StatementLog> to be the level that you wish SQL statements to be
2651 logged at.
2652
2653 Enabling this option will also expose the SQL Queries page in the
2654 Configuration -> Tools menu for SuperUsers.
2655
2656 =cut
2657
2658 Set($StatementLog, undef);
2659
2660 =back
2661
2662
2663
2664
2665 =head1 Deprecated options
2666
2667 =over 4
2668
2669 =item C<$LinkTransactionsRun1Scrip>
2670
2671 RT-3.4 backward compatibility setting. Add/Delete Link used to record
2672 one transaction and run one scrip. Set this value to 1 if you want
2673 only one of the link transactions to have scrips run.
2674
2675 =cut
2676
2677 Set($LinkTransactionsRun1Scrip, 0);
2678
2679 =item C<$ResolveDefaultUpdateType>
2680
2681 This option has been deprecated.  You can configure this site-wide
2682 with L</Lifecycles> (see L</Labeling and defining actions>).
2683
2684 =cut
2685
2686 1;