From: Jamie C. <jca...@we...> - 2003-07-04 00:49:11
|
Joe Cooper wrote: > Hi Jamie, > > I have developed a spam filter Usermin module (frontend for SpamBayes, > SpamBouncer, and some custom Procmail recipes), and the way it is > trained is by moving spams into a Junk mbox in the users home directory. > > If I add this folder manually to the Usermin folders using the Manage > folders page, things work fine, and I'm able to dump spams into the box > using Usermin. > > Is there a reasonably standard way I can add this box to the boxes > managed by the mailbox module when the user first enables the spam > filtering module? I see the following in the .usermin/mailbox/config file: > > mailboxes=/home/joe/Junk > folder_/home/joe/Junk=Junk > > Is this all Usermin needs? Is there a routine I should call, or just > add it via parsing the config file myself? That's all Usermin needs, and there is no function for simplifying folder addition (although the read_file and write_file standard functions make editing name=value files like that easier). By the way, you could also add a folder by creating a file in ~/mail , since everything in that directory is automatically picked up by Usermin. > I notice there is also an index cache file in the directory...is that > generated automatically, or do I need to trigger the first generation of > it when adding the folder? Those index files get generated automatically to speed up access to the mailbox .. - Jamie |