Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Re: Why is MIME::Lite not processing my attachments properly?

by kleinbiker7 (Sexton)
on Sep 24, 2001 at 21:35 UTC ( #114375=note: print w/replies, xml ) Need Help??

in reply to Re: Why is MIME::Lite not processing my attachments properly?
in thread Why is MIME::Lite not processing my attachments properly?

Thanks for responding.

Suppose I have 4 files:

file1 = "Red"
file2 = "Blue"
file3 = "Green"

When I run my program, I get an email with 3 attachments on it.

When I open Attachment 1, it correctly says "Red"
When I open Attachment 2, it correctly says "Blue", etc.

However when I view the source for Attachment 1, it reads "RedBlueGreen"...IE the contents of all 3 files. So how can I get the View Source to only read "Red" and not "RedGreenBlue" ???



  • Comment on Re: Re: Why is MIME::Lite not processing my attachments properly?

Replies are listed 'Best First'.
Re: Re: Re: Why is MIME::Lite not processing my attachments properly?
by idnopheq (Chaplain) on Sep 24, 2001 at 22:04 UTC
    Ah! The "View Soure" capability likely does not employ any kind of MIME processing. This would make it similar to a "raw" output.

    I tried this on my Mozilla Mail client, and indeed I saw all of the attachments as you describe. IMHO this is more to do with the browser/client than the MIME protocol. In fact, back in the days when I used GNUS in EMACS to read my email, it behaved this way by default.

    Apply yourself to new problems without preparation, develop confidence in your ability to to meet situations as they arrise.

Ra: Why is MIME::Lite not processing my attachments properly?
by baku (Scribe) on Sep 24, 2001 at 22:31 UTC

    Actually, I'm afraid this is not a Perl question. Is Mozilla written in C, I think?

    What you're seeing is exactly what (Mozilla thinks) you're asking for, even if it isn't what you meant to ask for. The "source" you're seeing is the "source of this message," not the "source of this part." You're viewing the MIME source, which (as it happens) is 100% identical to the typical text/plain source, and 99% the same as typical text/html source, but can potentially be quite different - e.g. a base64-encoded text/plain message is entirely illegible (to me!) in source form.

    The only way to change this, AFAIK, would be to change the behaviour of the MUA - i.e. Netscape. Since you can't directly change Netscape, it becomes a C issue -- you'd have to contribute to Mozilla and add an option such as "view source of only this part."

    In the alternative, save a copy of the part (i.e. in this case attachment) to your desktop, open it back up, and view/source on it.

    Appendix: Can anyone give a counter-example of a multipart message whose view/source does show only a single part? E.G. does it view only a single part if you read by way of a window viewing only that single part, or some other behaviour I don't know about? I'm afraid Netscape/Mozilla mail steadfastly refuses to work for my mailbox, so I can't confirm 100% that there's not something like this hidden in the UI somewheres...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://114375]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2018-07-23 18:01 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (472 votes). Check out past polls.