jalewis2 has asked for the wisdom of the Perl Monks concerning the following question:

I have a knowledge base that is created from email. It is very handy, but I want to expand on it.

I am using this prog for creating the KB. http://arts.sourceforge.net

Now, I want to be able to send attachments also. The goal would be to have the attachments pulled from the email, stored in a directory and linked in the KB entry. I was hoping for a code sample that I could plug into my current setup, but I can't find any examples. Has anyone done this?
  • Comment on Creating a knowledgebase/library from email

Replies are listed 'Best First'.
Re: Creating a knowledgebase/library from email
by davorg (Chancellor) on Dec 14, 2001 at 15:28 UTC

    You can pull attachments out of emails using the MIME::Parser module.

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

Re: Creating a knowledgebase/library from email
by BazB (Priest) on Dec 14, 2001 at 19:33 UTC

    It took me a little while to track down documentation on using MIME::Tools (which includes MIME::Parser and MIME::Entity) when I needed it for a project.

    The module author has copious information at ZeeGee.com

    Maybe I was just a bit slow, but it should help.

    Cheers

    Baz.

Re: Creating a knowledgebase/library from email
by lachoy (Parson) on Dec 14, 2001 at 20:12 UTC

    Ken Williams gave an interesting talk at YAPC::NA 2001 about using the AI::Categorize module with incoming questions for the Math Forum. He has his slides and talk online for you to check out.

    There's also a budding Perl Knowledge Base project that you might be interested in.

    Chris
    M-x auto-bs-mode