Re: [PATCH 1/5] Match Dovecot deliver lines when folders have spaces
Stefan Jakobs <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Richard,
thank you for your patches. Please resend them as text files attached to the
message.
And can you also send some example output from logwatch with and without the
patches applied?
Thank you.
Stefan
Richard Hansen wrote:
> Before, the Dovecot deliver regular expression did not match deliver
> lines if the folder contained a space. Now it does.
> ---
> scripts/services/dovecot | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/scripts/services/dovecot b/scripts/services/dovecot
> index d014ae4..8b62a0e 100755
> --- a/scripts/services/dovecot
> +++ b/scripts/services/dovecot
> @@ -151,7 +151,7 @@ while (defined($ThisLine = <STDIN>)) {
> $Deliver{$User}{$Mailbox}++;
>
> # For Sieve-based delivery
> - } elsif ( ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag
> (?:lda\(|deliver\(|lmtp\(\d+, )(.*)\): (?:[^:]+: )?sieve: msgid=.*: stored
> mail into mailbox '(\S+)'/ ) ) { + } elsif ( ($User, $Mailbox) = (
> $ThisLine =~ /^$dovecottag (?:lda\(|deliver\(|lmtp\(\d+, )(.*)\): (?:[^:]+:
> )?sieve: msgid=.*: stored mail into mailbox '([^']*)'/ ) ) {
> $Deliver{$User}{$Mailbox}++;
>
> # LMTP-based delivery
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2