- Scanning the body of each message looking for phone numbers.(for messages in plain text format)
- Cleaning up the phone numbers and write them in international format and putting those in the CSV file too.
I have used regex library file to extract numbers from the text and phonenumbers 7.4.2 library file to write them int international format.