Allow hyphens in the 1st argument to queue/maildir

This is to allow some perfectly reasonable path names like
/var/spool/qpsmtpd-maildir, etc.
This commit is contained in:
Hinrik Örn Sigurðsson 2009-09-15 17:21:02 +00:00
parent b130e6a59e
commit a5ecd41e72
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
plugins/queue/maildir: Allow hyphens in the maildir path
Temporary deny if clamd is not running

View File

@ -85,7 +85,7 @@ sub register {
my ($self, $qp, @args) = @_;
if (@args > 0) {
($self->{_maildir}) = ($args[0] =~ m!([/\w\.]+)!);
($self->{_maildir}) = ($args[0] =~ m!([-/\w\.]+)!);
}
if (@args > 1) {