• 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 Apple Mail to strip all but plain text alternative
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Apple Mail to strip all but plain text alternative


  • Subject: Re: Scripting Apple Mail to strip all but plain text alternative
  • From: Scott Haneda <email@hidden>
  • Date: Thu, 27 Nov 2008 13:33:09 -0800

On Nov 27, 2008, at 1:26 PM, Paul Berkowitz wrote:
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.


Hi Paul, Yes, I have used a number of your AS's in Entourage. The strip html and also, I believe, your script that ran on schedule to set the sender account for mailing lists, were two that I used the most. I was on POP back then, so the strip html one was something that was probably a lot simpler to deal with.

Probably the biggest issue with IMAP and the stripping of HTML, is going to be the potential for lag in the IMAP connection, and making sure, that no matter how flakey the connection is, the operation still happens. I find Apple Mail to be a pretty sub-par IMAP client, hopefully Snow will bring me some love in that regard.

Thanks for the reply, thinking about it now, I have a feeling it is more trouble than it is worth at this time, and to do a subject edit, is going to require the same steps, to copy the original, delete the original, edit in place, and then copy back, and delete the working copy. That is a lot going on.

Thanks again for your input, if anyone else out there has any pointers to a solid resource where Apple Mail Applescripts are stored, I wold love to know, there seems to be a shortage of scripts right now.
--
Scott


_______________________________________________
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
References: 
 >Re: Scripting Apple Mail to strip all but plain text alternative (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Scripting Apple Mail to strip all but plain text alternative
  • Next by Date: [ann] Python appscript 0.19.0 (beta 1) released
  • Previous by thread: Re: Scripting Apple Mail to strip all but plain text alternative
  • Next by thread: Re: AppleScript-Users Digest, Vol 5, Issue 628
  • Index(es):
    • Date
    • Thread