Re: [Dovecot] Sieve: Vacation, handle and variable
Am 21.09.2011 08:52, schrieb René Neumann: > Am 21.09.2011 01:09, schrieb Stephan Bosch: >> >> http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/fe6df3425850 >> >> This will be included in the next release. >> >> Regards, >> >> Stephan >> > > Thanks a lot. I'll try it out. > > - René > Ok ... seems to work like a charm :) (that is: pigeonhole-0.2.4 with the above patch applied). Thanks again, René signature.asc Description: OpenPGP digital signature
Re: [Dovecot] Sieve: Vacation, handle and variable
Am 21.09.2011 01:09, schrieb Stephan Bosch: > Op 20-9-2011 23:48, René Neumann schreef: >> Am 20.09.2011 22:38, schrieb René Neumann: >>> Hi *, >>> >>> I am adding a generic way for vacation-replies in my sieve setup. There >>> I set the handle and the reason using variables (see end of mail). My >>> simple question now is: Though variable expansion is not done for >>> subject and reason, is it done for the handle? Because else there seems >>> no way in configuring the vacation action via variables. >> Ok. I just learned about sieve-test. And this shows me: >> >> * send vacation message: >> => seconds : 604800 >> => subject: FooSubj >> => from : ... >> => handle : ${vhandle} >> >> So the handle does not expand variables. Hence: Would it be possible to >> add for example a non-standard ":expand list" option to vacation, where >> 'list' contains the names of the options where it is safe to do >> variable-expansion? > > No need. This is a violation of the standard and it was actually a long > standing FIXME already. Fortunately, it was quite simple to repair: > > http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/fe6df3425850 > > This will be included in the next release. > > Regards, > > Stephan > Thanks a lot. I'll try it out. - René signature.asc Description: OpenPGP digital signature
Re: [Dovecot] Sieve: Vacation, handle and variable
Op 20-9-2011 23:48, René Neumann schreef: Am 20.09.2011 22:38, schrieb René Neumann: Hi *, I am adding a generic way for vacation-replies in my sieve setup. There I set the handle and the reason using variables (see end of mail). My simple question now is: Though variable expansion is not done for subject and reason, is it done for the handle? Because else there seems no way in configuring the vacation action via variables. Ok. I just learned about sieve-test. And this shows me: * send vacation message: => seconds : 604800 => subject: FooSubj => from : ... => handle : ${vhandle} So the handle does not expand variables. Hence: Would it be possible to add for example a non-standard ":expand list" option to vacation, where 'list' contains the names of the options where it is safe to do variable-expansion? No need. This is a violation of the standard and it was actually a long standing FIXME already. Fortunately, it was quite simple to repair: http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/fe6df3425850 This will be included in the next release. Regards, Stephan
Re: [Dovecot] Sieve: Vacation, handle and variable
Am 20.09.2011 22:38, schrieb René Neumann: > Hi *, > > I am adding a generic way for vacation-replies in my sieve setup. There > I set the handle and the reason using variables (see end of mail). My > simple question now is: Though variable expansion is not done for > subject and reason, is it done for the handle? Because else there seems > no way in configuring the vacation action via variables. Ok. I just learned about sieve-test. And this shows me: * send vacation message: => seconds : 604800 => subject: FooSubj => from : ... => handle : ${vhandle} So the handle does not expand variables. Hence: Would it be possible to add for example a non-standard ":expand list" option to vacation, where 'list' contains the names of the options where it is safe to do variable-expansion? - René signature.asc Description: OpenPGP digital signature
[Dovecot] Sieve: Vacation, handle and variable
Hi *, I am adding a generic way for vacation-replies in my sieve setup. There I set the handle and the reason using variables (see end of mail). My simple question now is: Though variable expansion is not done for subject and reason, is it done for the handle? Because else there seems no way in configuring the vacation action via variables. I tried to read the code for this extension, but ... well ... the whole sieve implementation is way more complicated then I figured ^^. Thus I take the question to the list. Thanks, René - default.sieve - require [..., "include", "variables"]; # set this to the text you want to get included in the vacation-mail global ["vacation", "vhandle"]; set "vhandle" ""; set "vacation" ""; [...] include :personal "vacation"; - vacation.sieve - require ["variables", "include", "vacation"]; # this is set in the including script global ["vacation", "vhandle"]; if string :is "${vacation}" "" { return; } # ensure we have a handle if string :is "${vhandle}" "" { set "vhandle" "${vacation}"; } if header :matches "subject" "*" { set "sbj" "Out of office [was: ${1}]"; vacation :addresses [...] :from "..." :days 7 :handle "${vhandle}" :subject "${sbj}" "${vacation}"; } - signature.asc Description: OpenPGP digital signature