Felix Leimbach
2010-Apr-15 23:51 UTC
[Dovecot] [SUGGESTION] Managesieve: Transparent home dir creation
Hi all, I'm using dovecot 2.0-beta4's sieve plugin and it works great but here is an idea for improvement: When creating the first sieve script for an account whose home dir does not yet exist then dovecot *does* create that homedir but the sieve client times out. Tried Thunderbird's sieve addon as well as horde's ingo. The log says: dovecot: managesieve-login: Login: user=<me at example.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured dovecot: managesieve(me at example.com): sieve-storage: sieve_storage_verify_dir(/mnt/data/vmail/dovecot-homedirs/example.com/me//sieve/tmp) failed: File exists dovecot: managesieve(me at example.com): Fatal: Failed to open Sieve storage. Because the homedir was created (great!) when I retry the same action then all works perfectly well. So why not make that homedir creation transparent so that the clients' first try succeeds instead of the second try? Cheers, Felix
Stephan Bosch
2010-Apr-19 14:22 UTC
[Dovecot] [SUGGESTION] Managesieve: Transparent home dir creation
Felix Leimbach wrote:> Hi all, > > I'm using dovecot 2.0-beta4's sieve plugin and it works great but here > is an idea for improvement: > > When creating the first sieve script for an account whose home dir does > not yet exist then dovecot *does* create that homedir but the sieve > client times out. Tried Thunderbird's sieve addon as well as horde's ingo. > > The log says: > > dovecot: managesieve-login: Login: user=<me at example.com>, method=PLAIN, > rip=127.0.0.1, lip=127.0.0.1, secured > dovecot: managesieve(me at example.com): sieve-storage: > sieve_storage_verify_dir(/mnt/data/vmail/dovecot-homedirs/example.com/me//sieve/tmp) > failed: File exists > dovecot: managesieve(me at example.com): Fatal: Failed to open Sieve storage. > > Because the homedir was created (great!) when I retry the same action > then all works perfectly well. > So why not make that homedir creation transparent so that the clients' > first try succeeds instead of the second try? >This is a bug. I'll give it a look. Regards, Stephan.
Stephan Bosch
2010-May-03 14:43 UTC
[Dovecot] [SUGGESTION] Managesieve: Transparent home dir creation
Felix Leimbach wrote:> Hi all, > > I'm using dovecot 2.0-beta4's sieve plugin and it works great but here > is an idea for improvement: > > When creating the first sieve script for an account whose home dir does > not yet exist then dovecot *does* create that homedir but the sieve > client times out. Tried Thunderbird's sieve addon as well as horde's ingo. > > The log says: > > dovecot: managesieve-login: Login: user=<me at example.com>, method=PLAIN, > rip=127.0.0.1, lip=127.0.0.1, secured > dovecot: managesieve(me at example.com): sieve-storage: > sieve_storage_verify_dir(/mnt/data/vmail/dovecot-homedirs/example.com/me//sieve/tmp) > failed: File exists > dovecot: managesieve(me at example.com): Fatal: Failed to open Sieve storage. > > Because the homedir was created (great!) when I retry the same action > then all works perfectly well. > So why not make that homedir creation transparent so that the clients' > first try succeeds instead of the second try? >I've updated the Sieve storage implementation to match changes in the Dovecot mail storage implementation regarding automatic creation of directories. I am hoping I have fixed your problem too. I've did a few tests and found no problems so far. Regards, Stephan
Seemingly Similar Threads
- dovecot-2.0-beta4, lda and sieve: Permission lookup failed from /tmp/Dovecot Delivery
- [Bug 29171] New: Garbled console on Macbook 13" (6, 1 9400M]) when using EFI
- [Bug 31058] New: Flickering area on external monitor [9400M]
- [Bug 29415] New: Screen shutdown with Nvidia GeForce 9400M
- Dovecot ManageSieve + ingo or avelsieve