gnokii-commit
[Top][All Lists]
Advanced

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

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-27


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-276-g86a6c29
Date: Sun, 10 Jul 2011 15:00:48 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  86a6c29833bfb6eecdc12a777fb68e799db7892c (commit)
      from  8b2a437338cdf8065d6bff391e40c5a70a09f5be (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=86a6c29833bfb6eecdc12a777fb68e799db7892c


commit 86a6c29833bfb6eecdc12a777fb68e799db7892c
Author: Daniele Forsi <address@hidden>
Date:   Sun Jul 10 16:16:47 2011 +0200

    Output the date of DC, MC, RC as the REV property of vcards
    
    According to RFC 2426 the purpose of the REV type is to "specify
    revision information about the current vCard".
    See http://www.ietf.org/rfc/rfc2426.txt section 3.6.4.

diff --git a/ChangeLog b/ChangeLog
index 8501aad..3e60cdd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -26,6 +26,9 @@
       ADR (like in addresses without a PO Box)      (Daniele Forsi)
     o support for compressed messages is not implemented yet
                                                         (Paweł Kot)
+    o make the vcard writer handle also the date property in DC,
+      MC, RC (the reader will ignore it) and ignore X-GNOKII-70 and
+      X-GNOKII-71 (they are part of the N property) (Daniele Forsi)
  * nk6510 driver updates
     o fix calendar handling issues (few off-by-ones)    (Paweł Kot)
     o implement deletecalendarnote for series40 3rd+ Ed (Paweł Kot)
diff --git a/common/vcard.c b/common/vcard.c
index 55994b8..5a521ee 100644
--- a/common/vcard.c
+++ b/common/vcard.c
@@ -227,6 +227,12 @@ GNOKII_API char * gn_phonebook2vcardstr(gn_phonebook_entry 
*entry)
                                entry->subentries[i].data.date.year, 
entry->subentries[i].data.date.month, entry->subentries[i].data.date.day,
                                entry->subentries[i].data.date.hour, 
entry->subentries[i].data.date.minute, entry->subentries[i].data.date.second);
                        break;
+               case GN_PHONEBOOK_ENTRY_Date:
+                       /* This is used when reading DC, MC, RC so the vcard 
*reader* won't read it back */
+                       vcard_append_printf(&str, 
"REV:%04u%02u%02uT%02u%02u%02u",
+                               entry->subentries[i].data.date.year, 
entry->subentries[i].data.date.month, entry->subentries[i].data.date.day,
+                               entry->subentries[i].data.date.hour, 
entry->subentries[i].data.date.minute, entry->subentries[i].data.date.second);
+                       break;
                case GN_PHONEBOOK_ENTRY_ExtGroup:
                        vcard_append_printf(&str, "X-GSM-CALLERGROUPID:%d", 
entry->subentries[i].data.id);
                        break;
@@ -238,7 +244,6 @@ GNOKII_API char * gn_phonebook2vcardstr(gn_phonebook_entry 
*entry)
                        add_slashes(name, entry->subentries[i].data.number, 
sizeof(name), strlen(entry->subentries[i].data.number));
                        vcard_append_printf(&str, "X-WV-ID:%s", name);
                        break;
-               case GN_PHONEBOOK_ENTRY_Date:
                case GN_PHONEBOOK_ENTRY_FirstName:
                case GN_PHONEBOOK_ENTRY_Group:
                case GN_PHONEBOOK_ENTRY_Image:

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    3 +++
 common/vcard.c |    7 ++++++-
 2 files changed, 9 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

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