Morten Trab wrote:
Hi,

This line:

from-file -optional /home/vmail/%s/%s/Maildir/.tmda/confirmed ok %
(os.environ["HOSTn"],os.environ["USERn"])

doesn’t seem to work as a rule, could anybody provide the correct syntax for
this line??

Setting ~/.tmda/comfirmed doesn’t work as ~ only refers to /home/vmail where
it should be /home/vmail/mydomain.tld/myuser/Maildir

I believe that the filters are not Python code, but a TMDA-specific language that's interpreted by TMDA, not evaluated as Python.


What you want to do is set the user's home directory in /etc/tmdarc, then do this in your filter:

from-file -optional ~/.tmda/confirmed ok

TMDA does expand ~ in filenames in the filters.
_____________________________________________
tmda-users mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to