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:
parent
b130e6a59e
commit
a5ecd41e72
1
Changes
1
Changes
@ -1,3 +1,4 @@
|
|||||||
|
plugins/queue/maildir: Allow hyphens in the maildir path
|
||||||
|
|
||||||
Temporary deny if clamd is not running
|
Temporary deny if clamd is not running
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ sub register {
|
|||||||
my ($self, $qp, @args) = @_;
|
my ($self, $qp, @args) = @_;
|
||||||
|
|
||||||
if (@args > 0) {
|
if (@args > 0) {
|
||||||
($self->{_maildir}) = ($args[0] =~ m!([/\w\.]+)!);
|
($self->{_maildir}) = ($args[0] =~ m!([-/\w\.]+)!);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (@args > 1) {
|
if (@args > 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user