From: Jamie C. <jca...@we...> - 2003-07-04 03:03:38
|
Joe Cooper wrote: > Jamie Cameron wrote: > >> 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. > > > We will always have a ~/Junk mbox. This has to exist for all of the > other stuff to work (including IMAP users, etc.). I thought of creating > a symbolic link to that from ~/mail, which also seems to work. Do you > see any trouble with going that route instead? That should work OK as well, as usermin does not use trick of writing to a temp file and then re-naming it to the original mailbox when deleting .. at least, not yet. - Jamie |