# This file was generated by running "update-rt-siteconfig-3.6".
#
# While local modifications will not be overwritten without permission,
# it is recommended the they are instead placed in 
# /etc/request-tracker3.6/RT_SiteConfig.d/
#
# Note that modifications to the RT_SiteConfig.d directory won't 
# take effect until the update command mentioned above is run again.

# start /etc/request-tracker3.6/RT_SiteConfig.d/40-timezone
# dynamically find out the current timezone
my $zone = "UTC";
$zone=`/bin/cat /etc/timezone`
    if -f "/etc/timezone";
chomp $zone;
Set($Timezone, $zone);
# end   /etc/request-tracker3.6/RT_SiteConfig.d/40-timezone
# start /etc/request-tracker3.6/RT_SiteConfig.d/50-debconf
# THE BASICS:

Set($rtname, 'domain support');
Set($Organization, 'domain.com');

Set($CorrespondAddress , 'rtest@domain.com');
Set($CommentAddress , 'rtest-comment@domain.com');

# THE WEBSERVER:
Set($WebPath , "");
Set($WebBaseURL , "https://rtest.internal.domain.com");

# end   /etc/request-tracker3.6/RT_SiteConfig.d/50-debconf
# start /etc/request-tracker3.6/RT_SiteConfig.d/51-dbconfig-common
# THE DATABASE:
# generated by dbconfig-common

# map from dbconfig-common database types to their names as known by RT
my %typemap = (
    mysql   => 'mysql',
    pgsql   => 'Pg',
    sqlite3 => 'SQLite',
);
    
Set($DatabaseType, "mysql");
Set($DatabaseUser , 'rtuser');
Set($DatabasePassword , 'idontknow');
Set($DatabaseName , 'rt3');

# Set how many rows of tickets will be shown on the user homepage
Set($DefaultSummaryRows, 30);

#Set($DatabaseType, $typemap{} || "UNKNOWN");

#Set($DatabaseHost, 'localhost');
#Set($DatabasePort, '');

# SQLite needs a special case, since $DatabaseName must be a full pathname
###Set ($DatabaseName, '/') if "" eq "sqlite3";

# this has no effect for the SQLite case, the first Set() wins
#Set ($DatabaseName, '');

# Set($FriendlyFromLineFormat, "\"%s via Domain Support\" <%s>");
Set($FriendlyFromLineFormat, "\"%s\" <%s>");

# (20091029) RT automatically adds email addresses found in the Cc header to 
# the ticket's Cc at creation.
Set($ParseNewMessageForTicketCcs, 1);
# Set($RTAddressRegexp, '^rt(-comment)?\@domain.com$' );
Set($RTAddressRegexp, '^(support|rtest)(-comment)?\@(domain|thatplace).com$' );

Set($MaxAttachmentSize, 26214400);
Set($DropLongAttachments, undef);
Set($TruncateLongAttachments, undef);

Set($SendmailPath , "/etc/request-tracker3.6/msmtp_wrapper");

# LDAP Authentication
require '/usr/local/share/request-tracker3.6/etc/Authen-ExternalAuth/RT_SiteConfig.pm';

# Plugins?
# These files are located at
# '/usr/share/request-tracker3.6/lib/RT/Interface/Email/Auth/MailFrom.pm';
# '/usr/local/share/request-tracker3.6/lib/RT/Interface/Email/Filter/TakeAction.pm';
# '/usr/local/share/request-tracker3.6/lib/RT/Extension/CommandByMail.pm';
#
# Set(@MailPlugins, qw(
# Auth::MailFrom 
# Filter::TakeAction
# ));
# Set(@Plugins, qw(
# RT::Extension::CommandByMail
# ));
# use Auth::MailFrom;
# use Filter::TakeAction
# use RT::Extension::CommandByMail;
@MailPlugins = qw(Auth::MailFrom Filter::TakeAction);   
@Plugins = qw(RT::Extension::CommandByMail);

# Debugging
Set($LogToFile, 'debug');
Set($LogDir,'/var/log/');
Set($LogToFileNamed, 'rt.log');

# end   /etc/request-tracker3.6/RT_SiteConfig.d/51-dbconfig-common
1;

