Hi Is it possible to run one script before the "real" delivery of a message (with lda, or before the execution of the sieve scripts) but after the creation of necessary folders (Dovecot automatically creates the folders for virtual users)? I want to to this to manually create a fixed empty sieve script in each user home folder, so in the global sieve script include that personal script, because if personal script doesn't exists, global script is not executed, or am I wrong? Thanks in advance.
Juan Asensio S?nchez wrote:> Hi > > Is it possible to run one script before the "real" delivery of a > message (with lda, or before the execution of the sieve scripts) but > after the creation of necessary folders (Dovecot automatically creates > the folders for virtual users)? I want to to this to manually create a > fixed empty sieve script in each user home folder, so in the global > sieve script include that personal script, because if personal script > doesn't exists, global script is not executed, or am I wrong? > > Thanks in advance. >It is possible write wrapper script which is run instead of lda, script does things you need and then calls lda. All folders can be created with this script too. Also it is possible to write plugin for lda doing same thing. Uldis
On Fri, 2008-07-18 at 12:09 +0200, Juan Asensio S?nchez wrote:> Hi > > Is it possible to run one script before the "real" delivery of a > message (with lda, or before the execution of the sieve scripts) but > after the creation of necessary folders (Dovecot automatically creates > the folders for virtual users)? I want to to this to manually create a > fixed empty sieve script in each user home folder, so in the global > sieve script include that personal script, because if personal script > doesn't exists, global script is not executed, or am I wrong?A plugin that hooks the deliver_mail function (like cmusieve plugin does) would work. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080720/d9fc3bcb/attachment-0002.bin>