uchicago-library / attachment-converter

Attachment Converter: tool for batch converting attachments in an email mailbox
GNU General Public License v2.0
8 stars 3 forks source link

Attachment Converter should check that its dependencies are met #67

Closed bufordrat closed 6 months ago

bufordrat commented 1 year ago

Attachment Converter currently just assumes that all of its OS-level dependencies are installed, so for example, if it is run on an email containing a JPEG attachment and vips isn't installed, it will try to run vips anyway and we're in the wild west of uncaught exceptions. What it needs to do verify that all OS-level dependencies are installed when it is run and refuse to do anything if it can't find any of them, printing an error message describing which utilities need to be installed.

We'll eventually need to take a careful look at all of Attachment Converter's OS-level dependencies, but for a first stab, we can write code that:

Prelude contains some helpful library functions to check whether OS-level dependencies are installed. I will post more information about that in a follow-up on this issue.

bufordrat commented 1 year ago

Here's the Prelude module: https://www2.lib.uchicago.edu/keith/software/prelude/prelude/Prelude/Prereq/index.html