in reply to Re^4: Parsing an email
in thread Parsing an email

OK. I've pawed through the distro and, as warned, I've run headlong into
Installing File-LibMagic Installing File-LibMagic requires that you have the *libmagic.so* libr +ary and the *magic.h* header file installed.
But it doesn't say *HOW*. I did a web search and I was only able to find libmagic.so for various Unix versions. Nothing for windows. and some more poking around {since I didn't know what a .so file is} tells me
What is a SO file? An SO file is a shared library used by programs ins +talled on the Linux and Android operating systems. It contains common + program functions and logic that multiple programs require access to +.
I'm guessing that that likely means you can't run Corriel on Windows. sigh... I'll give Mail::Box another look.

Replies are listed 'Best First'.
Re^6: Parsing an email
by swl (Prior) on Jan 11, 2022 at 05:12 UTC

    This might be useful, although the instruction to drop files into C:\Windows\System32 is not something I would follow.

    https://github.com/hey-red/Mime/issues/9

    Update: Although there is an Alien package Alien::LibMagic which will get you the DLL to link against when compiling File::LibMagic.

    Update 2: ...although compilation of libmagic needs libgnurx so the Alien does not work on my Windows machine. One could develop an Alien::libgnurx but I suspect that would simply be the start of a journey down a rabbit hole of dependencies...

Re^6: Parsing an email
by Fletch (Bishop) on Jan 10, 2022 at 20:09 UTC

    Ew. Yeah no clue, don't really do windows (especially not building stuff there; if I do I use cygwin which is back to *NIX-y stuff). Did find https://github.com/nscaife/file-windows which looks to maybe be a port of the library that has a DLL version (which would be what you'd need on wintendo rather than an shared object ".so" file) but . . . /shrug

    So yeah Mail::Box may be the simpler route at this point if it installs cleaner for you.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.