Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added stub for parsing Nokia Suite csv file. #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mikolajgolunski
Copy link

Had the same problem but migrating from Symbian Nokia. I got text messages as csv file and managed to get them on my new WP using parts of your code (mainly hash creation). So I fought maybe you'd be interested in incorporating additional functionality.

I added the most essential parts for parsing csv file created by Nokia Suite in a way that should be compatible with the rest of the software. To incorporate it fully probably additional argument should be parsed (input_type) and kind of a dropdown list added on web interface. Also small variables changes should be made to keep everything clear.

Sorry for not providing full, working code but I'm far from being proficient in arguments parsing and web interface (in fact not even a beginner) and I use Python occasionally. So I decided it is safer to just show you additional thing that can be added to your code and may be useful for someone else out there on the Internet.

Added the most essential parts for parsing .csv file created by Nokia Suite in a way that should be compatible with the rest of the software. To incorporate it fully probably additional argument should be parsed (input_type) and kind of a dropdown list added on web interface. Also small variables changes should be made to keep everything clear.
@gpailler
Copy link
Owner

Nice PR. Thanks. I will integrate your code with updated web interface soon. Do you have any CSV sample you can attach to an issue so I can test it?

@mikolajgolunski
Copy link
Author

Added sample CSV to the repository. Changed phone numbers and most of texts but format is identical to what Nokia Suite produces.

date = sms.get('date')
type = sms.get('type') # 1 = received / 2 = sent
body = sms.get('body')
elif input_type == 'csv:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untermined string constant right here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants