From: Joe C. <jo...@sw...> - 2003-07-04 00:35:11
|
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? 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? Thanks! -- Joe Cooper <jo...@sw...> Web caching appliances and support. http://www.swelltech.com |
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 |
From: Joe C. <jo...@sw...> - 2003-07-04 02:26:44
|
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? >> 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 .. Ok. Thanks for the quick reply, Jamie! -- Joe Cooper <jo...@sw...> Web caching appliances and support. http://www.swelltech.com |
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 |