Re: Scripting Apple Mail to strip all but plain text alternative
Re: Scripting Apple Mail to strip all but plain text alternative
- Subject: Re: Scripting Apple Mail to strip all but plain text alternative
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 27 Nov 2008 13:26:58 -0800
- Thread-topic: Scripting Apple Mail to strip all but plain text alternative
On 11/26/08 11:51 AM, "Scott Haneda" <email@hidden> wrote:
>
> Since I can go locate the mail file locally, strip out the non plain
> text parts based on the content disposition, I know it works. The
> trouble is I use IMAP, and a local change in the file system does not
> seem to make it back to the IMAP server.
>
> I am looking for an AppleScript that can strip out the non plain text
> parts, or if possible, set the plain text as default.
I don't script Mail, but I've done the same thing for Entourage. The thing
to understand about IMAP is that your scripts are working on the local copy
of the message downloaded to a cache on your computer. To replace the actual
message on the server, you'll need to duplicate the message to a local
(non-IMAP) mailbox/folder, make the changes there, delete the original, then
duplicate the altered local message to the IMAP mailbox/folder, then delete
the local one you made your changes to. All that should be possible, though
more than likely there's some Mail freakiness to attend to along the way.
--
Paul Berkowitz
_______________________________________________
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