gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

writephonebook, LDIF: "Data format is not valid" error


From: gnokii
Subject: writephonebook, LDIF: "Data format is not valid" error
Date: Fri, 13 May 2011 01:31:35 +0530

Hello :-)

While using gnokii 0.6.31git (downloaded 5may11) to write a single record LDIF:

address@hidden:~$ cat /home/c/TB.PAB.ldif.cleaned.verite \
    | gnokii --writephonebook --find-free --memory-type ME --ldif
[big snip]
Reading phonebook location 177 from memory 0x05
Message sent: 0x03 / 0x0012
00 01 00 07 01 01 00 01 02 05 00 00 00 00 00 b1 |                 
00 00                                           |                 
Message received: 0x03 / 0x000e
01 63 00 08 00 01 0f 00 00 08 33 00 00 00       |  c        3     
Received message type 03
Reading phonebook location 177 from memory 0x05
Message sent: 0x03 / 0x0012
00 01 00 07 01 01 00 01 02 05 00 00 00 00 00 b1 |                 
00 00                                           |                 
Message received: 0x03 / 0x000e
01 63 00 08 00 01 0f 00 00 08 33 00 00 00       |  c        3     
Received message type 03
Writing phonebook entry V rit  Community...
Message sent: 0x03 / 0x0094
00 01 00 0b 00 01 01 00 00 10 02 05 00 b1 00 00 |                 
00 00 00 00 00 03 47 00 00 26 ff 20 00 56 00 e9 |       G  &   V  
00 72 00 69 00 74 00 e9 00 20 00 43 00 6f 00 6d |  r i t     C o m
00 6d 00 75 00 6e 00 69 00 74 00 79 0b 00 00 24 |  m u n i t y   $
ff 02 00 00 00 1a 00 2b 00 39 00 31 00 34 00 31 |        + 9 1 4 1
00 33 00 32 00 36 00 32 00 32 00 30 00 34 00 35 |  3 2 6 2 2 0 4 5
08 00 00 34 ff 2e 00 76 00 65 00 72 00 69 00 74 |    4 . v e r i t
00 65 00 40 00 61 00 75 00 72 00 6f 00 76 00 69 |  e @ a u r o v i
00 6c 00 6c 00 65 00 2e 00 6f 00 72 00 67 00 2e |  l l e . o r g .
00 69 00 6e                                     |  i n            
Message received: 0x03 / 0x0016
01 63 00 0c 00 01 04 00 00 10 02 00 00 b1 00 00 |  c              
02 02 05 00 00 00                               |                 
Received message type 03
Write Succeeded: memory type: ME, loc: 177, name: V rit  Community, number: 
+914132622045
Write failed (Data format is not valid.): memory type: ME, loc: 2, name: , 
number: 
Serial device: closing device

(the characters represented above by ← showed as e acute on the UTF-8 capable 
urxvt terminal emulator screen)

On the phone an entry had been created with name, phone number and email 
address, no postal address.

The input file was:

address@hidden:~$ cat /home/c/TB.PAB.ldif.cleaned.verite
dn:: Y249VsOpcml0w6kgQ29tbXVuaXR5LG1haWw9dmVyaXRlQGF1cm92aWxsZS5vcmcuaW4=
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonAlpha
givenName:: VsOpcml0w6k=
sn: Community
cn:: VsOpcml0w6kgQ29tbXVuaXR5
mail: address@hidden
modifytimestamp: 0
homePhone: +914132622045
l: Auroville
st: Tamil Nadu
postalCode: 605101
c: India

The input file was created by exporting from Thunderbird and manual cleanup.  
Is further cleanup required?  The "objectclass:" lines?

BTW I also manually removed a long "description::" line from the input file 
because it resulted in gnokii error "utf8_decode/iconv: Argument list too 
long".  What is the limit?  Is it still 61 from 
#define GN_PHONEBOOK_NAME_MAX_LENGTH            61   /* For 6510 */

Best

Charles




reply via email to

[Prev in Thread] Current Thread [Next in Thread]