Editing Importing Windows Mobile contacts

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 3: Line 3:
To import data, we need a backup file created by the approach mentioned in [[Importing data]], the script mentioned in the end of this page and a [[Nokia N900|N900]] (or another Maemo5 device). Power users don't need to follow this precisely, others do:
To import data, we need a backup file created by the approach mentioned in [[Importing data]], the script mentioned in the end of this page and a [[Nokia N900|N900]] (or another Maemo5 device). Power users don't need to follow this precisely, others do:
-
# connect N900 to PC using mass storage mode; from PC, create a directory "datatransfer" on the "flash disk device" - and copy the script (<code>pimbackup2vcf.py</code>) and backup file (e.g. PIMBackup_20091220.pib) to the directory. Unmount and disconnect.
+
# connect N900 to PC using mass storage mode; from PC, create a directory "datatransfer" on the "flash disk device" - and copy the script (pimbackup2vcf.py) and backup file (e.g. PIMBackup_20091220.pib) to the directory. Unmount and disconnect.
# on N900, run xterm
# on N900, run xterm
# <pre>cd /home/user/MyDocs/datatransfer; python pimbackup2vcf.py PIMBackup_20091220.pib contacts.vcf</pre>
# <pre>cd /home/user/MyDocs/datatransfer; python pimbackup2vcf.py PIMBackup_20091220.pib contacts.vcf</pre>
Line 11: Line 11:
== pimbackup2vcf.py ==
== pimbackup2vcf.py ==
-
<source lang="python">
+
<pre>
#!/usr/bin/python2.5
#!/usr/bin/python2.5
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
Line 112: Line 112:
os.remove(TMPFILENAME)
os.remove(TMPFILENAME)
-
</source>
+
</pre>
== Extending the script ==
== Extending the script ==
Line 126: Line 126:
Replace (pay attention to the start and end of the row) above with this code below.
Replace (pay attention to the start and end of the row) above with this code below.
-
<source lang="python">
+
<pre>
def csvline2vcf(row):
def csvline2vcf(row):
    rv=""
    rv=""
Line 160: Line 160:
     return rv
     return rv
-
</source>
+
</pre>
-
 
+
== Note ==
== Note ==
If on the Windows Mobile (WM 6.5.3) the address has a hard return character, the resulting vcf will have broken address field (hard return instead of one row). User might want to review this using text editor first prior to importing.
If on the Windows Mobile (WM 6.5.3) the address has a hard return character, the resulting vcf will have broken address field (hard return instead of one row). User might want to review this using text editor first prior to importing.

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)