Job description
Create a standalone app (executed from command line) which will:
1) connect to the gmail account (gmail credentials in config file)
2) fetch all the emails with attachments for given month (month configurable in the config file)
3) save the attachments in folder on google drive (folder path configurable in config file, google drive directory will be shared with the application)
3a) each file should be saved in the google drive with a prefix which equals to sender email: $path_to_the_google_drive/2023/08/somedude@gmail.com_attachment.pdf
(this will avoid overriding files with the same name, which has been send by different people)
3b) app should check if same file is already present, if so file should be overwritten (as google drive allows duplicate files with the same file name)
4) return to the command line the list of files which has been pushed to google drive
Application will be executed once a month to pull all the invoices from the gmail mailbox and store them in the dedicated google drive folder for the accountant.