Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Mail::Internet on Win32?

by BrowserUk (Patriarch)
on Jun 27, 2003 at 15:54 UTC ( #269635=note: print w/replies, xml ) Need Help??


in reply to Mail::Internet on Win32?

Try using Data::Dumper on the return from new().

print Dumper $mail; to see if the is anything useful in there.

I took a quick look at the source, and it would appear that new() returns a valid handle regardless of whether it managed to read anything or not. In fact, from my cursory glance, I couldn't see much in the way of error handling/reporting at all, but it maybe that this is buried further down in the hierachy of modules.

You'd think that you would get some indication of whether it failed to read the from file handle supplied. I couldn't see anything mentioned about what happens in the event of failure nor how to test for same?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


Replies are listed 'Best First'.
Re: Re: Mail::Internet on Win32?
by AssFace (Pilgrim) on Jun 27, 2003 at 16:22 UTC
    I added that line and sure enough, it seems to only be populating the 'mail_inet_body', but then that has everything in it - headers and the body.

    Judging from a comment I see here below this, perhaps Exchange doesn't format e-mail properly for this to read it, or perhaps my code in the way that it outputs it has somehow messed it up?

    -------------------------------------------------------------------
    There are some odd things afoot now, in the Villa Straylight.

      Basically what you are saying is that an MS product doesn't store it's data in the accepted internet standard format (RFC822).

      Um...Whatta surprise:)

      You might want to take a look at Win32::Exchange and Win32::Exchange::Mailbox. They maybe more in tune with your needs.

      Best of luck.


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://269635]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2022-01-20 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (56 votes). Check out past polls.

    Notices?