mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-13 10:53:18 +00:00
See ChangeLog
Monotone-Parent: bf61903ccf7c6cc0d2ac1b5e7741da7a1e6dd891 Monotone-Revision: 815204fe1b8d9f62f875d9e22c4883aede5c1e8d Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2010-04-05T20:17:39 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -395,6 +395,28 @@
|
||||
[self _setSnapshotValue: @"pager"
|
||||
to: [self _simpleValueForType: @"pager" inArray: elements]];
|
||||
|
||||
// If we don't have a "home" and "work" phone number but
|
||||
// we have a "voice" one defined, we set it to the "work" value
|
||||
// This can happen when we have :
|
||||
// VERSION:2.1
|
||||
// N:name;surname;;;;
|
||||
// TEL;VOICE;HOME:
|
||||
// TEL;VOICE;WORK:
|
||||
// TEL;PAGER:
|
||||
// TEL;FAX;WORK:
|
||||
// TEL;CELL:514 123 1234
|
||||
// TEL;VOICE:450 456 6789
|
||||
// ADR;HOME:;;;;;;
|
||||
// ADR;WORK:;;;;;;
|
||||
// ADR:;;;;;;
|
||||
if ([[snapshot objectForKey: @"telephoneNumber"] length] == 0 &&
|
||||
[[snapshot objectForKey: @"homeTelephoneNumber"] length] == 0 &&
|
||||
[elements count] > 0)
|
||||
{
|
||||
[self _setSnapshotValue: @"telephoneNumber"
|
||||
to: [self _simpleValueForType: @"voice" inArray: elements]];
|
||||
}
|
||||
|
||||
[self _setupEmailFields];
|
||||
|
||||
[self _setSnapshotValue: @"screenName"
|
||||
|
||||
Reference in New Issue
Block a user