Re: [SOGo] Multiple mail fields in LDAP

2015-10-06 Thread Stephen Ingram
On Monday, October 5, 2015, Mathieu Mirmont  wrote:

> On 05/10/15 15:40, Christian Mack wrote:
> >
> > Sorry couldn't find the mozilla bug report, but it is there.
>
> Here's a 13 years old (!) bug that seem to match what you describe:
> https://bugzilla.mozilla.org/show_bug.cgi?id=119199
>
> It looks like if compatibility with Thunderbird/Lightning is required,
> I'd be better off considering the mail attribute to be single-valued and
> move mail aliases to other attributes (mozillaSecondEmail?).
>
> How do you guys generally handle email aliases?
>

We only have one mail. If you use the Netscape schema then you can find
mailAlternateAddress which works great for aliases.

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

Re: [SOGo] Multiple mail fields in LDAP

2015-10-06 Thread mourik jan heupink


On 6-10-2015 4:55, Stephen Ingram wrote:



On Monday, October 5, 2015, Mathieu Mirmont > wrote:


On 05/10/15 15:40, Christian Mack wrote:
>
> Sorry couldn't find the mozilla bug report, but it is there.

Here's a 13 years old (!) bug that seem to match what you describe:
https://bugzilla.mozilla.org/show_bug.cgi?id=119199

It looks like if compatibility with Thunderbird/Lightning is required,
I'd be better off considering the mail attribute to be
single-valued and
move mail aliases to other attributes (mozillaSecondEmail?).

How do you guys generally handle email aliases?



we are using multiple otherMailbox fields in AD. No problems.

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

[SOGo] Multiple mail fields in LDAP

2015-09-24 Thread Mathieu Mirmont
Hi everyone,

I use SOGo with an LDAP user database and my users have multiple "mail"
fields for email aliases. The first email address listed in LDAP is
always the canonical one, the one that should be used everywhere, and
the one that matches their LDAP uid. Generally the canonical mail
address is firstn...@company.com and aliases can be anything but often
firstname.surn...@company.com or f.surn...@company.com for convenience.

This causes problems with SOGo. I have the feeling that sogo reads all
mail fields from the LDAP database, and then does an strcmp() on all of
them to  select which one to use. With my setup it systematically  picks
the one with a dot as second character instead of the first entry.

Can I change this behaviour? I'm fine with recompiling SOGo if  necessary.

Here's an example scenario where this behaviour is problematic:

- In Thunderbird/Lightning the email address that is registered with my
calendar is my canonical email address: firstn...@company.com

- I create an event on Thunderbird and click "Invite Attendees". There
my email address isn't my canonical email address but one of my email
aliases: f.surn...@company.com and I cannot change it (greyed out).

- I invite attendees to my event, using their canonical email addresses
firstn...@company.com. They receive the invitation, accept it, and send
the confirmation email back.

- The confirmation email comes from their canonical email address (the
From: field of the email), but the content of the email refers to them
using one of their email aliases (f.surn...@company.com).

- Thunderbird says "This message contains an update to an existing
event". If I click the "Update" button, the event gets populated with a
new attendee, using the attendee's email alias.

- As a result I get double the number of attendees to my event, half of
them with their canonical email address and without confirmation, and
the other half with an email alias.

Cheers,

-- 
Mathieu Mirmont 



signature.asc
Description: OpenPGP digital signature