Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by idnopheq (Chaplain)
on Sep 24, 2001 at 21:14 UTC ( [id://114372]=note: print w/replies, xml ) Need Help??


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

UPDATE: oops. I meant to quote Is there anyway I can stop this merging of files using MIMELITE?

IIRC, this is how MIME works. It's all essentally text, with MIME boundaries between component parts. A MIME-capable client will render the attachment files as seperate with pretty little icons, but viewing them raw will show it all "as <insert your deity here> intended".

However, maybe I'm missing something as I often do ( as it is Monday right now where I come from ). So, what is MIME::Lite doing or not doing that you require?

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

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

Replies are listed 'Best First'.
Re: Re: Why is MIME::Lite not processing my attachments properly?
by kleinbiker7 (Sexton) on Sep 24, 2001 at 21:35 UTC
    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" ???

    Thanks!

    Robert

      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.

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

      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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-12-03 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found