Open bufordrat opened 1 year 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 CONVERTED
s 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.
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:
The progress bar could say something like this:
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:grep
thembox
for lines containingContent-Disposition
to get the total number of attachmentsgrep
thembox
for lines containingCONVERTED
to get the number of attachments that were put there by our sotware - subtract the second from the first to get the total number of original attachments,Y
X
processing attachment X out of Y