watch the database (probably within a thread) for new documents. Use the requests library to 'download' the file, and pushed it to mayan-edms by calling the upload_single_file() function (the requests lib will only actually download the file when the upload_single_file() function is called to prevent the need to transfer the data twice).
Make sure to either delete the entry within the database, or flag it as read (probably want to flag it).
watch the database (probably within a thread) for new documents. Use the requests library to 'download' the file, and pushed it to mayan-edms by calling the upload_single_file() function (the requests lib will only actually download the file when the upload_single_file() function is called to prevent the need to transfer the data twice).
Make sure to either delete the entry within the database, or flag it as read (probably want to flag it).