Re: [SOGo] I am worried now, can we use openchange from a remote location or not?
Hi Christian Two different use cases here. 1) Outlook from home. Solution A) You could also use a VPN connection to your server or LAN. Over this you could talk MAPI with OpenChange securely. This is not really practical. This way every email account should also have a vpn configured. Solution B) You can use an ActiveSync implementation for SOGo (see Mail from Peter Peltonen). This is a new implementation, so I don't know how stable this is. I am going to try that. thanks for the tip. 2) Android client Solution A) Use different protocolls for different data. IMAP for email CardDAV for address books CalDAV for calendars For this to work you have to install a CardDAV and a CalDAV app (e.g. found under http://dmfs.org/ ) Yes. I am using carddav sync and caldav sync now and it seems to work great. Had to purcase the carddav sync though. No duplicate contact entries so far, but I had to install the contact editor free version to be-able to edit phone numbers. Solution B) You can use an ActiveSync implementation for SOGo (see before). I'm going to try if that works. Thanks for the suggestions. Hans -- users@sogo.nu https://inverse.ca/sogo/lists
[SOGo] 1.3.15a on Squeeze - thank you
Hi Inverse-Team, i would like to say thank you for your great work. Updates SOGo yesterday from 1.3.12 to 1.3.15a on a squeeze system and everything went fine. Just had to clear the browsers cache here and there but no errors or anything. Hold up your great work! Best Greets from Berlin, Martin -- users@sogo.nu https://inverse.ca/sogo/lists
[SOGo] sogod restart not kill process 1.3.15 (centos)
I have a problem after the update of the version 1.3.12 on 1.3.15. No problems during the update. But when I need to stop and to start the sogod service, I have processes which are not stopped that I have to kill in manually. The manual kill does not always work. Sometimes processes cannot be stopped. Furthermore, I find another error in the logs which I had when I had tried updating on the version 2.0 that I had not with the 1.3.12 version - https://inverse.ca/sogo/lists/arc/users/2012-01/msg00115.html Here are extracts from the log file : May 18 14:01:04 sogod [25595]: |SOGo| starting method 'REPORT' on uri '/SOGo/dav//Contacts/public/' May 18 14:01:04 sogod [25595]: [ERROR] 0x0xa5a11e4[NGLdapAttribute] cound not convert value of objectGUID to string May 18 14:01:04 sogod [25595]: [ERROR] 0x0xa5540f4[NGLdapAttribute] cound not convert value of objectSid to string May 18 14:01:04 sogod [25595]: [ERROR] 0x0xaaab62c[NGLdapAttribute] cound not convert value of logonHours to string May 18 14:04:59 sogod [25586]: 0x0xa1d23fc[WOWatchDog] Terminating with SIGINT or SIGTERM May 18 14:04:59 sogod [25586]: 0x0xa1d23fc[WOWatchDog] Terminating with SIGINT or SIGTERM May 18 14:04:59 sogod [25586]: 0x0xa1d23fc[WOWatchDog] Terminating with SIGINT or SIGTERM May 18 15:18:18 sogod [25586]: 0x0xa1d23fc[WOWatchDog] Terminating with SIGINT or SIGTERM May 18 14:05:13 sogod [25586]: 0x0xa1d23fc[WOWatchDog] Terminating with SIGINT or SIGTERM May 18 14:05:51 sogod [26188]: version 1.3.15 (build root@vizzini.openchange.local 201205151442) -- starting May 18 14:05:51 sogod [26188]: vmem size check enabled: shutting down app when vmem 512 MB May 18 14:05:51 sogod [26188]: 0x0x8f9bd94[SOGoProductLoader] SOGo products loaded from '/usr/lib/GNUstep/SOGo': May 18 14:05:51 sogod [26188]: 0x0x8f9bd94[SOGoProductLoader] Appointments.SOGo, AdministrationUI.SOGo, MailerUI.SOGo, Mailer.SOGo, Contacts.SOGo, SchedulerUI.SOGo, PreferencesUI.SOGo, MainUI.SOGo, MailPartViewers.SOGo, ContactsUI.SOGo, CommonUI.SOGo May 18 14:05:51 sogod [26188]: [WARN] 0x0x90393fc[WOWatchDog] listening socket: attempt 1 failed May 18 14:05:52 sogod [26188]: [WARN] 0x0x90393fc[WOWatchDog] listening socket: attempt 2 failed May 18 14:05:53 sogod [26188]: [WARN] 0x0x90393fc[WOWatchDog] listening socket: attempt 3 failed May 18 14:05:54 sogod [26188]: [WARN] 0x0x90393fc[WOWatchDog] listening socket: attempt 4 failed May 18 14:05:55 sogod [26188]: [WARN] 0x0x90393fc[WOWatchDog] listening socket: attempt 5 failed May 18 14:05:56 sogod [26188]: [ERROR] 0x0x90393fc[WOWatchDog] unable to listen on specified port, check that no other process is already using it May 18 14:06:14 sogod [25586]: 0x0xa1d23fc[WOWatchDog] Terminating with SIGINT or SIGTERM Sogo is installed on a Centos -- users@sogo.nu https://inverse.ca/sogo/lists
[SOGo] Problem with user mail tab
Hi! One user has problems with his mail tab on SOGo, It does not display anything. I though using sogo-tool will fix it but when I run $/usr/sbin/sogo-tool user-preferences set defaults user.name Mail I get this: May 21 12:42:10 sogo-tool [15436]: 0x0x210dc00[SOGoCache] Cache cleanup interval set every 300.00 seconds May 21 12:42:10 sogo-tool [15436]: 0x0x210dc00[SOGoCache] Using host(s) 'localhost' as server(s) /usr/sbin/sogo-tool: Uncaught exception NSRangeException, reason: Index 4 is out of range 4 (in 'objectAtIndex:') Any idea? Thank you in advance! -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Problem with user mail tab
Hi, On Mon, May 21, 2012 at 1:57 PM, Alex agc@gmail.com wrote: Hi! One user has problems with his mail tab on SOGo, It does not display anything. I though using sogo-tool will fix it but when I run $/usr/sbin/sogo-tool user-preferences set defaults user.name Mail I get this: May 21 12:42:10 sogo-tool [15436]: 0x0x210dc00[SOGoCache] Cache cleanup interval set every 300.00 seconds May 21 12:42:10 sogo-tool [15436]: 0x0x210dc00[SOGoCache] Using host(s) 'localhost' as server(s) /usr/sbin/sogo-tool: Uncaught exception NSRangeException, reason: Index 4 is out of range 4 (in 'objectAtIndex:') Any idea? Have you tried clearing the browser's cache? For some people that has helped with similar problems. Best regards, Peter -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Problem with user mail tab
It works. Billion of thanks! But is this uncaught exception a thing to worry about? El 21/05/2012 13:11, Peter Peltonen escribió: Hi, On Mon, May 21, 2012 at 1:57 PM, Alexagc@gmail.com wrote: Hi! One user has problems with his mail tab on SOGo, It does not display anything. I though using sogo-tool will fix it but when I run $/usr/sbin/sogo-tool user-preferences set defaults user.name Mail I get this: May 21 12:42:10 sogo-tool [15436]:0x0x210dc00[SOGoCache] Cache cleanup interval set every 300.00 seconds May 21 12:42:10 sogo-tool [15436]:0x0x210dc00[SOGoCache] Using host(s) 'localhost' as server(s) /usr/sbin/sogo-tool: Uncaught exception NSRangeException, reason: Index 4 is out of range 4 (in 'objectAtIndex:') Any idea? Have you tried clearing the browser's cache? For some people that has helped with similar problems. Best regards, Peter -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Errro SOGO interface
On 2012-05-17 06:17, ANAND SHAH wrote: Hi Christian, Now i am able to connect to samba but get this error. Looks like users mailbox could not be reached. How can i fix the problem. I am following openchange sogo LDAP doc to fulfill my requirement. Did you create the user mailboxes in your IMAP server before trying to connect? And did you create the folders Drafts, Trash and Sent for them? Kind regards, Christian Mack -- Christian Mack Gruppe Informationsdienste Rechenzentrum Universität Konstanz -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Ubuntu 12.04 lts server!
Hello NetwoDist On 2012-05-19 13:26, NetwoDist wrote: Is it possible to have openchange with sogo using normal repository or not? -- As 2.0 is currently RC, you only can get it via mtn from the repository. When it gets stable you will get it via normal repository in Debian/RedHat format. Ubuntu 12.04 is currently not supported by SOGo/Inverse, but there is work in progress for it. So at the moment you have to wait, or use the development branch. Kind regards, Christian Mack -- Christian Mack Gruppe Informationsdienste Rechenzentrum Universität Konstanz -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] SOGo doesn't display email anymore
Hello James James On 2012-05-20 23:44, James James wrote: since the sogo-1.3.15, my users email cannot been displayed. The calendar works well but no email. I've got this error message : May 20 21:27:00 sogod [13044]: [WARN] 0x0x1dbf878[UIxEnvelopeAddressFormatter] unexpected envelope address: 0x0x1e7b5e8[NGImap4EnvelopeAddress]: May 20 21:30:01 sogod [13044]: [WARN] 0x0x442dde8[UIxEnvelopeAddressFormatter] unexpected envelope address: 0x0x43502d8[NGImap4EnvelopeAddress]: Can sombody help me ? There was a thread about this just 2 days back. A) You have to stop sogod and start it up again. Restart is not sufficient. B) If your users have problems afterwards, they have to clear their browser cache. Kind regards, Christian Mack -- Christian Mack Gruppe Informationsdienste Rechenzentrum Universität Konstanz -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] SOGo doesn't display email anymore
i recommend doing a server restart afterwards, its easier and more clean since i always update the linux box behind too. then browser cache clean and everythings fine Am 5/21/12 1:53 PM, schrieb Christian Mack: Hello James James On 2012-05-20 23:44, James James wrote: since the sogo-1.3.15, my users email cannot been displayed. The calendar works well but no email. I've got this error message : May 20 21:27:00 sogod [13044]: [WARN] 0x0x1dbf878[UIxEnvelopeAddressFormatter] unexpected envelope address: 0x0x1e7b5e8[NGImap4EnvelopeAddress]: May 20 21:30:01 sogod [13044]: [WARN] 0x0x442dde8[UIxEnvelopeAddressFormatter] unexpected envelope address: 0x0x43502d8[NGImap4EnvelopeAddress]: Can sombody help me ? There was a thread about this just 2 days back. A) You have to stop sogod and start it up again. Restart is not sufficient. B) If your users have problems afterwards, they have to clear their browser cache. Kind regards, Christian Mack -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Syncing Multiple Calendars with Funambol to Outlook
I hate to say it, but this really stinks and I need to vent some air. It has been almost 2 weeks since I opened this thread and nobody from Inverse really helped to solve the problem besides saying it should work. Very funny. I asked what I could do/debug to solve the problem. Zero. If you at Inverse think I need to subcribe a business support contract to get a solution to my problem then do so. If you don't think so then pick this thread up and work on it. In any case: REACT. p@rick * Patrick Ben Koetter users@sogo.nu: * Ludovic Marcotte users@sogo.nu: On 09/05/12 10:36, Patrick Ben Koetter wrote: this seems to work for a users own calendars, but not for subscribed ones from other users from the same domain (Read permissions given). What do you have this impression? If you ask for the calendar properties, you can see the synchronize checkbox together with the tag textfield. I saw that and I enabled sync and tagged the subscribed calendar, but doesn't work. What do you need to debug? SOGo log, Funambol server and client log? -- state of mind () Digitale Kommunikation 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] SOGo doesn't display email anymore
Thanks for your answer Christian, but I saw this post and the restart-clear-the-cache action doesn't work for me. The mail tab is still empty. Regards 2012/5/21 Christian Mack christian.m...@uni-konstanz.de Hello James James On 2012-05-20 23:44, James James wrote: since the sogo-1.3.15, my users email cannot been displayed. The calendar works well but no email. I've got this error message : May 20 21:27:00 sogod [13044]: [WARN] 0x0x1dbf878[UIxEnvelopeAddressFormatter] unexpected envelope address: 0x0x1e7b5e8[NGImap4EnvelopeAddress]: May 20 21:30:01 sogod [13044]: [WARN] 0x0x442dde8[UIxEnvelopeAddressFormatter] unexpected envelope address: 0x0x43502d8[NGImap4EnvelopeAddress]: Can sombody help me ? There was a thread about this just 2 days back. A) You have to stop sogod and start it up again. Restart is not sufficient. B) If your users have problems afterwards, they have to clear their browser cache. Kind regards, Christian Mack -- Christian Mack Gruppe Informationsdienste Rechenzentrum Universität Konstanz -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Syncing Multiple Calendars with Funambol to Outlook
Hello Patrick Ben Koetter On 2012-05-21 14:09, Patrick Ben Koetter wrote: I hate to say it, but this really stinks and I need to vent some air. It has been almost 2 weeks since I opened this thread and nobody from Inverse really helped to solve the problem besides saying it should work. Very funny. I asked what I could do/debug to solve the problem. Zero. If you at Inverse think I need to subcribe a business support contract to get a solution to my problem then do so. If you don't think so then pick this thread up and work on it. In any case: REACT. p@rick * Patrick Ben Koetter users@sogo.nu: * Ludovic Marcotte users@sogo.nu: On 09/05/12 10:36, Patrick Ben Koetter wrote: this seems to work for a users own calendars, but not for subscribed ones from other users from the same domain (Read permissions given). What do you have this impression? If you ask for the calendar properties, you can see the synchronize checkbox together with the tag textfield. I saw that and I enabled sync and tagged the subscribed calendar, but doesn't work. What do you need to debug? SOGo log, Funambol server and client log? Perhaps you should open a bug report then? http://www.sogo.nu/bugs Invers is not always reading all emails on this list, but it reads and tracks all bug reports. By the way, two weeks are not that long, especially when a new version just came out. Kind regards, Christian Mack -- Christian Mack Gruppe Informationsdienste Rechenzentrum Universität Konstanz -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] SOGo doesn't display email anymore
James James wrote: Thanks for your answer Christian, but I saw this post and the restart-clear-the-cache action doesn't work for me. The mail tab is still empty. Regards James- Try restarting the entire server if you can. Most likely you have a stale sogod process hanging around that won't close out so you might need to reboot. 2012/5/21 Christian Mack christian.m...@uni-konstanz.de Hello James James On 2012-05-20 23:44, James James wrote: since the sogo-1.3.15, my users email cannot been displayed. The calendar works well but no email. I've got this error message : May 20 21:27:00 sogod [13044]: [WARN] 0x0x1dbf878[UIxEnvelopeAddressFormatter] unexpected envelope address: 0x0x1e7b5e8[NGImap4EnvelopeAddress]: May 20 21:30:01 sogod [13044]: [WARN] 0x0x442dde8[UIxEnvelopeAddressFormatter] unexpected envelope address: 0x0x43502d8[NGImap4EnvelopeAddress]: Can sombody help me ? There was a thread about this just 2 days back. A) You have to stop sogod and start it up again. Restart is not sufficient. B) If your users have problems afterwards, they have to clear their browser cache. Kind regards, Christian Mack -- Christian Mack Gruppe Informationsdienste Rechenzentrum Universitt Konstanz
[SOGo] Ordering calendar ACLs?
Hi, in our Sogo setup we use accounts and groups from LDAP and as I have learned the order of calendar ACL rules is important in these cases (from specific to general). But the Web-UI for ACLs does not offer options to change the order of existing ACL-entries and deleting and re-adding entries does not add the entries in a reproducible way (at least in 1.3.15a). What is the proposed way to order the ACL entries? Is it possible to use sogo-tool or fiddle with the database to change entries? Thanks Robert -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Ubuntu 12.04 lts server!
Actually, there is a version for Ubuntu 12.04 lts available through apt-get: See message from Jean Raby dated April27th, 2012 Re: [SOGo] SOGo package for Ubuntu 12.04 LTS Quote: I've just put them online for the nightly builds: http://inverse.ca/ubuntu-nightly/pool/precise/ To use them, add the following to sources.list: deb http://inverse.ca/ubuntu-nightly precise precise Then add our gpg pubkey: sudo apt-key adv --keyserver keys.gnupg.net --recv-key 0x810273C4 sudo apt-get update And install sogo: apt-get install sogo But only for the nightly branch. Dominique On 21/05/2012 13:45, Christian Mack wrote: Hello NetwoDist On 2012-05-19 13:26, NetwoDist wrote: Is it possible to have openchange with sogo using normal repository or not? -- As 2.0 is currently RC, you only can get it via mtn from the repository. When it gets stable you will get it via normal repository in Debian/RedHat format. Ubuntu 12.04 is currently not supported by SOGo/Inverse, but there is work in progress for it. So at the moment you have to wait, or use the development branch. Kind regards, Christian Mack -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Syncing Multiple Calendars with Funambol to Outlook
Christian, * Christian Mack users@sogo.nu: On 2012-05-21 14:09, Patrick Ben Koetter wrote: I hate to say it, but this really stinks and I need to vent some air. It has been almost 2 weeks since I opened this thread and nobody from Inverse really helped to solve the problem besides saying it should work. Very funny. I asked what I could do/debug to solve the problem. Zero. If you at Inverse think I need to subcribe a business support contract to get a solution to my problem then do so. If you don't think so then pick this thread up and work on it. In any case: REACT. p@rick * Patrick Ben Koetter users@sogo.nu: * Ludovic Marcotte users@sogo.nu: On 09/05/12 10:36, Patrick Ben Koetter wrote: this seems to work for a users own calendars, but not for subscribed ones from other users from the same domain (Read permissions given). What do you have this impression? If you ask for the calendar properties, you can see the synchronize checkbox together with the tag textfield. I saw that and I enabled sync and tagged the subscribed calendar, but doesn't work. What do you need to debug? SOGo log, Funambol server and client log? Perhaps you should open a bug report then? http://www.sogo.nu/bugs Invers is not always reading all emails on this list, but it reads and tracks all bug reports. By the way, two weeks are not that long, especially when a new version just came out. I don't know if the problem described here is a bug, a matter of misconfiguration or something else. As long as I don't know I won't open a bug report as I don't want to waste anyone elses time - especially not of Inverse who are working really hard to get native Outlook support to work. Opening a bug simply to increase priority or getting someone elses attention is not my thing either. Concerning the time it takes: I've been on this list for quite some time and I know that two weeks are long. p@rick -- state of mind () Digitale Kommunikation 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] Group setup help
On 5/18/2012 4:06 PM, Ludovic Marcotte wrote: On 18/05/12 08:41, Ronald J. Yacketta wrote: objectClass: posixgroup It could be a string case issue. Try posixGroup. No dice, group still not expanded. Only change made was posixgroup to posixGroup, everything else remained the same. wireshark shows the group being returned with posixGroup as an objectClass. # Test Department, Departments, potsdam.edu dn: ou=Test Department,ou=Departments,o=potsdam.edu mail: testd...@potsdam.edu gidNumber: 1587 cn: Test Department objectClass: top objectClass: organizationalunit objectClass: spotdepartment objectClass: posixGroup objectClass: extensibleobject ou: Test Department memberUid: fred memberUid: bob memberUid: joe -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Group setup help
On 5/21/2012 9:59 AM, Ronald J. Yacketta wrote: On 5/18/2012 4:06 PM, Ludovic Marcotte wrote: On 18/05/12 08:41, Ronald J. Yacketta wrote: objectClass: posixgroup It could be a string case issue. Try posixGroup. No dice, group still not expanded. Only change made was posixgroup to posixGroup, everything else remained the same. wireshark shows the group being returned with posixGroup as an objectClass. # Test Department, Departments, potsdam.edu dn: ou=Test Department,ou=Departments,o=potsdam.edu mail: testd...@potsdam.edu gidNumber: 1587 cn: Test Department objectClass: top objectClass: organizationalunit objectClass: spotdepartment objectClass: posixGroup objectClass: extensibleobject ou: Test Department memberUid: fred memberUid: bob memberUid: joe OKay, a bit of a gaff on my end but it is working now! Searching through the code I notice in ./SOGo/SoObjects/SOGo/SOGoGroup you search classes (a NSArray) as such // We check to see if it's a group classes = [[entry attributeWithName: @objectClass] allStringValues]; ... [classes containsObject: @posixGroup]) while in ./SOGo/SoObjects/SOGo/LDAPSource.m you lower case the LDAP query results before stuffing them into classes (a NSMutableArray) // We get our objectClass attribute values. We lowercase // everything for ease of search after. o = [ldapEntry objectClasses]; ... [classes replaceObjectAtIndex: i withObject: [[classes objectAtIndex: i] lowercaseString]]; ... then do the following [classes containsObject: @posixgroup]) Why the two different methods of finding posix[gG]roup? Would it be more advantageous to search for objectClasses using the same methods? -Ron -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] sieve scripts
Hi there, Sieve scripts are locatedin the sogo database. You'll have to import them in there. I don't know if there is some kind of script existing for this purpose, but one thing is sure: it won't work if you try to keep your scripts AND give your users the options to use sieve filtering within SOGo's webmail. Hope this helped. Alexandre Boyer ZEROSPAM Soutien technique - Technical Support On 12-05-21 11:02 AM, Christian Rößner wrote: Hi, I have a big collection of sieve rules made with Roundcubs-sieverules. Now that I use SOGo, I do not want to use two webmail interfaces, so I wish to drop Roundcube. I copied over the file default.sieve to sogo.sieve in the hope of seeing my rules listed in the dialogbox, but it is empty. Is there some trick how to get my list into SOGo? Here is some sample of it: ## Generated by Roundcube Webmail SieveRules Plugin ## require [fileinto,envelope,regex]; # rule:[Abuse] if allof (address :contains To abuse@) { fileinto abuse; stop; } # rule:[Mail Delivery System] elsif allof (address :is From mailer-dae...@mx0.roessner-net.de) { fileinto mail_delivery_system; stop; } # rule:[Postfix US] elsif allof (header :contains List-Post mailto:postfix-us...@postfix.org) { fileinto postfix_org_us; stop; } ... wc -l sogo.sieve 484 sogo.sieve I do not like to do this once again ;-) -Christian Rößner --- Roessner-Network-Solutions Bachelor of Science Informatik Nahrungsberg 81, 35390 Gießen F: +49 641 5879091, M: +49 176 93118939 USt-IdNr.: DE225643613 http://www.roessner-network-solutions.com signature.asc Description: OpenPGP digital signature
Re: [SOGo] sieve scripts
Hi, Sieve scripts are locatedin the sogo database. You'll have to import them in there. I don't know if there is some kind of script existing for this purpose, but one thing is sure: it won't work if you try to keep your scripts AND give your users the options to use sieve filtering within SOGo's webmail. Hm, I just found this link: https://inverse.ca/sogo/lists/arc/users/2012-02/msg00447.html but that really is too much pain. I would have to write a python script to convert sieve-json. And I don't want to do coding at the moment (I gonna have a look if there is some sieve python module. Maybe that would help me a lot). -Christian Rößner --- Roessner-Network-Solutions Bachelor of Science Informatik Nahrungsberg 81, 35390 Gießen F: +49 641 5879091, M: +49 176 93118939 USt-IdNr.: DE225643613 http://www.roessner-network-solutions.com smime.p7s Description: S/MIME cryptographic signature
AW: [SOGo] sieve scripts
Hi Christian, I had/have the same problem but currently there is no running SOGo installation on my server as I upgraded to Ubuntu 12.04. So I could not try my dirty little perl script ;) on Ubuntu 12.04 as on Ubuntu 10.04 there were problems with GnuStep such that sogo-tool could only read a small value of parameter digest such that my huge sieve rules could not be passed successfully to SOGoDefaults. Maybe you could give my perl script a try. Perhaps you have to adapt some transformations as not all sieve commands are implemented yet. I guarantee no completeness or bug free functionality, so take care and make backups of .GnuStepDefaults and the involved sieve scripts. Best Regards, Malte SCRIPT: #!/usr/bin/perl -w use strict; if(-e $ARGV[0] defined $ARGV[1] $ARGV[1] eq 'true') { my $file = $ARGV[0]; my $sogoSieve = convert($file); exec(sudo -u sogo sogo-tool user-preferences set defaults malte malte:MyF1r5t53rv3r SOGoSieveFilters '{$sogoSieve}'); } elsif(-e $ARGV[0]) { my $file = $ARGV[0]; my $sogoSieve = convert($file); print(sudo -u sogo sogo-tool user-preferences set defaults malte malte:MyF1r5t53rv3r SOGoSieveFilters '{$sogoSieve}'\n); } else { print(### convertSieve.pl ##\n); print(First Parameter should be the file to be converted\n); print(Second Parameter is optional and could be an output file.\n); print(If not set, the converted string is printed to the command line\n); } ### # subroutines # ### sub convert() { my $file = shift; my $rules = ,my $action = , my $name = ; my $filters = ; open (INPUT,$file) || die $!; while (INPUT){ if($_ =~ /\s*require\s*\[fileinto\];\s*/ || $_ =~ /\s*{\s*/ || $_ =~ /\s*stop;/) { #check } elsif($_ =~ /#\s*rule:\s*\[([^\]]+)\]/) { $name = $1; } elsif($_ =~ /\s*if\s+([^\(]*)/) { $rules = convertRules($1); } elsif($_ =~ /\s*if\s*anyof\s*\(([^\)]*)\)/) { $rules = convertRules($1); } elsif($_ =~ /\s*(fileinto)\s*([^]+);/) { $action = convertAction($1, $2); } elsif($_ =~ /\s*}\s*/) { # create and add filter entry if($filters eq ) { $filters .= {\actions\: [$action], \active\: true, \rules\: [$rules], \match\: \any\, \name\: \$name\}; } else { $filters .= ,{\actions\: [$action], \active\: true, \rules\: [$rules], \match\: \any\, \name\: \$name\}; } } else { print(Parse Error in:\n$_); return; } } close INPUT; return \SOGoSieveFilters\:[$filters]; } sub convertRules() { my $in = shift; my $rules = ; my @entities = split(/,/, $in); for(@entities) { if($_ =~ /\s*header\s+:(contains|is)\s+([^]+)\s+([^]+)\s*/) { if( $rules eq ) { $rules .= {\operator\: \$1\, \field\: \ . lc($2) . \, \value\: \$3\}; } else { $rules .= ,{\operator\: \$1\, \field\: \ . lc($2) . \, \value\: \$3\}; } } else { print(ERROR: Unknown rule:\n$_\n); } } return $rules; } sub convertAction() { my $method = shift; my $argument = shift; $argument =~ s/\./\//g; return {\method\: \$method\, \argument\: \$argument\}; } -Ursprüngliche Nachricht- Von: Christian Rößner [mailto:c...@roessner-network-solutions.com] Gesendet: Montag, 21. Mai 2012 17:23 An: users@sogo.nu Betreff: Re: [SOGo] sieve scripts Hi, Sieve scripts are locatedin the sogo database. You'll have to import them in there. I don't know if there is some kind of script existing for this purpose, but one thing is sure: it won't work if you try to keep your scripts AND give your users the options to use sieve filtering within SOGo's webmail. Hm, I just found this link: https://inverse.ca/sogo/lists/arc/users/2012-02/msg00447.html but that really is too much pain. I would have to write a python script to convert sieve-json. And I don't want to do coding at the moment (I gonna have a look if there is some sieve python module. Maybe that would help me a lot). -Christian Rößner ---
Re: [SOGo] sieve scripts
Hi Malte, I had/have the same problem but currently there is no running SOGo installation on my server as I upgraded to Ubuntu 12.04. So I could not try my dirty little perl script ;) on Ubuntu 12.04 as on Ubuntu 10.04 there were problems with GnuStep such that sogo-tool could only read a small value of parameter digest such that my huge sieve rules could not be passed successfully to SOGoDefaults. Maybe you could give my perl script a try. Perhaps you have to adapt some transformations as not all sieve commands are implemented yet. I guarantee no completeness or bug free functionality, so take care and make backups of .GnuStepDefaults and the involved sieve scripts. that is awesome :-) Thank you very much for this script. I won't find the time tonight to test it, but sure tomorrow. So I will give you a feedback for 12.04. Once again thanks a lot. Christian #!/usr/bin/perl -w use strict; if(-e $ARGV[0] defined $ARGV[1] $ARGV[1] eq 'true') { my $file = $ARGV[0]; my $sogoSieve = convert($file); exec(sudo -u sogo sogo-tool user-preferences set defaults malte malte:MyF1r5t53rv3r SOGoSieveFilters '{$sogoSieve}'); } elsif(-e $ARGV[0]) { my $file = $ARGV[0]; my $sogoSieve = convert($file); print(sudo -u sogo sogo-tool user-preferences set defaults malte malte:MyF1r5t53rv3r SOGoSieveFilters '{$sogoSieve}'\n); } else { print(### convertSieve.pl ##\n); print(First Parameter should be the file to be converted\n); print(Second Parameter is optional and could be an output file.\n); print(If not set, the converted string is printed to the command line\n); } ### # subroutines # ### sub convert() { my $file = shift; my $rules = ,my $action = , my $name = ; my $filters = ; open (INPUT,$file) || die $!; while (INPUT){ if($_ =~ /\s*require\s*\[fileinto\];\s*/ || $_ =~ /\s*{\s*/ || $_ =~ /\s*stop;/) { #check } elsif($_ =~ /#\s*rule:\s*\[([^\]]+)\]/) { $name = $1; } elsif($_ =~ /\s*if\s+([^\(]*)/) { $rules = convertRules($1); } elsif($_ =~ /\s*if\s*anyof\s*\(([^\)]*)\)/) { $rules = convertRules($1); } elsif($_ =~ /\s*(fileinto)\s*([^]+);/) { $action = convertAction($1, $2); } elsif($_ =~ /\s*}\s*/) { # create and add filter entry if($filters eq ) { $filters .= {\actions\: [$action], \active\: true, \rules\: [$rules], \match\: \any\, \name\: \$name\}; } else { $filters .= ,{\actions\: [$action], \active\: true, \rules\: [$rules], \match\: \any\, \name\: \$name\}; } } else { print(Parse Error in:\n$_); return; } } close INPUT; return \SOGoSieveFilters\:[$filters]; } sub convertRules() { my $in = shift; my $rules = ; my @entities = split(/,/, $in); for(@entities) { if($_ =~ /\s*header\s+:(contains|is)\s+([^]+)\s+([^]+)\s*/) { if( $rules eq ) { $rules .= {\operator\: \$1\, \field\: \ . lc($2) . \, \value\: \$3\}; } else { $rules .= ,{\operator\: \$1\, \field\: \ . lc($2) . \, \value\: \$3\}; } } else { print(ERROR: Unknown rule:\n$_\n); } } return $rules; } sub convertAction() { my $method = shift; my $argument = shift; $argument =~ s/\./\//g; return {\method\: \$method\, \argument\: \$argument\}; } -Ursprüngliche Nachricht- Von: Christian Rößner [mailto:c...@roessner-network-solutions.com] Gesendet: Montag, 21. Mai 2012 17:23 An: users@sogo.nu Betreff: Re: [SOGo] sieve scripts Hi, Sieve scripts are locatedin the sogo database. You'll have to import them in there. I don't know if there is some kind of script existing for this purpose, but one thing is sure: it won't work if you try to keep your scripts AND give your users the options to use sieve filtering within SOGo's webmail. Hm, I just found this link: https://inverse.ca/sogo/lists/arc/users/2012-02/msg00447.html but that really is too much pain. I would have to
[SOGo] BTS activities for Monday, May 21 2012
Title: BTS activities for Monday, May 21 2012 BTS Activities Home page: http://www.sogo.nu/bugs Project: SOGo For the period covering: Monday, May 21 2012 idlast updatestatus (resolution)categorysummary 1812 2012-05-21 09:13:29 new (open) Apple iCal.app Reopen 709: iCal permissions not working 1775 2012-05-21 07:41:39 updated (open) Backend Calendar Full day events synced from Outlook and imported from K5N webcalendar show on wrong day 1810 2012-05-21 07:02:10 new (open) Backend Mail Authentication via IMAP 1811 2012-05-21 08:22:23 new (open) Web Mail Set Reply-To in mail composition window