Add option to read from Maildir.
Parse a mailbox by virtue of Mail::Box and add "mailboxtype" to usevote.cfg. Picked from upstream. Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
parent
0618b624e9
commit
34809a2a81
3 changed files with 42 additions and 34 deletions
10
uvvote.pl
10
uvvote.pl
|
|
@ -135,16 +135,6 @@ if ($clean) {
|
|||
my $thisresult = "ergebnis-" . $ext;
|
||||
my $thisvotes = "stimmen-" . $ext;
|
||||
|
||||
# POP3 not activated: rename votes file
|
||||
unless ($config{pop3}) {
|
||||
print UVmessage::get("VOTE_RENAMING_MAILBOX"), "\n";
|
||||
rename ($config{votefile}, "$config{tmpdir}/$thisvotes")
|
||||
or die UVmessage::get("ERR_RENAME_MAILFILE") . "$!\n\n";
|
||||
|
||||
# wait, so that current mail deliveries can finalize
|
||||
sleep 2;
|
||||
}
|
||||
|
||||
# open results file
|
||||
open (RESULT, ">>$config{tmpdir}/$thisresult")
|
||||
or die UVmessage::get("VOTE_WRITE_RESULTS", (FILE=>$thisresult)) . "\n\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue