You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
attachment_types takes an email string as an input and outputs a list of the MIME type strings corresponding to all its attachments, e.g. ["application/pdf", "text/plain"]. This should be recursive, so that if the email has parts of parts of parts, and those have attachments, those all go into the output list. Might as well sort it in alphabetical order.
mbox_attachments does the same thing at the MBOX level. So given an MBOX string as an input, it returns a list of all the MIME types that appear anywhere in that input MBOX, in alphabetical order.
They can go in their own module called Report, either in Lib or in a separate file called lib/report.ml. The motivation behind putting them in their own module is that it seems likely we will be incorporating a bunch more "report" features into Attachment Converter, and they will eventually turn into command line options, or perhaps a subcommand.
The text was updated successfully, but these errors were encountered:
bufordrat
changed the title
(draft issue) utility function to report unique attachment types found in given mbox archive
Report Feature: Display All Attachment Types
Mar 16, 2022
Report Feature: Display All Attachment Types
For this issue, implement the following two functions that 'query' an email for information:
attachment_types
takes an email string as an input and outputs a list of the MIME type strings corresponding to all its attachments, e.g.["application/pdf", "text/plain"]
. This should be recursive, so that if the email has parts of parts of parts, and those have attachments, those all go into the output list. Might as well sort it in alphabetical order.mbox_attachments
does the same thing at the MBOX level. So given an MBOX string as an input, it returns a list of all the MIME types that appear anywhere in that input MBOX, in alphabetical order.They can go in their own module called
Report
, either inLib
or in a separate file calledlib/report.ml
. The motivation behind putting them in their own module is that it seems likely we will be incorporating a bunch more "report" features into Attachment Converter, and they will eventually turn into command line options, or perhaps a subcommand.The text was updated successfully, but these errors were encountered: