Re: PATCH for Stephan: Re: pigeonhole/lda accessing -m folder

2019-09-12 Thread Matthias Lay via dovecot
I just noticed you implemented the Dovecot Environment Extension. Thanks! maybe it helps somebody to get this referenced in this thread https://raw.githubusercontent.com/dovecot/pigeonhole/master/doc/rfc/spec-bosch-sieve-dovecot-environment.txt example: default folder is accessible with:

Re: PATCH for Stephan: Re: pigeonhole/lda accessing -m folder

2015-08-11 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 10 Aug 2015, Stephan Bosch wrote: I would make this dependent on an extension like "vnd.dovecot.environment", so that non-standard features are only added Yes, sure :-) Maybe to place it into a vnd.dovecot. namespace of the variable exten

Re: PATCH for Stephan: Re: pigeonhole/lda accessing -m folder

2015-08-10 Thread matthias lay
hi stephan, On 08/10/2015 05:05 PM, Stephan Bosch wrote: > > I'll give this a look. Also, are there any other environment items that > may be useful? > when I checked the environment plugin I was wondering cuz it was not what I was thinking it would be, .before reading the RFC ;) would it b

Re: PATCH for Stephan: Re: pigeonhole/lda accessing -m folder

2015-08-10 Thread Stephan Bosch
Op 8/10/2015 om 4:29 PM schreef Steffen Kaiser: > On Mon, 10 Aug 2015, matthias lay wrote: > > Dear Stephan, > > If you find this code OK, please merge it into Pigeonhole. Non-standard entries like this require a vnd.dovecot prefix. > I find this information useful, too. The +detail and the defau

PATCH for Stephan: Re: pigeonhole/lda accessing -m folder

2015-08-10 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 10 Aug 2015, matthias lay wrote: Hi Matthias, there is another possibility: require ["fileinto", "variables", "subaddress", "envelope"]; if envelope :detail :matches "to" "*" { set "myfolder" "${1}"; } else { set "myfolder

Re: pigeonhole/lda accessing -m folder

2015-08-10 Thread matthias lay
complete patch. some parts were missing before diff --git a/src/lib-sieve/plugins/environment/ext-environment-common.c b/src/lib-sieve/plugins/environment/ext-environment-common.c --- a/src/lib-sieve/plugins/environment/ext-environment-common.c +++ b/src/lib-sieve/plugins/environment/ext-enviro

Re: pigeonhole/lda accessing -m folder

2015-08-07 Thread matthias lay
fixed my problem. if somebody is interested. I added an variable to the environment extension, which is quite easy. And the value of the folder is already there. so this is all: src/lib-sieve/plugins/environment/ext-environment-common.c static const char *envit_spfolder_get_value (struct sieve_

Re: pigeonhole/lda accessing -m folder

2015-08-07 Thread matthias lay
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

Re: pigeonhole/lda accessing -m folder

2015-08-07 Thread Jost Krieger
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 "destfo

pigeonhole/lda accessing -m folder

2015-08-07 Thread matthias lay
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