|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
maildir folder separator in sieveHi,
It is possible to set a maildir folder separator in backends.php configuration of ingo: http://bugs.horde.org/ticket/7621 How can i configure that separator for sieve-scripts? Christopher -- Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: ingo-unsubscribe@... |
|
|
Re: maildir folder separator in sieveChristopher,
On 06/04/2009 07:21 AM, Christopher Stegmann wrote: > It is possible to set a maildir folder separator in backends.php > configuration of ingo: http://bugs.horde.org/ticket/7621 > How can i configure that separator for sieve-scripts? I was looking into this one or two month ago and did not find any setting for it. I ended up modifying the code which generates the sieve files which has the separator hardcoded in it. If you are interested I can try to find the file and place I changed. For me it was necessary to make Ingo work with dovecot.. Daniel -- Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: ingo-unsubscribe@... |
|
|
Re: maildir folder separator in sieveZitat von Daniel Mayer <mayer@...>:
> Christopher, > > On 06/04/2009 07:21 AM, Christopher Stegmann wrote: >> It is possible to set a maildir folder separator in backends.php >> configuration of ingo: http://bugs.horde.org/ticket/7621 >> How can i configure that separator for sieve-scripts? > > I was looking into this one or two month ago and did not find any > setting for it. I ended up modifying the code which generates the > sieve files which has the separator hardcoded in it. > > If you are interested I can try to find the file and place I > changed. For me it was necessary to make Ingo work with dovecot.. separators like IMP. Unless you intentionally turned off the API usage, which is highly discouraged in the setting comments. Jan. -- Do you need professional PHP or Horde consulting? http://horde.org/consulting/ -- Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: ingo-unsubscribe@... |
|
|
Re: maildir folder separator in sieveHi,
On 06/05/2009 03:24 AM, Jan Schneider wrote: > Zitat von Daniel Mayer <mayer@...>: > >> Christopher, >> >> On 06/04/2009 07:21 AM, Christopher Stegmann wrote: >>> It is possible to set a maildir folder separator in backends.php >>> configuration of ingo: http://bugs.horde.org/ticket/7621 >>> How can i configure that separator for sieve-scripts? >> >> I was looking into this one or two month ago and did not find any >> setting for it. I ended up modifying the code which generates the >> sieve files which has the separator hardcoded in it. >> >> If you are interested I can try to find the file and place I changed. >> For me it was necessary to make Ingo work with dovecot.. > > Ingo is using the IMP API to set folder names, so it uses the same > separators like IMP. Unless you intentionally turned off the API usage, > which is highly discouraged in the setting comments. I use the following configuration for dovecot and its sieve daemon: $backends['sieve'] = array( 'driver' => 'timsieved', 'preferred' => 'localhost', 'hordeauth' => full, 'params' => array( 'hostspec' => 'localhost', 'logintype' => 'PLAIN', 'usetls' => false, 'port' => 2000, 'scriptname' => 'ingo', ), 'script' => 'sieve', 'scriptparams' => array(), 'shares' => false ); Dovecots delivery agent needs the path to be separated by dots and, if I remember correctly, Ingo produced slashes as separators. IMP works fine with the minimal configuration and automatic namespace etc. detection: $servers['imap'] = array( 'name' => 'Server', 'server' => 'localhost', 'hordeauth' => false, 'protocol' => 'imap/notls', 'port' => 143, 'quota' => array('driver'=>'imap'), ); My workaround was a simple str_replace in Sieve_Action_Fileinto:: Sieve_Action_Fileinto (in the file ./lib/Script/sieve.php). Maybe I configured something incorrectly, but I first tried to solve the problem using the documented configuration problems with no luck. If there is a standard way to do this, I would be happy to try it. Daniel -- Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: ingo-unsubscribe@... |
|
|
Re: maildir folder separator in sieveZitat von Daniel Mayer <mayer@...>:
> Hi, > > On 06/05/2009 03:24 AM, Jan Schneider wrote: >> Zitat von Daniel Mayer <mayer@...>: >> >>> Christopher, >>> >>> On 06/04/2009 07:21 AM, Christopher Stegmann wrote: >>>> It is possible to set a maildir folder separator in backends.php >>>> configuration of ingo: http://bugs.horde.org/ticket/7621 >>>> How can i configure that separator for sieve-scripts? >>> >>> I was looking into this one or two month ago and did not find any >>> setting for it. I ended up modifying the code which generates the >>> sieve files which has the separator hardcoded in it. >>> >>> If you are interested I can try to find the file and place I changed. >>> For me it was necessary to make Ingo work with dovecot.. >> >> Ingo is using the IMP API to set folder names, so it uses the same >> separators like IMP. Unless you intentionally turned off the API usage, >> which is highly discouraged in the setting comments. > > I use the following configuration for dovecot and its sieve daemon: > > $backends['sieve'] = array( > 'driver' => 'timsieved', > 'preferred' => 'localhost', > 'hordeauth' => full, > 'params' => array( > 'hostspec' => 'localhost', > 'logintype' => 'PLAIN', > 'usetls' => false, > 'port' => 2000, > 'scriptname' => 'ingo', > ), > 'script' => 'sieve', > 'scriptparams' => array(), > 'shares' => false > ); > > Dovecots delivery agent needs the path to be separated by dots and, > if I remember correctly, Ingo produced slashes as separators. IMP > works fine with the minimal configuration and automatic namespace > etc. detection: > > $servers['imap'] = array( > 'name' => 'Server', > 'server' => 'localhost', > 'hordeauth' => false, > 'protocol' => 'imap/notls', > 'port' => 143, > 'quota' => array('driver'=>'imap'), > ); > > My workaround was a simple str_replace in Sieve_Action_Fileinto:: > Sieve_Action_Fileinto (in the file ./lib/Script/sieve.php). > > Maybe I configured something incorrectly, but I first tried to solve > the problem using the documented configuration problems with no luck. list. This is set in the configuration. If you do, and if Dovecot is providing a different folder separator through the NAMESPACE command (slashes) than it expects in its delivery agent (dots), then I'd consider it pretty broken. Jan. -- Do you need professional PHP or Horde consulting? http://horde.org/consulting/ -- Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: ingo-unsubscribe@... |
|
|
Re: maildir folder separator in sieveOn 06/05/2009 10:52 AM, Jan Schneider wrote:
> Zitat von Daniel Mayer <mayer@...>: > >> On 06/05/2009 03:24 AM, Jan Schneider wrote: >>> Zitat von Daniel Mayer <mayer@...>: >>> >>>> Christopher, >>>> >>>> On 06/04/2009 07:21 AM, Christopher Stegmann wrote: >>>>> It is possible to set a maildir folder separator in backends.php >>>>> configuration of ingo: http://bugs.horde.org/ticket/7621 >>>>> How can i configure that separator for sieve-scripts? >>>> >>>> I was looking into this one or two month ago and did not find any >>>> setting for it. I ended up modifying the code which generates the >>>> sieve files which has the separator hardcoded in it. >>>> >>>> If you are interested I can try to find the file and place I changed. >>>> For me it was necessary to make Ingo work with dovecot.. >>> >>> Ingo is using the IMP API to set folder names, so it uses the same >>> separators like IMP. Unless you intentionally turned off the API usage, >>> which is highly discouraged in the setting comments. > > The question was whether you use the IMP API to retrieve the folder > list. This is set in the configuration. If you do, and if Dovecot is > providing a different folder separator through the NAMESPACE command > (slashes) than it expects in its delivery agent (dots), then I'd > consider it pretty broken. Sorry, I was not aware of the setting. "$conf[rules][usefolderapi]" is set to true. Indeed, manually telneting into our IMAP Server reveals the following namespace information: a001 NAMESPACE * NAMESPACE (("" "/")) NIL (("shared1/" "/")("shared2/" "/")) where "/" is the separator. So this is not Ingo's fault then. I will double check with dovecot and file a bug report if it is indeed inconsistent and therefore broken. Thanks, Daniel -- Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: ingo-unsubscribe@... |
|
|
Re: maildir folder separator in sieveDaniel Mayer schrieb:
> On 06/05/2009 10:52 AM, Jan Schneider wrote: >> Zitat von Daniel Mayer <mayer@...>: > > >>> On 06/05/2009 03:24 AM, Jan Schneider wrote: >>>> Zitat von Daniel Mayer <mayer@...>: >>>> >>>>> Christopher, >>>>> >>>>> On 06/04/2009 07:21 AM, Christopher Stegmann wrote: >>>>>> It is possible to set a maildir folder separator in backends.php >>>>>> configuration of ingo: http://bugs.horde.org/ticket/7621 >>>>>> How can i configure that separator for sieve-scripts? >>>>> >>>>> I was looking into this one or two month ago and did not find any >>>>> setting for it. I ended up modifying the code which generates the >>>>> sieve files which has the separator hardcoded in it. >>>>> >>>>> If you are interested I can try to find the file and place I changed. >>>>> For me it was necessary to make Ingo work with dovecot.. >>>> >>>> Ingo is using the IMP API to set folder names, so it uses the same >>>> separators like IMP. Unless you intentionally turned off the API usage, >>>> which is highly discouraged in the setting comments. >> >> The question was whether you use the IMP API to retrieve the folder >> list. This is set in the configuration. If you do, and if Dovecot is >> providing a different folder separator through the NAMESPACE command >> (slashes) than it expects in its delivery agent (dots), then I'd >> consider it pretty broken. > > Sorry, I was not aware of the setting. "$conf[rules][usefolderapi]" is > set to true. > Indeed, manually telneting into our IMAP Server reveals the following > namespace information: > > a001 NAMESPACE > * NAMESPACE (("" "/")) NIL (("shared1/" "/")("shared2/" "/")) > > where "/" is the separator. So this is not Ingo's fault then. I will > double check with dovecot and file a bug report if it is indeed > inconsistent and therefore broken. > > Thanks, > Daniel Hi, I changed the separator from "/" to the maildir default "." in dovecot. So fileinto works fine with ingo. on http://wiki.dovecot.org/LDA/Sieve you can read: >Dovecot v1.0's deliver doesn't support namespaces, so if you have a >namespace prefix you must not add it to fileinto and you must use the >default separator. This also means that delivering mails to multiple >namespaces isn't possible with v1.0. -- Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: ingo-unsubscribe@... |
| Free embeddable forum powered by Nabble | Forum Help |