Re: [SOGo] Added Event in TB does not display immediately

2015-05-22 Thread Marc Patermann

Ian,

Ian McMichael schrieb (13.05.2015 13:47 Uhr):

  On 13/05/15 10:14, Marc Patermann wrote:
I created a bug two weeks ago, but it seems there was no further 
activity since. :(

http://www.sogo.nu/bugs/view.php?id=3154
I'm very unhappy, there has nothing happened at all in 1.5 month with 
this bug! :(


Is there any way to change this? 
The key part here is the UIDFieldName.  If this is configured to expect 
a username, then log into IMAP with a username in Thunderbird.  If it is 
configured to expect an e-mail address, log into IMAP with an e-mail 
address in Thunderbird.

I saw your comment on the bug yesterday.
UIDFieldName was indeed wrong. It did not match the bindfield used by TB.


Thanks!

Marc
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Added Event in TB does not display immediately

2015-05-13 Thread Marc Patermann

Hi,

Marc Patermann schrieb (14.04.2015 15:04 Uhr):

Marc Patermann schrieb (27.03.2015 14:05 Uhr):
when I add e new event to the calendar with Lightning 3.3.3 in 
Thunderbird 31.5.0, the event is added successfully to the SOGo server 
2.2.17a. But it is not displayed in Thunderbird/Lightning.


When I activate the sync manually or restart Thunderbird the event is 
displayed.


Is this a known bug?
What can I do about it?
It is really annoying. :(
I created a bug two weeks ago, but it seems there was no further 
activity since. :(

http://www.sogo.nu/bugs/view.php?id=3154
I'm very unhappy, there has nothing happened at all in 1.5 month with 
this bug! :(


Is there any way to change this?


Marc
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Added Event in TB does not display immediately

2015-05-13 Thread Charles Marcus
On 5/13/2015 5:14 AM, Marc Patermann hans.mo...@ofd-z.niedersachsen.de
wrote:
 Hi,

 Marc Patermann schrieb (14.04.2015 15:04 Uhr):
 Marc Patermann schrieb (27.03.2015 14:05 Uhr):
 when I add e new event to the calendar with Lightning 3.3.3 in 
 Thunderbird 31.5.0, the event is added successfully to the SOGo server 
 2.2.17a. But it is not displayed in Thunderbird/Lightning.

 When I activate the sync manually or restart Thunderbird the event is 
 displayed.

 Is this a known bug?
 What can I do about it?
 It is really annoying. :(
 I created a bug two weeks ago, but it seems there was no further 
 activity since. :(
 http://www.sogo.nu/bugs/view.php?id=3154
 I'm very unhappy, there has nothing happened at all in 1.5 month with 
 this bug! :(

 Is there any way to change this?

It is apparently not a 'universal' bug, as we have never had this problem.

To clarify - you are talking about the Thunderbird that you use to
actually add the event, right? Other people won't see it until their
next calendar sync interval.

Can you provide more details about your environment?

-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Added Event in TB does not display immediately

2015-05-13 Thread Ian McMichael

On 13/05/15 10:14, Marc Patermann wrote:
I created a bug two weeks ago, but it seems there was no further 
activity since. :(

http://www.sogo.nu/bugs/view.php?id=3154
I'm very unhappy, there has nothing happened at all in 1.5 month with 
this bug! :(


Is there any way to change this? 


Hi Marc,

Yes, there is a way to change this.  Tanmay (tchaud...@simscale.com) 
spotted what is going on back on 2nd May.  I was away on holiday last 
week but have tested his solution and it works fine for us.


In summary, the SOGo Connector does not employ any smart logic or 
communicate with the SOGo backend on the server to help it calculate the 
Cal/CardDAV URLs.  Instead it simply uses the username from the first 
IMAP account configured in Thunderbird and injects it into the URL.  If 
you have your IMAP account in Thunderbird configured to use a simple 
username you get something like:


https://www.example.net/SOGo/dav/username/Calendar/personal/

Whereas, if you log into your IMAP account using an email address 
(usern...@example.net) you get:


https://www.example.net/SOGo/dav/usern...@example.net/Calendar/personal/

You next need to check which of these SOGo is configured to expect in 
sogo.conf:


  SOGoUserSources = (
{
  type = ldap;
  CNFieldName = displayName;
  UIDFieldName = mail;
  MailFieldNames = ( mail, otherMailbox );
  baseDN = CN=Users,dc=example,dc=net;
  bindDN = CN=auth-sogo,CN=Users,DC=example,DC=net;
  bindFields = (sAMAccountName, mail);
  bindPassword = strong_password;
  canAuthenticate = YES;
  displayName = Global Address Book;
  hostname = ldap://127.0.0.1:389;
  filter = mail = '*';
  id = directory;
  isAddressBook = YES;
}

The key part here is the UIDFieldName.  If this is configured to expect 
a username, then log into IMAP with a username in Thunderbird.  If it is 
configured to expect an e-mail address, log into IMAP with an e-mail 
address in Thunderbird.


(An alternative way to check is to log into SOGo with a web browser, 
right-click Properties on your personal calendar.  On the Links to this 
Calendar tab you will see the CalDAV URL and be able to tell whether 
your system is configured for username or e-mail address.)


If your users aren't too worried about their local Thunderbird 
preferences, you can simply remove their profile and re-configure it 
using the correct style of username for your system.  Otherwise, the 
following procedure (a bit long winded) is working for me:


1. Start TB.
2. Go to Add-ons and disable both the SOGo Connector and SOGo
   Integrator extensions.
3. Restart TB.
4. Right-click your IMAP account in the tree-list on the left and
   select Settings.  Navigate to Server Settings below your account
   name and update the Username.
5. Move down to Outgoing Server (SMTP) at the bottom of the list and
   Edit your entry.  Update the Username field appropriately and click OK.
6. Close Account Settings by clicking OK.
7. Restart TB and log into your IMAP account when prompted (save
   password with Password Manager, if desired).
8. Click the Address Book toolbar button.  Delete all address books by
   right-clicking and selecting Delete.  Two will remain (local
   personal and collected addresses).
9. Open the Calendar and Unsubscribe from all calendars by
   right-clicking them.  (You may have to create a temporary new local
   calendar to allow the last one to be removed.)
10. Re-enable both the SOGO Connector and SOGO Integrator extensions.
11. Restart TB and log into your SOGo account when prompted (save
   password with Password Manager, if desired).

It is possible that after this procedure you will see two SOGo 
directories in Address Book after this has completed.  (In our case 
called Global Address Book from the displayName = Global Address Book 
line in sogo.conf.)  Work out which one is using the wrong URL by 
checking its Properties and delete it.  (Your personal address book 
title will probably vanish at this stage but do not panic!) Restart TB 
and everything will work normally.


I will update the bug with this information in a while.  I have been 
thinking lots about this as it has been causing me considerable pain on 
three customer sites.  While strictly not a bug (simply a Thunderbird 
mis-configuration) I think the connector should be smarter and ask the 
SOGo back-end for the URL of the resources. This way it would support 
changing the UIDFieldName style without the horrible local Thunderbird 
procedure above.  Does this sound like a sensible enhancement request?


P.S.  Although I have no connection with Inverse I suspect the team have 
been deep in OpenChange integration work for the last few weeks.  I'm 
sure they will catch up here and with the bug reports prior to the next 
release.


Hope this all helps?


Ian.
--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Added Event in TB does not display immediately

2015-05-13 Thread Charles Marcus
On 5/13/2015 7:47 AM, Ian McMichael ian.mcmich...@gmail.com wrote:
 On 13/05/15 10:14, Marc Patermann wrote:
 I created a bug two weeks ago, but it seems there was no further
 activity since. :(
 http://www.sogo.nu/bugs/view.php?id=3154
 I'm very unhappy, there has nothing happened at all in 1.5 month with
 this bug! :(

 Is there any way to change this? 

 Hi Marc,

 Yes, there is a way to change this.  Tanmay (tchaud...@simscale.com)
 spotted what is going on back on 2nd May.  I was away on holiday last
 week but have tested his solution and it works fine for us.

 In summary, the SOGo Connector

Ok, so this is a Connector bug only, not present if you are using
Integrator that should be made very clear.
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Added Event in TB does not display immediately

2015-05-13 Thread Ian McMichael

On 13/05/15 16:13, Charles Marcus wrote:
Ok, so this is a Connector bug only, not present if you are using 
Integrator that should be made very clear.


This is not my experience.  I use both the Connector and Integrator on 
all three of our systems that experienced the problem.  It is entirely a 
username matching error, which could perhaps be documented?


Read my whole message and you will see that it is actually related to 
the use of username/e-mail address on the SOGo back-end, the format of 
which must match the username specified in the Thunderbird IMAP (e-mail) 
account.  When they match, everything works. Otherwise, lots of 404 
errors are logged by the SOGo back-end in response to incorrect 
Cal/CardDAV URLs generated by the Connector. In this case Thunderbird 
gets confused and the incorrect Calendar behaviour occurs.


As I suggest, perhaps an enhancement request against the Connector could 
make it behave more consistently by looking up the correct URL format on 
the back-end?  When you configure an iPhone or Android device with 
CalDAV this is what appears to happen.  Why not extend this to the 
Thunderbird Connector?

--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Added Event in TB does not display immediately

2015-04-15 Thread Charles Marcus
On 4/15/2015 10:40 AM, Tanstaafl tansta...@libertytrek.org wrote:
 But if the event is added directly via Thunderbird/Lightning, it
 should automatically be displayed in Thunderbird/Lightning - Sync
 interval shouldn't have anything to do with it. 

Clarification:

It should show up immediately on the Thunderbird/Computer that added the
Event, and in the Web GUI.

Other Thunderbird instances obviously won't see it until the next Sync
Interval occurs, which is as it should be.

-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Added Event in TB does not display immediately

2015-04-15 Thread Ian McMichael

On 15/04/15 15:40, Tanstaafl wrote:

But if the event is added directly via Thunderbird/Lightning, it should
automatically be displayed in Thunderbird/Lightning - Sync interval
shouldn't have anything to do with it.


I am seeing the same here on the 2.2.17a release with Thunderbird 31.6.0 
(64-bit Linux), Lightning 3.3.2 and SOGo 31.0.1 Connector/Integrator.  I 
get the following warning (may be unrelated) in the Thunderbird log:


[JavaScript Warning: Use of getPrefSafe() is deprecated and will be 
removed with the next release. Use Preferences.get() instead.

1: [chrome://calendar/content/calUtils.js:465] getPrefSafe
2: 
[chrome://sogo-connector/content/calendar/calendar-event-dialog-overlay.js:15] 
SCOnLoad

3: [null:0] null
]

I thought the behaviour was as a result of renaming user accounts on my 
system from simply username to username@domain format. However, I am 
now starting to think something else has changed too...


Any other reports/suggested workarounds much appreciated.
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Added Event in TB does not display immediately

2015-04-15 Thread Tanstaafl
On 4/14/2015 1:56 PM, J. Echter j.ech...@echter-kuechen-elektro.de wrote:
 Am 27.03.2015 um 14:05 schrieb Marc Patermann:
 when I add e new event to the calendar with Lightning 3.3.3 in
 Thunderbird 31.5.0, the event is added successfully to the SOGo server
 2.2.17a. But it is not displayed in Thunderbird/Lightning.

 When I activate the sync manually or restart Thunderbird the event is
 displayed.

 Is this a known bug?
 What can I do about it?
 It is really annoying. :(

 right click on the calendar, click properties.
 
 Here it sync's every 30 mins.
 
 maybe this is your problem.

Not even close.

This would be acceptable for events added via the web GUI.

But if the event is added directly via Thunderbird/Lightning, it should
automatically be displayed in Thunderbird/Lightning - Sync interval
shouldn't have anything to do with it.
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Added Event in TB does not display immediately

2015-04-14 Thread J. Echter
Am 27.03.2015 um 14:05 schrieb Marc Patermann:
 Hi,

 when I add e new event to the calendar with Lightning 3.3.3 in
 Thunderbird 31.5.0, the event is added successfully to the SOGo server
 2.2.17a. But it is not displayed in Thunderbird/Lightning.

 When I activate the sync manually or restart Thunderbird the event is
 displayed.

 Is this a known bug?
 What can I do about it?
 It is really annoying. :(

 Marc
Hi,

right click on the calendar, click properties.

Here it sync's every 30 mins.

maybe this is your problem.

choose a lower sync time.

hope this helps

j.
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Added Event in TB does not display immediately

2015-04-14 Thread Marc Patermann

Hi,

Marc Patermann schrieb (27.03.2015 14:05 Uhr):
when I add e new event to the calendar with Lightning 3.3.3 in 
Thunderbird 31.5.0, the event is added successfully to the SOGo server 
2.2.17a. But it is not displayed in Thunderbird/Lightning.


When I activate the sync manually or restart Thunderbird the event is 
displayed.


Is this a known bug?
What can I do about it?
It is really annoying. :(
I created a bug two weeks ago, but it seems there was no further 
activity since. :(

http://www.sogo.nu/bugs/view.php?id=3154



Marc
--
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] Added Event in TB does not display immediately

2015-03-27 Thread Marc Patermann

Hi,

when I add e new event to the calendar with Lightning 3.3.3 in 
Thunderbird 31.5.0, the event is added successfully to the SOGo server 
2.2.17a. But it is not displayed in Thunderbird/Lightning.


When I activate the sync manually or restart Thunderbird the event is 
displayed.


Is this a known bug?
What can I do about it?
It is really annoying. :(

Marc
--
users@sogo.nu
https://inverse.ca/sogo/lists