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

Include ID for Conversion in the Config File #44

Closed nmmull closed 2 years ago

nmmull commented 2 years ago

We've talked about the possibility that we might want to do the same kind of conversion that has already been done, but with a different tool. It also seems generally easier if we have an identifier for the conversions themselves, independent of the shell command. I think the most natural way to do this is to include a required id entry in the config:

%source_type application/pdf
%target_type application/pdf
%shell_command /Users/nmmull/Developer/Repositories/attachment-converter/conversion-scripts/soffice-wrapper.sh -i pdf -o pdf
%id soffice-pdf-to-pdfa

%source_type application/pdf
%target_type text/plain
%shell_command /Users/nmmull/Developer/Repositories/attachment-converter/conversion-scripts/pdftotext-wrapper.sh
%id pdftotext-pdf-to-txt

...