[PATCH 1/5] Match Dovecot deliver lines when folders have spaces
Richard Hansen <rhansen-A08e6c8yq/[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
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
--
1.7.4.1
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev