Permalink
Browse files

Save and Retrieve the created date is available for Outlook

  • Loading branch information...
1 parent a104e48 commit 435fcc88082ea6902f05676ef1ca2138e4873ead @skarra committed May 10, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 asynk/contact_ol.py
View
@@ -472,6 +472,11 @@ def _snarf_phones_and_faxes_from_olprops (self, olpd):
self.add_fax_work(('Work', ph))
def _snarf_dates_from_olprops (self, olpd):
+ d = self._get_olprop(olpd, mt.PR_CREATION_TIME)
+ if d:
+ date = pytime_to_yyyy_mm_dd(d)
+ self.set_created(date)
+
d = self._get_olprop(olpd, mt.PR_BIRTHDAY)
if d:
date = pytime_to_yyyy_mm_dd(d)
@@ -710,6 +715,11 @@ def _add_phones_and_faxes_to_olprops (self, olprops):
olprops.append((mt.PR_PRIMARY_FAX_NUMBER, fax_prim))
def _add_dates_to_olprops (self, olprops):
+ cd = self.get_created()
+ if cd:
+ cd = yyyy_mm_dd_to_pytime(cd)
+ olprops.append((mt.PR_CREATION_TIME, cd))
+
bday = self.get_birthday()
if bday:
bday = yyyy_mm_dd_to_pytime(bday)

0 comments on commit 435fcc8

Please sign in to comment.