in reply to Re: Using MIME::Tools
in thread Using MIME::Tools

Hi AtlantaGeek,

The way I am doing it is to pipe emails to the script, I'm not sure how to include the code above ..

..what does the body get stored in from your above snippet?

Replies are listed 'Best First'.
Re: Re: Re: Using MIME::Tools
by atlantageek (Monk) on Nov 24, 2001 at 02:40 UTC
    I'm sorry, $MIME_entity and $entity are the same variable. I was copying code from an existing application that I have. As long as you have the MIME_entity object created the open subroutine should work. Here you are letting the MIME::Parser parse the body of the message as well as the header.
    ----
    I always wanted to be somebody... I guess I should have been more specific.
      Hi Atlanta, I have included the above piece of code in my script but unfortunately its still getting the whole email.. I need to store it in a database so I need to strip out the bit around the body.. In the code above do i still use the tag $@body ?