Fetch McDonald invoices from mailbox and merge them to one PDF file.
This script will fetch all McDonald invoice pdfs from a pre-set email inbox folder and merge them into one. Mails fetched will be moved to another pre-set email folder.
Dependencepip3 install pypdf2
Create two new folders under
One for handled invoice mails, one for the unhandled.
Create a receiving rule to automatically move McDonald invoice mails to unhandled folder.
Make sure IMAP service is enabled.
unhandledFolder to your own preferences. If you are using other email service than
exmail.qq.com, you are also obliged to set the proper
cd to repository folder and run:python3 concatenatePDF.py