gnokii-users
[Top][All Lists]
Advanced

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

Re: writephonebook vcf, ldiff


From: Pawel Kot
Subject: Re: writephonebook vcf, ldiff
Date: Sun, 12 Sep 2004 20:25:12 +0200 (CEST)

On Sun, 12 Sep 2004, Oliver Jusinger wrote:

> cat addressbook.ldif |  gnokii --writephonebook --find-free -l -m ME
> and cat addressbook.vcf | gnokii --writephonebook --find-free -v -m ME
>
> however asks for overwrite y/n, although i say --find-free to prevent
> this. it seems that this parameter is just used when writing raw data?

The following patch should fix it.
--- common/phones/nk6510.c~     2004-09-12 19:53:33.000000000 +0200
+++ common/phones/nk6510.c      2004-09-12 20:20:16.000000000 +0200
@@ -1507,6 +1507,9 @@
                        }
                }
                dprintf("Received phonebook info\n");
+               if (data->phonebook_entry) {
+                       data->phonebook_entry->empty = false;
+               }
                blocks     = message[21];
                return phonebook_decode(message + 22, length - 21, data, 
blocks, message[11], 12);
        case 0x0c: /* Write memory location */

> using --overwrite instead --find-free puts every adress in my files on
> the first place of my mobile addressbook. the result is, that after
> writing only the last address exists on my mobile.

The above patch should also fix this issue.

pkot
-- 
p k o t a t b e z s e n s u d o t p l
http://www.gnokii.org/




reply via email to

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