[PATCH] My Custom MailCleaner Addons

Users tips and ideas

Moderators: FlorianB, Pascal, bourgeois, mentor

User avatar
jordant
Posts: 218
Joined: Sat Sep 16, 2006 2:48 pm
Location: Perth, Western Australia

[PATCH] My Custom MailCleaner Addons

Postby jordant » Tue Nov 21, 2006 3:53 am

Update: Does not work with patch 2007012801 or higher - will be fixed in the future.

A while back I started adding custom features into MailCleaner.
As the list of features wanted/applied grew I decided to roll them into one simple patch and give it back to the community :)

List of features include:
- Spam Action: Header
- Spam Action: Quarantine High, Tag Low
- Help pages written for each new feature

The patch applies cleanly to the latest mailcleaner update and I will keep it in sync in the future

Instructions to add this feature are as follows:

!WARNING! This is a third party, unofficial, unsupported patch. it may break your install completely - if it does, its your own problem

OK, so to start there are some requirements before applying the patch.

1. You must have already applied all official patches upto 2006111701 - see http://www.mailcleaner.org/doku.php/documentation:updates for instructions. Also this may not work with later released patches (it may even be included!)

2. Download my patch.

Code: Select all

mailcleaner:~# wget http://waix.blue-ferret.com.au/mailcleaner/mailcleaner-addons.patch


3. Test the patch will work, but dont really apply it.

Code: Select all

mailcleaner:~# patch -b --dry-run -p0 < mailcleaner-addons.patch
patching file /usr/mailcleaner/scripts/exim/spam_script.pl
patching file /usr/mailcleaner/www/admin/htdocs/domainlist.php
patching file /usr/mailcleaner/www/admin/htdocs/emails.php
patching file /usr/mailcleaner/www/admin/htdocs/lang/en/help.php
patching file /usr/mailcleaner/www/admin/htdocs/lang/en/texts.php
patching file /usr/mailcleaner/www/classes/user/Email.php
patching file /usr/mailcleaner/www/user/htdocs/lang/en/support.txt
patching file /usr/mailcleaner/www/user/htdocs/lang/en/texts.php


4. If it looks like the above, then really apply it.

Code: Select all

mailcleaner:~# patch -b -p0 < mailcleaner-addons.patch


If for some reason anything goes wrong, or you want to un-install the patch, simply rename the .orig files to there original filename.

Once installed you will find that when editing a domain in "View and Manage" there will be a new options to "Action on spams".

If you find any bugs/problems please post in THIS THREAD ONLY as its not Oliviers fault and he will NOT help you!

Enjoy.
Last edited by jordant on Mon Sep 10, 2007 5:30 am, edited 2 times in total.
User avatar
Freek
Posts: 64
Joined: Tue Oct 31, 2006 6:22 am
Location: Arnhem, the Netherlands
Contact:

Re: [PATCH] My Custom MailCleaner Addons

Postby Freek » Tue Nov 21, 2006 7:41 am

jordant wrote:
If you find any bugs/problems please post in THIS THREAD ONLY as its not Oliviers fault and he will NOT help you!

Enjoy.


I applied the patch and as far as i can see it works like a charm. I'll test it a little further and if anything comes up i'll let you know.
Last edited by Freek on Tue Nov 21, 2006 9:01 am, edited 1 time in total.
****************************
* Mondays are the potholes of life *
****************************
olivier
Posts: 1348
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Postby olivier » Tue Nov 21, 2006 9:00 am

many thanks for the patch jordant ! I haven't had time yet to really test this to see if I can include it, but be sure I'll get it a chance !
User avatar
Freek
Posts: 64
Joined: Tue Oct 31, 2006 6:22 am
Location: Arnhem, the Netherlands
Contact:

Postby Freek » Tue Nov 21, 2006 9:04 am

Oliver,

Maybe it's a idea to open a seperate forum section for this kind of 3rd party addons/adaptions where people can post their self made addons.
****************************

* Mondays are the potholes of life *

****************************
maypower
Posts: 26
Joined: Thu Nov 30, 2006 3:30 am

Postby maypower » Thu Nov 30, 2006 3:52 am

good job

i deep deep love it .
maypower
Posts: 26
Joined: Thu Nov 30, 2006 3:30 am

Postby maypower » Thu Nov 30, 2006 11:39 am

Quarantine High, Tag Low

what 's score is high .and low?

if admin can to modify it ,the function will perfect.
User avatar
jordant
Posts: 218
Joined: Sat Sep 16, 2006 2:48 pm
Location: Perth, Western Australia

Postby jordant » Thu Nov 30, 2006 12:04 pm

High score is 20 (or higher)
This variable is hard coded and cannot be changed through the web interface and I have no intention of adding such a feature.
User avatar
suhasingale
Posts: 298
Joined: Mon Nov 13, 2006 2:30 pm
Location: India
Contact:

Postby suhasingale » Thu Nov 30, 2006 12:06 pm

And what is the score for low.
User avatar
jordant
Posts: 218
Joined: Sat Sep 16, 2006 2:48 pm
Location: Perth, Western Australia

Postby jordant » Thu Nov 30, 2006 12:15 pm

Anything detected as spam by mailscanner thats under 20
By default mailscanners required spam score is 5
User avatar
suhasingale
Posts: 298
Joined: Mon Nov 13, 2006 2:30 pm
Location: India
Contact:

Postby suhasingale » Thu Nov 30, 2006 12:21 pm

Can you please make it customizable so that users can decide their own score for High and Low.
User avatar
jordant
Posts: 218
Joined: Sat Sep 16, 2006 2:48 pm
Location: Perth, Western Australia

Postby jordant » Thu Nov 30, 2006 12:47 pm

No, because:

A) low score is taken from mailscanner, which has nothing to do with my patch - ask Olivier to provide a frontend for this

B) In order to provide a frontend to the high score I would need to modify the mailcleaner mysql database (master & slave) and heavily modify the web scripts - this would significantly break any updates that you apply to mailcleaner

So until this becomes official you're stuck without a frontend, sorry.
maypower
Posts: 26
Joined: Thu Nov 30, 2006 3:30 am

Postby maypower » Thu Nov 30, 2006 3:52 pm

when score =>20 .quantatine it.

5<score<20 tag it .

<5 then pass it .

?
User avatar
suhasingale
Posts: 298
Joined: Mon Nov 13, 2006 2:30 pm
Location: India
Contact:

Postby suhasingale » Thu Nov 30, 2006 5:05 pm

maypower wrote:when score =>20 .quantatine it.

5<score<20 tag it .

<5 then pass it .

?


Yes. Correct.
User avatar
jordant
Posts: 218
Joined: Sat Sep 16, 2006 2:48 pm
Location: Perth, Western Australia

Postby jordant » Fri Dec 01, 2006 9:10 am

Please keep this thread on-topic, off-topic posts will be removed.
User avatar
jordant
Posts: 218
Joined: Sat Sep 16, 2006 2:48 pm
Location: Perth, Western Australia

Postby jordant » Mon Sep 10, 2007 5:33 am

Updated URL for downloads. check original post for new link.

Return to “Tips”

Who is online

Users browsing this forum: No registered users and 1 guest