Re: Packages
Re: Packages
- Subject: Re: Packages
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 17 May 2002 22:01:34 -0700
On 5/17/02 9:35 PM, "Paul Berkowitz" <email@hidden> wrote:
>
> If the Entourage file is "some.mbox", make a folder called "temp" in
>
> ~/Library/Mail/Mailboxes/, and then copy some.mbox to temp. Rename the
>
> copy "mbox" and then rename the folder "some.mbox" (Finder won't let you
>
> copy into a .mbox). Mail will automatically build the other files next
>
> time you start it up.
>
>
>
tell application "Finder"
>
set newpackage to make new folder at pathToMailboxes with properties
>
{name:"temp"}
>
set realName to name of theMbox
>
set newMbox to duplicate theMbox to newpackage
>
set name of newMbox to "mbox"
>
set name of newpackage to realName
>
end tell
I should add, for anyone who wants to try this, is that what you end up with
in Mail is absolutely nothing aside from an empty folder. Bill F. mentioned
that Mail uses Unix-style linefeeds - well, what else would you expect?
Entourage, a little more aware than Apple that it operates on a Macintosh
computer, uses carriage returns. A suitable routine for rewriting the mbox
file substituting LF for CR, and negotiating the 4060+ list limitation when
you ask for paragraphs of an immense MBOX file (which may, of course contain
gigantic encoded attachments) does the trick. Done.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >Re: Packages (From: Paul Berkowitz <email@hidden>) |