Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Error creating mailbox / moving message' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Error creating mailbox / moving message
Authored by: NewEd on Aug 25, '04 10:50:37PM

This is a great feature for such a script.

But I cannnot use it.

Everytime I have test it, I get the error message that the mailbox cannot be created. (The dialogue coded into the script returns: "Error creating the mailbox: "...)

Even if I choose an existing mailbox, the same error dialogue appears.

Any advice for what might be wrong? I very much want to be able to use this.



[ Reply to This | # ]
Fix for POP accounts
Authored by: NewEd on Aug 26, '04 01:03:57AM

I have been in email contact with Paul (the original submitter of this hint) about problems I was having with getting it to run with my POP accounts. (The above comment.)
He pointed out that the key is removing the reference to "theAccount" (an IMAP feature).

The three lines that therefore need to be changed are:

set mboxName to mailbox named theMailbox of account theAccountName
to
set mboxName to mailbox named theMailbox

&

tell theAccount to make new mailbox with properties {name:theMailbox}
to
make new mailbox with properties {name:theMailbox}

&

move the theMsg to mailbox theMailbox of account theAccountName
to
move the theMsg to mailbox theMailbox


I hope this helps anyone else using POP accounts!

Thanks.




[ Reply to This | # ]
Fix for POP accounts
Authored by: pfschill on Aug 26, '04 11:20:39AM

I put up a modified version that now has an option "storeLocally" Just set it to 1 if you use POP and it will store the messages "On My Mac" rather than remotely on the IMAP account.



[ Reply to This | # ]