C-Command Software Forum

TrainSpam Folder not working

I get the following error message:

SpamSieve [Apple Mail Remote Training] Error training from account “Personal”: Mail got an error: Can’t get mailbox “TrainSpam” of account “Personal”.

Here’s my folder setup:

Screen Shot 2016-05-18 at 10.32.48 AM.png

When SpamSieve runs normally, the Spam emails go into the Spam folder.

The problem seems to be that your TrainSpam mailbox is inside the Junk mailbox. It should instead be at the top level of your IMAP account.

Is it possible to leave it where it is with a change to the script? The SPAM folder is in the Junk Mailbox as well, and it is found properly.

I don’t think the Spam mailbox inside the Junk mailbox will be found by the “Train as Spam” command or by the “Remote Training” script. If you know how to write scripts, you could modify the script to support whatever layout you want. However, I recommend using the standard layout so that you are able to easily take advantage of future updates to the script.