[Bug 1194960] [NEW] unmatched entries for dovecot sieve deliveries when mailbox name contains whitespace

2013-06-26 Thread Ben Coleman
Public bug reported:

On Ubuntu 13.04, using the stock dovecot and logwatch, I get unmatched
entries for dovecot when sieve delivers into a mailbox that has
whitespace in its name.  The line which detects sieve deliveries (line
157) assumes that the mailbox name will not have whitespace:

} elsif ( ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag
(?:lda\(|deliver\(|lmtp\(\d+, )(.*)\): (?:[^:]+: )?sieve: msgid=.*:
stored mail into mailbox '(\S+)'/ ) ) {

It's quite possible to have whitespace in mailbox names.  In my case,
using a Thunderbird client with Dovecot IMAP will allow mailboxes with
whitespace in the name to be created quite easily.

This can be fixed by instead accepting non-single-quote characters in
the mailbox name :

} elsif ( ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag
(?:lda\(|deliver\(|lmtp\(\d+, )(.*)\): (?:[^:]+: )?sieve: msgid=.*:
stored mail into mailbox '([^']+)'/ ) ) {

I've got this fix running on my mail server, and it clears up the
unmatched sieve delivery entries I had been getting.

** Affects: logwatch (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to logwatch in Ubuntu.
https://bugs.launchpad.net/bugs/1194960

Title:
  unmatched entries for dovecot sieve deliveries when mailbox name
  contains whitespace

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1194960/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1194960] [NEW] unmatched entries for dovecot sieve deliveries when mailbox name contains whitespace

2013-06-26 Thread Ben Coleman
Public bug reported:

On Ubuntu 13.04, using the stock dovecot and logwatch, I get unmatched
entries for dovecot when sieve delivers into a mailbox that has
whitespace in its name.  The line which detects sieve deliveries (line
157) assumes that the mailbox name will not have whitespace:

} elsif ( ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag
(?:lda\(|deliver\(|lmtp\(\d+, )(.*)\): (?:[^:]+: )?sieve: msgid=.*:
stored mail into mailbox '(\S+)'/ ) ) {

It's quite possible to have whitespace in mailbox names.  In my case,
using a Thunderbird client with Dovecot IMAP will allow mailboxes with
whitespace in the name to be created quite easily.

This can be fixed by instead accepting non-single-quote characters in
the mailbox name :

} elsif ( ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag
(?:lda\(|deliver\(|lmtp\(\d+, )(.*)\): (?:[^:]+: )?sieve: msgid=.*:
stored mail into mailbox '([^']+)'/ ) ) {

I've got this fix running on my mail server, and it clears up the
unmatched sieve delivery entries I had been getting.

** Affects: logwatch (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1194960

Title:
  unmatched entries for dovecot sieve deliveries when mailbox name
  contains whitespace

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1194960/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs