Skip to content

Xp-speit2018/concatenate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

concatenate

Fetch McDonald invoices from mailbox and merge them to one PDF file.

Description

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.

demo 1

demo 2

Dependence

pip3 install pypdf2

Config

email side

  • Create two new folders under My Folder.

    One for handled invoice mails, one for the unhandled.

    Example: McDonald_handled and McDonald_unhandled.

    new folders

  • Create a receiving rule to automatically move McDonald invoice mails to unhandled folder.

    rule conditions

    rule actions

  • Make sure IMAP service is enabled.

    IMAP service

script side

  • Rename config.template.json to config.json.

  • Set email, password, handleFolder, unhandledFolder to your own preferences. If you are using other email service than exmail.qq.com, you are also obliged to set the proper IMAP.

    config example

Run

cd to repository folder and run:

python3 concatenatePDF.py

License

MIT

About

Fetch McDonald invoices from mailbox and merge them to one PDF file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages