diff options
author | Peter Palfrader <peter@palfrader.org> | 2002-10-25 10:56:49 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2002-10-25 10:56:49 +0000 |
commit | 83e80030fcc456952624523bed3c81b4d8953432 (patch) | |
tree | ae17ee667eb7eb5755575e7af0c7f666772c2cde /debian/echolot.config | |
parent | 2cf545f50a2008c2550d9d631105de7d93929525 (diff) |
New upstream version
Make recipient delimiter configured by debconf
Diffstat (limited to 'debian/echolot.config')
-rwxr-xr-x | debian/echolot.config | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/echolot.config b/debian/echolot.config index 576fc44..5d348d3 100755 --- a/debian/echolot.config +++ b/debian/echolot.config @@ -26,6 +26,7 @@ if ( -e '/etc/echolot/pingd.conf' ) { $address = $CONFIG->{'my_localpart'}.'@'.$CONFIG->{'my_domain'} if (defined $CONFIG->{'my_localpart'} && defined $CONFIG->{'my_domain'}); $operator = $CONFIG->{'operator_address'} if (defined $CONFIG->{'operator_address'}); $sitename = $CONFIG->{'sitename'} if (defined $CONFIG->{'sitename'}); + $recipient_delimiter = $CONFIG->{'recipient_delimiter'} if (defined $CONFIG->{'recipient_delimiter'}); }; my $mailname; @@ -37,10 +38,12 @@ chomp $mailname; $address = 'echolot@'.$mailname unless defined $address; $operator = 'abuse@'.$mailname unless defined $operator; $sitename = $mailname unless defined $sitename; +$recipient_delimiter = '' unless defined $recipient_delimiter; Debconf::Client::ConfModule::set('echolot/address', $address); Debconf::Client::ConfModule::set('echolot/operator', $operator); Debconf::Client::ConfModule::set('echolot/sitename', $sitename); +Debconf::Client::ConfModule::set('echolot/recipient_delimiter', $recipient_delimiter); my $state = 1; @@ -74,7 +77,7 @@ while (1) { } elsif ($state == 2) { Debconf::Client::ConfModule::input('high', 'echolot/operator'); Debconf::Client::ConfModule::input('high', 'echolot/sitename'); - Debconf::Client::ConfModule::input('high', 'echolot/userdefinedmailbox'); + Debconf::Client::ConfModule::input('high', 'echolot/recipient_delimiter'); Debconf::Client::ConfModule::input('medium', 'echolot/addnow'); } elsif ($state == 3) { last; |