in reply to Re: Problem in installation of libwin32-0.191
in thread Problem in installation of libwin32-0.191

Hi,
i have to use Win32::OLE package in perl for accesing MS outlook , how can i do that without installing libwin32

Yours, Gokul
  • Comment on Re^2: Problem in installation of libwin32-0.191

Replies are listed 'Best First'.
Re^3: Problem in installation of libwin32-0.191
by davorg (Chancellor) on Dec 10, 2004 at 14:15 UTC

    Umm... well you can't run Outlook on a non-Windows box so I'm not sure how you thought that was going to work anyway.

    Can't you talk directly to your Exchange server (or whatever your email server is) with one of the POP3 modules or something like that?

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

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

      Hi,

      i didnt mean that i want to run Outlook in non -windows box but i want access mails which are in Outlook using Perl ,so i am in need of this package installed .


      yes i can access mails in my POP3 server using Perl(Net::POP3).

      Thanks, Gokul
        i didnt mean that i want to run Outlook in non -windows box but i want access mails which are in Outlook using Perl ,so i am in need of this package installed.
        • Win32::OLE is a Windows-based module. You can only install it on a Windows system.
        • Win32::OLE can only be used to control applications on the same computer, so you would need to be running Outlook on the same system. Outlook only runs on Windows. So you would need to do this from a Windows box.
        • Mail which is "in Outlook" often isn't actually in Outlook at all. You just have a view of data that is actually stored on a central server somewhere. You should look at ways to get at that data rather than looking at the clients.

        Just continually saying that you need something installed won't make it any more possible to install it on an incompatible system.

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

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

Re^3: Problem in installation of libwin32-0.191
by castaway (Parson) on Dec 10, 2004 at 14:17 UTC
    You've misunderstood something then. Win32::OLE is just an interface to Windows OLE services. That is, in order to use it, you actually need the application installed as well. None of this applies to Unix/Linux boxes, it just won't work, I'm afraid.

    What exactly are you trying to access in Outlook? And why via perl on a unix box, can you not install perl/libwin on the Windows box that Outlook is running on?

    C.

      Hi,

      We got some automation stuff which needs us to access the subject of each mail and run scripts according to that..

      That i have to do using perl..
      so i am trying this option of installing libwin32-0.191 and use Win32::OLE

      Thanks,
      Gokul
        We got some automation stuff which needs us to access the subject of each mail and run scripts according to that.

        Aha. No we know what you're actually trying to achieve, we can probably help a bit more.

        You should have these emails sent to an email address which is delivered to a username on the Unix box. You can then use something like Procmail to pass the contents of the email to a Perl program which can parse it and take appropriate action.

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

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

Re^3: Problem in installation of libwin32-0.191
by herveus (Prior) on Dec 10, 2004 at 14:14 UTC
    Howdy!

    I'm not sure how you would do that. What you won't make work is to install libwin32 on a unix box. As it says in the README:

    As the name suggests, all modules in this distribution are Win32-specific. They cannot be used on platforms that do not support the Win32 API.

    Have you tried searching CPAN for other possible solutions?

    yours,
    Michael (a Mac and Unix guy)
Re^3: Problem in installation of libwin32-0.191
by gellyfish (Monsignor) on Dec 10, 2004 at 15:43 UTC

    Ah. If you must run your program on unix you have a number of possible options. If by 'Outlook' you mean mail that is being held in the Exchange server and accessed via Outlook, then you can get access to the messages using the module Email::Folder::IMAP. Or if you are really set on going the OLE Automation route (or you are feeling particularly evil) then you could use 4S4C on a Windows machine to expose the appropriate COM interface via SOAP which can then be accessed from any system that you want via SOAP::Lite in your perl program.

    /J\