Re: [SOGo] sieve import roundcubemail scripts
Am 15.02.12 21:30, schrieb Francis Lachapelle: On 2012-02-15, at 3:26 PM, Martin Rabl wrote: I know. A import script has to know, too ;-) If you don't want to code, you'll have to do business with someone .. like us ;) I do ... every single day ... ;-)) And in the evenings I write some mails to canada ... Martin -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] sieve import roundcubemail scripts
On 2012-02-15, at 3:26 PM, Martin Rabl wrote: > Am 15.02.12 21:12, schrieb Francis Lachapelle: >> On 2012-02-15, at 3:10 PM, Martin Rabl wrote: >>> The other problem: which sieve commands are used by SOGo? > >> I think, it uses only a subset, so the converter script > >> has to be carefull by converting. >> See what the Web interface offers. SOGo doesn't support more. > I know. A import script has to know, too ;-) If you don't want to code, you'll have to do business with someone .. like us ;) Francis -- flachape...@inverse.ca :: +1.514.755.3640 :: http://www.inverse.ca Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence (http://packetfence.org) -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] sieve import roundcubemail scripts
Am 15.02.12 21:12, schrieb Francis Lachapelle: On 2012-02-15, at 3:10 PM, Martin Rabl wrote: The other problem: which sieve commands are used by SOGo? >> I think, it uses only a subset, so the converter script >> has to be carefull by converting. See what the Web interface offers. SOGo doesn't support more. I know. A import script has to know, too ;-) Martin -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] sieve import roundcubemail scripts
On 2012-02-15, at 3:10 PM, Martin Rabl wrote: > The other problem: which sieve commands are used by SOGo? I think, it uses > only a subset, so the converter script has to be carefull by converting. See what the Web interface offers. SOGo doesn't support more. Francis -- flachape...@inverse.ca :: +1.514.755.3640 :: http://www.inverse.ca Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence (http://packetfence.org) -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] sieve import roundcubemail scripts
Am 15.02.12 20:49, schrieb Francis Lachapelle: You need to use the JSON representation of the rules that we use in SOGo. It's pretty simple. One problem I see is a proper parsing of the sieve script for converting into the key-value representation you use. The other problem: which sieve commands are used by SOGo? I think, it uses only a subset, so the converter script has to be carefull by converting. Greetings, Martin -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] sieve import roundcubemail scripts
On 2012-02-14, at 5:35 PM, Patrick Ben Koetter wrote: > * Francis Lachapelle : >>> is there a method to import existing sieve scripts from roundcubemail for >>> example? I tried to overwrite the ones created by sogo, but that doesn't >>> work :) is there perhaps another method to do this for 50+ accounts >>> automatically or perhaps scripted? we have a cyrus-imapd-2.3.16 mail >>> server and roundcube 0.3.1 >> >> You'll have to rely on a custom migration script and use sogo-tool to import >> the filters definition from roundcube to SOGo. Here's how to call sogo-tool >> : >> >> # sogo-tool user-preferences >> user-preferences get|set|unset defaults|settings user >> [authname:authpassword] key [value|-f filename] >> >> user the user of whom to set the defaults/settings key/value >> value the JSON-formatted value of the key >> >> Examples: >> sogo-tool user-preferences get defaults janedoe SOGoLanguage >> sogo-tool user-preferences unset settings janedoe Mail >> sogo-tool user-preferences set defaults janedoe SOGoTimeFormat >> '{"SOGoTimeFormat":"%I:%M %p"}' > > I don't see how I would use sogo-tool to specify SIEVE rules. Is it possible? You need to use the JSON representation of the rules that we use in SOGo. It's pretty simple. Define some rules in the Web interface and look at the JSON representation using sogo-tool : sogo-tool user-preferences get defaults patrick SOGoSieveFilters When setting new rules, sogo-tool will take care of updating the rules on your Sieve server : sogo-tool user-preferences set defaults patrick admin:qwerty SOGoSieveFilters '{"SOGoSieveFilters": [{"active": true, "actions": [{"method": "fileinto", "argument": "myfolder"}], "rules": [{"operator": "contains", "field": "subject", "value": "bar"}], "match": "any", "name": "foo"}]}' Francis -- flachape...@inverse.ca :: +1.514.755.3640 :: http://www.inverse.ca Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence (http://packetfence.org) -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] sieve import roundcubemail scripts
* Francis Lachapelle : > > is there a method to import existing sieve scripts from roundcubemail for > > example? I tried to overwrite the ones created by sogo, but that doesn't > > work :) is there perhaps another method to do this for 50+ accounts > > automatically or perhaps scripted? we have a cyrus-imapd-2.3.16 mail > > server and roundcube 0.3.1 > > You'll have to rely on a custom migration script and use sogo-tool to import > the filters definition from roundcube to SOGo. Here's how to call sogo-tool > : > > # sogo-tool user-preferences > user-preferences get|set|unset defaults|settings user [authname:authpassword] > key [value|-f filename] > >user the user of whom to set the defaults/settings key/value >value the JSON-formatted value of the key > > Examples: >sogo-tool user-preferences get defaults janedoe SOGoLanguage >sogo-tool user-preferences unset settings janedoe Mail >sogo-tool user-preferences set defaults janedoe SOGoTimeFormat > '{"SOGoTimeFormat":"%I:%M %p"}' I don't see how I would use sogo-tool to specify SIEVE rules. Is it possible? Wouldn't it be easier - if one might call THIS easy - to create a script that POSTs sieve rules to a SOGo webservice? p@rick -- state of mind () http://www.state-of-mind.de Franziskanerstraße 15 Telefon +49 89 3090 4664 81669 München Telefax +49 89 3090 4666 Amtsgericht MünchenPartnerschaftsregister PR 563 -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] sieve import roundcubemail scripts
Hi Hugo On 2012-02-14, at 2:39 AM, Bruno Lingner (Hugo) wrote: > is there a method to import existing sieve scripts from roundcubemail for > example? I tried to overwrite the ones created by sogo, but that doesn't work > :) > is there perhaps another method to do this for 50+ accounts automatically or > perhaps scripted? > we have a cyrus-imapd-2.3.16 mail server and roundcube 0.3.1 You'll have to rely on a custom migration script and use sogo-tool to import the filters definition from roundcube to SOGo. Here's how to call sogo-tool : # sogo-tool user-preferences user-preferences get|set|unset defaults|settings user [authname:authpassword] key [value|-f filename] user the user of whom to set the defaults/settings key/value value the JSON-formatted value of the key Examples: sogo-tool user-preferences get defaults janedoe SOGoLanguage sogo-tool user-preferences unset settings janedoe Mail sogo-tool user-preferences set defaults janedoe SOGoTimeFormat '{"SOGoTimeFormat":"%I:%M %p"}' Francis -- flachape...@inverse.ca :: +1.514.755.3640 :: http://www.inverse.ca Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence (http://packetfence.org) -- users@sogo.nu https://inverse.ca/sogo/lists