Your message dated Sat, 08 Feb 2014 17:33:33 +0000
with message-id <[email protected]>
and subject line Bug#725191: fixed in pysieved 1.2-1
has caused the Debian Bug report #725191,
regarding pysieved does not work with exim
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
725191: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725191
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pysieved
Version: 1.1-02
When using pysieved with exim, saving any filter returns error:
Cannot process flags argument with a compiled pattern
The problem is caused by using new python which does not allow to use
flags with compiled regular expressions. See e.g.
http://stackoverflow.com/questions/6997204/python-django-regexp-error
for example of this error.
The patch below fixed the problem for me.
Thank you
Tomas Kopal
--- plugins/exim.py.old 2013-10-02 16:39:41.000000000 +0200
+++ plugins/exim.py 2013-10-02 16:40:24.000000000 +0200
@@ -35,7 +35,7 @@
self.basedir = os.path.join(self.homedir, self.mydir)
self.active = os.path.join(self.homedir, self.active_file)
self.sieve_hdr = '# Sieve filter'
- self.sieve_re = re.compile('^' + re.escape(self.sieve_hdr))
+ self.sieve_re = re.compile('^' + re.escape(self.sieve_hdr), re.S)
# Create our directory if needed
if not os.path.exists(self.basedir):
@@ -46,7 +46,7 @@
try:
# Make sure this is an Exim Sieve filter
script = file(self.active).read()
- if re.match(self.sieve_re, script, re.S):
+ if re.match(self.sieve_re, script):
os.rename(self.active, os.path.join(self.basedir,
'exim'))
self.set_active('exim')
except IOError:
@@ -54,7 +54,7 @@
def __setitem__(self, k, v):
- if not re.match(self.sieve_re, v, re.S):
+ if not re.match(self.sieve_re, v):
v = self.sieve_hdr + '\n' + v
FileStorage.FileStorage.__setitem__(self, k, v)
--- End Message ---
--- Begin Message ---
Source: pysieved
Source-Version: 1.2-1
We believe that the bug you reported is fixed in the latest version of
pysieved, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Christoph Haas <[email protected]> (supplier of updated pysieved package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sat, 08 Feb 2014 16:39:19 +0100
Source: pysieved
Binary: pysieved
Architecture: source all
Version: 1.2-1
Distribution: unstable
Urgency: medium
Maintainer: Christoph Haas <[email protected]>
Changed-By: Christoph Haas <[email protected]>
Description:
pysieved - managesieve server
Closes: 725191
Changes:
pysieved (1.2-1) unstable; urgency=medium
.
* New upstream release (Closes: #725191)
Checksums-Sha1:
183a293dbda47c3b5c58aa65fb9cc11d60e6f7f4 1064 pysieved_1.2-1.dsc
162510db59de4f70b30d8a4cec0c3cc716bd7084 42561 pysieved_1.2.orig.tar.gz
b73465017501397fe105f0825d62df78a887cdf8 3868 pysieved_1.2-1.debian.tar.xz
40f83eecd812d50eb2ab6702f0b1590022eb4a08 24542 pysieved_1.2-1_all.deb
Checksums-Sha256:
c460533a20182d0d35daab66bad917f6f58052d911a36424e2be3ba6fb9db8b7 1064
pysieved_1.2-1.dsc
6356a8c47824c890fd955684559edf4b833055d0fa5d0facc427d8f4e91c8d3b 42561
pysieved_1.2.orig.tar.gz
adec341880d9c7f5c2437c73c4d91339364d74b7a94c0c937ce7c87999f5553b 3868
pysieved_1.2-1.debian.tar.xz
66051a9f1f392946c99a9a12ea9b71cc5570cb3cec31f2b842f4fdf341d50a66 24542
pysieved_1.2-1_all.deb
Files:
2e09a147764df79b53572bebd30d74e5 1064 mail extra pysieved_1.2-1.dsc
a7cedc3ef2401ef3a8ccec0fad454e52 42561 mail extra pysieved_1.2.orig.tar.gz
cd96863c9ffb8b507cb7e6da7cbd3097 3868 mail extra pysieved_1.2-1.debian.tar.xz
c38bf1534d532ed3788ac1eb9cb50d7c 24542 mail extra pysieved_1.2-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAlL2ZwwACgkQCV53xXnMZYbR9QCg7yhAXW7vM5Eyhy28uhqE7tio
KAIAoMRiR2f7NEoYeRoAm3R2En4LzDds
=HwN7
-----END PGP SIGNATURE-----
--- End Message ---