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

9 spec out configuration file for attachment converter #19

Closed nmmull closed 2 years ago

nmmull commented 2 years ago

Config file reading is done. A couple notes:

I'm sure there's more...anyway, for review, the outline is of new stuff is:

nmmull commented 2 years ago

I definitely lied, the paths have to be absolute for this to work, I'm going to fix this, which might requirer a slightly larger change.

nmmull commented 2 years ago

pushed a very simple script for constructing a default configuration. I'm starting to see now why we want it hard coded, I don't know how to naturally construct the absolute paths in the OCaml code in order to create a default config file on the fly. Hopefully this dumb solution is alright for now.

waclena commented 2 years ago

Nathan Mull @.***> writes:

pushed a very simple script for constructing a default configuration. I'm starting to see now why we want it hard coded, I don't know how to naturally construct the absolute paths in the OCaml code in order to create a default config file on the fly. Hopefully this dumb solution is alright for now.

Not sure if by "how to naturally construct the absolute paths" you're really talking about file paths and not high-level config file stuff. But if the former, note the (shockingly!) undocumented (oops) File.components and File.coalesce commands in Prelude:

File.components "/home/keith/src/prelude";;

Better than using Prelude.String.split (= Prelude.split) for the special handling of the root /.