• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
OT(-ish) Extracting something useful from an email
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OT(-ish) Extracting something useful from an email


  • Subject: OT(-ish) Extracting something useful from an email
  • From: Adam Wuellner <email@hidden>
  • Date: Tue, 14 Jun 2005 09:51:25 -0500

I'm getting forwarded emails from my boss, which show up in my mailbox
as blank messages w/ an attachment named "mime-attachment".
Inspecting the source of the message reveals an HTML document (chock
full of MS office namespace references) which can be extracted and
saved as a separate doc and displayed in a browser and printed.  No
problem there.

Today I get another one that has a PDF attached as well as the
"mime-attachment".  The "mime-attachement" on this one is different,
though.  Some of the characters have been encoded:

<!DOCTYPE=20HTML=20PUBLIC=20\"-//W3C//DTD=20HTML=204.0=20=
Transitional//EN\">=0A<HTML=20xmlns=3D\"http://www.w3.org/TR/REC-html40\"=20=
xmlns:v=20=3D=20=0A\"urn:schemas-microsoft-com:vml\"=20xmlns:o=20=3D=20=0A=
\"urn:schemas-microsoft-com:office:office\"=20xmlns:w=20=3D=20=0A=

Notice all the =20 for spaces, as well as =3D and =0A, and an extra =
at the end of each line...

Is there anyway I can reverse this encoding and return this to useable HTML?

OK, truth be told my boss is sending these to a coworker who is
forwarding them to me to fix, and I have written a script for her to
use instead of sending them to me, but this second form of the HTML is
gumming up the works.

Thanks,

Adam
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: OT(-ish) Extracting something useful from an email
      • From: Adam Wuellner <email@hidden>
  • Prev by Date: Re: OT: Re: it's all true
  • Next by Date: Re: OT(-ish) Extracting something useful from an email
  • Previous by thread: Re: Applescript for 7 year Installation!
  • Next by thread: Re: OT(-ish) Extracting something useful from an email
  • Index(es):
    • Date
    • Thread