Hi again Marcus,

Your plan is a good idea for increasing privacy, a similar idea was discussed in the guide at http://wiki.contribs.org/Zarafa_Bayesian_Learning (which I should have referenced before, my bad). I didn't include it in my article because it requires an extra user account, although I guess that's not a big problem for most people.

Incidentally, you only need one extra user account, which can have both the spam and non-spam folders. There is a bit of a complication in that by default Zarafa (and probably Outlook) will move messages to the folders rather than copying them. This is fine for spam, of course, because the user almost certainly doesn't want to see it again, but for non-spam there is a problem - they can move the mail into the folder, but they can't get it back out again.

If you haven't got all that many users then one possible solution would be to make a separate subfolder for each, e.g. "user1-nonspam", "user2-nonspam" etc, and set the subfolder to be shared read/write with that user so they can retrieve messages once they've been learnt. If you have a lot of users this isn't going to be practical, of course, in which case the only option is to train users to copy the mail rather than move it (and I must confess I haven't figured out how to do this myself).

With regard to the error you're seeing, try debugging the connection from the command line and seeing what folders are visible, which might help you track down why you're getting the "error finding folder". Use the following commands, substituting things in angle brackets as appropriate:

telnet <server_ip> 143
. login "<username>" "<password>"
. list "" "*"
. logout

You'll get output between each command, after the list command you should get a list of folders which will hopefully help you work out what to put in the perl script. For more information look up "IMAP telnet" in your preferred search engine.

Best of luck, let us know how you get on...

CAPTCHA