Hi all, anybody knows, if there is a way to acces the folder from a call like this deovecot-lda -m destfolder from within a sieve script? thx in advance matze
On Fri Aug 7 12:19:22 2015, matthias lay wrote:> anybody knows, if there is a way to acces the folder from a call like this > > deovecot-lda -m destfolder > > from within a sieve script?Depending on what you mean by "access", this could be as easy as require "fileinto"; fileinto "destfolder"; Yours Jost Krieger -- | Jost.Krieger+sig at ruhr-uni-bochum.de Please help stamp out spam! | | Postmaster, JAPH, resident answer machine at RUB Comp. Center | | Sincere words are not sweet, sweet words are not sincere. | | Lao Tse, Tao Te King 81 | -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4784 bytes Desc: not available URL: <dovecot.org/pipermail/dovecot/attachments/20150807/75d9bfba/attachment.p7s>
hi jost thx for the reply, by access I mean to read the variable require ["fileinto", "variables", "?destfolder?" ]; if anyof ( destfolder :matches "*") { fileinto "${1}/subfolder"; }else{ fileinto "INBOX/subfolder"; } On 08/07/2015 12:26 PM, Jost Krieger wrote:> On Fri Aug 7 12:19:22 2015, matthias lay wrote: > >> anybody knows, if there is a way to acces the folder from a call like this >> >> deovecot-lda -m destfolder >> >> from within a sieve script? > > Depending on what you mean by "access", this could be as easy as > > require "fileinto"; > > fileinto "destfolder"; > > Yours > Jost Krieger >