Re: Scripting Mail: Body content as plain text with quotes
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