tpl/ack-mail: Drop information about copy of CfV to be sent.
[usenet/usevote.git] / UVconfig.pm
... / ...
CommitLineData
1# UVconfig: Reads config files and tests configuration
2# Used by all components
3
4package UVconfig;
5
6use strict;
7use Net::Domain qw(hostname hostfqdn hostdomain);
8use UVmessage;
9use vars qw(@ISA @EXPORT $VERSION $usevote_version %config %messages
10 @rules @groups $bdsg_regexp $bdsg2_regexp %ids %functions);
11
12require Exporter;
13@ISA = qw(Exporter);
14@EXPORT = qw($usevote_version %config %messages @rules @groups
15 $bdsg_regexp $bdsg2_regexp %ids %functions);
16
17# Module version
18$VERSION = "0.18";
19
20# Usevote version
21$usevote_version = "UseVoteGer 4.09";
22
23sub read_config {
24
25 my ($cfgfile, $redir_errors) = @_;
26
27 # Default configuration options (overwritten in usevote.cfg)
28 %config = (votefile => "votes",
29 votename => "unkonfiguriertes Usevote",
30 resultfile => "ergebnis.alle",
31 rulefile => "usevote.rul",
32 badaddrfile => "mailpatterns.cfg",
33 messagefile => "messages.cfg",
34 idfile => "scheinkennungen",
35 requestfile => "anforderung",
36 errorfile => "errors.log",
37 lockfile => "usevote.lock",
38 replyto => 0,
39 personal => 0,
40 proportional => 0,
41 bdsg => 0,
42 onestep => 0,
43 multigroup => 0,
44 voteack => 1,
45 voteaccount => "<> (unkonfiguriertes Usevote)",
46 mailfrom => "<> (unkonfiguriertes Usevote)",
47 envelopefrom => "<>",
48 mailstart => "^From ",
49 archivedir => "fertig",
50 tmpdir => "tmp",
51 templatedir => "templates",
52 formats => "UVformats.pm",
53 domailfile => "tmp/domail",
54 controlfile => "tmp/ack.control",
55 mailcmd => "sendmail -oi -oem",
56 mailcc => "",
57 sleepcmd => "sleep 1",
58 clearcmd => "clear",
59 pager => "less",
60 pop3 => 0,
61 pop3server => "localhost",
62 pop3port => 110,
63 pop3user => "default",
64 pop3pass => "default",
65 pop3delete => 0,
66 pop3uidlcache => "uidlcache",
67 pop3server_req => "localhost",
68 pop3port_req => 110,
69 pop3user_req => "default",
70 pop3pass_req => "default",
71 pop3delete_req => 0,
72 pop3uidlcache_req => "uidlcache_req",
73 pop3server_bounce => "localhost",
74 pop3port_bounce => 110,
75 pop3user_bounce => "default",
76 pop3pass_bounce => "default",
77 pop3delete_bounce => 0,
78 pop3uidlcache_bounce => 'uidlcache_bounce',
79 smtp => 0,
80 smtpserver => 'localhost',
81 smtpport => 25,
82 smtphelo => hostfqdn(),
83 fqdn => hostfqdn(),
84 smtpauth => 0,
85 smtpuser => '',
86 smtppass => '',
87