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

Progress bar shouldn't print anything if it isn't modifying an attachment. #71

Closed bufordrat closed 5 months ago

bufordrat commented 1 year ago

Currently, the Attachment Converter progress bar prints a before/after statement for every email, including those with no attachments and those with attachments it doesn't modify:

> attc < input.mbox > output.mbox
Parsing email...
Processing email with structure...
=================================
Multipart
|-- Body
=================================
Email now has structure...
=================================
Multipart
|-- Body
=================================
Processing complete.
Parsing email...
Processing email with structure...
=================================
Multipart
|-- Body
=================================
Email now has structure...
=================================
Multipart
|-- Body
=================================
Processing complete.
Parsing email...
Processing email with structure...
=================================
Mulptipart
|-- Body
=================================
Email now has structure...
=================================
Multipart
|-- Body
=================================
Processing complete.

Etc. We would like to hush these progress bar messages for emails with no attachments and/or with unmodified attachments, so that the progress bar only displays the before/after skeletons when the after skeletons introduce new converted copies.

nmmull commented 5 months ago

This was not auto-closed so closing it manually.