Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding a message to a mailbox in Mail



Hi All,

just to end my little saga I have a workaround now, it's not great but seems to be functioning.

After asking the user if it is ok to Quit Mail, I create a new folder in the ~/Library/Mail/Mailboxes/ directory naming it <mailbox name>.mbox (checking for conflicts and all, this is done from Obj-C code). In that folder I place the mbox format file with the name mbox.

I then launch Maill.app and can set the very limited set of message properties using AppleScript of the form:

set currMbox to mailbox "test"
set is read of message 1 of currMbox to true

Right now the only thing I do is set whether the message had been read since that is really all that is offered post creation. It would be nice to have access to a couple other properties like whether the message was replied to/forwarded as well as its priority (although I think Mail still does not support message priorities).

It does save the user from having to perform the import by hand.

Thanks everyone for your help,

Thierry
_______________________________________________
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: Adding a message to a mailbox in Mail (From: Philip Aker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.