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

Add percentage complete info to progress bar #65

Open bufordrat opened 1 year ago

bufordrat commented 1 year ago

Add Progress to Completion Status to Progress Bar

A nice enhancement of our current progress bar would be to have it display the number of attachments it has already converted vs. the total number of attachments it has to convert. This feature would probably only make sense when the application is run standard mode (i.e. in mbox processing mode).

For example, instead of saying this:

Processing complete.

The progress bar could say something like this:

Attachment 14/20 has finished processing.

Etc. I leave the fine points of prose style up to the developer assigned to this feature.

Reuse code from report.ml?

We discussed the possibility of reusing some of the the code from the Report module. Without going into detail here, the rough strategy could be:

nmmull commented 1 week ago

For prosperities sake, as I'm thinking about this now, the solution given above does not work. It is possible for an attachment to be converted multiple times, so there may be two CONVERTEDs for a single Content-Disposition. That said, it may be worthwhile to put more information into the X-Attachment-Converter field so that we can more easily do this calculation.