Bug#510432: patch for parsing values in imapproxy config file.

2009-01-02 Thread Andreas Henriksson
Oops... here's the PCSCRIPTS part with a couple of fixes: use warnings; use strict; my $CFG; my $TMP; open(CFG, '<', shift) or exit; open(TMP, '>', shift) or die "imapproxy.postint: could not open: $!"; my %params = map { $_ => undef } split(/\s/, $ENV{'PARAMS'}); while () { my ($key)

Bug#510432: patch for parsing values in imapproxy config file.

2009-01-02 Thread Andreas Henriksson
This more or less untested patch should hopefully help. Please note that there are more policy violations here, like not respecting removed config files. Shipping the config file and modifying it in place is probably a better idea then copying it from documentation/examples directory. -- Regards,