• 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
Re: Scripting Mail: Body content as plain text with quotes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Mail: Body content as plain text with quotes


  • Subject: Re: Scripting Mail: Body content as plain text with quotes
  • From: Emmanuel LEVY <email@hidden>
  • Date: Tue, 05 May 2015 10:02:01 +0200

In case it helps Satimage's Mail.osax provides a "decode quotedprintable" command.

decode quotedprintable v
	decode quotedprintable string
	[input encoding string] : a IANA encoding name. The encoding of the quotedprintable chunck (default is "UTF-8")
→ string

Best,
Emmanuel

On May 5, 2015, at 9:31 AM, Christopher Stone wrote:

> On May 05, 2015, at 01:36, Shane Stanley <email@hidden> wrote:
>> I don't think you need to go near Base64. I suspect extracting the first quoted printable part and decoding that will return what the OP wants. Something like this:
> ______________________________________________________________________
>
> Hey Shane,
>
> You're assuming there is a quoted-printable part.
>
> I get some messages that are entirely base64 in the source.
>
> For my own purposes I will have to cover all possibilities.
>
> At the moment my Mail-to-text script just gets the message content and dumps it into a document in BBEdit, but ultimately I want to do better than what Mail presumes the content is.
>
> My experience with QP is that a few find/replaces fails to be comprehensive enough.
>
> --
> Take Care,
> Chris
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: Scripting Mail: Body content as plain text with quotes
      • From: Christopher Stone <email@hidden>
References: 
 >Re: Scripting Mail: Body content as plain text with quotes (From: Simon Forster <email@hidden>)
 >Re: Scripting Mail: Body content as plain text with quotes (From: Christopher Stone <email@hidden>)
 >Re: Scripting Mail: Body content as plain text with quotes (From: Shane Stanley <email@hidden>)
 >Re: Scripting Mail: Body content as plain text with quotes (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Scripting Mail: Body content as plain text with quotes
  • Next by Date: Re: Scripting Mail: Body content as plain text with quotes
  • Previous by thread: Re: Scripting Mail: Body content as plain text with quotes
  • Next by thread: Re: Scripting Mail: Body content as plain text with quotes
  • Index(es):
    • Date
    • Thread