Re: Adding a message to a mailbox in Mail
Re: Adding a message to a mailbox in Mail
- Subject: Re: Adding a message to a mailbox in Mail
- From: Thierry Faucounau <email@hidden>
- Date: Wed, 2 Oct 2002 09:44:52 +0200
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.