[Dovecot] store sieve scripts with maildir
Tobias Balle-Petersen
tbp at kontrapunkt.com
Mon Nov 17 12:11:59 EET 2008
Hello...
I had the problem described in this thread. I fixed it by changing the
dovecot.py program in the pysieved package. My mailfolders are all in
/home/vmail/USERNAME.
The last two lines (comment + code) in the code below is my addition to
dovecot.py. The code above my lines are there to let you know where in
the programme to add my line(s). It's in a function called lookup.
for part in ret.split('\t'):
if part.startswith('uid='):
uid = part[4:]
elif part.startswith('gid='):
gid = part[4:]
elif part.startswith('home='):
home = part[5:]
# HACK TO HARDCODE HOMEDIR PATH
home = '/home/vmail/' + params['username']
Thanks,
Tobias
Samuel HAMEAU wrote:
> There is then 4 choices :
> * make my own dovecot patch making the master socket or userdb-ldap read
> plugin's variables (tricky,might be hazardous for an uninitiated?)
> * use dovecot 1.1.* and overriding the home attribute value in user_attr
> (dovecot-ldap.conf)
> * patch my application (here pysieved)
More information about the dovecot
mailing list