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 ( | + | # 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 == | ||
- | < | + | <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) | ||
- | </ | + | </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. | ||
- | < | + | <pre> |
def csvline2vcf(row): | def csvline2vcf(row): | ||
rv="" | rv="" | ||
Line 160: | Line 160: | ||
return rv | return rv | ||
- | </ | + | </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.