Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: Knuddi on April 02, 2009, 01:05:48 PM

Title: [Announce] Updated sme-unjunkmgr
Post by: Knuddi on April 02, 2009, 01:05:48 PM
The UnJunk Manager has been updated based on feedback from a great deal of users (thanks for the feedback).

Updates:

Installation/Upgrade:
Code: [Select]
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/swerts-knudsen/SME7/UnJunkMgr/sme-unjunkmgr-1.1.0-1.noarch.rpm
yum  --enablerepo=smecontribs --enablerepo=base localinstall sme-unjunkmgr-1.1.0-1.noarch.rpm

I have updated the Wiki with all the new configuration parameters.
http://wiki.contribs.org/Sme-unjunkmgr

Enjoy,
Jesper
Title: Re: [Announce] Updated sme-unjunkmgr
Post by: jumba on April 02, 2009, 07:40:50 PM
Great!

What would be the correct way to update from sme-unjunkmgr-1.0.0-1 ???
Title: Re: [Announce] Updated sme-unjunkmgr
Post by: Knuddi on April 02, 2009, 08:22:24 PM
You change the "localinstall" to a "localupdate"

Code: [Select]
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/swerts-knudsen/SME7/UnJunkMgr/sme-unjunkmgr-1.1.0-1.noarch.rpm
yum  --enablerepo=smecontribs --enablerepo=base localupdate sme-unjunkmgr-1.1.0-1.noarch.rpm

/Jesper
Title: Re: [Announce] Updated sme-unjunkmgr
Post by: jumba on April 02, 2009, 08:33:38 PM
Yes of course, - stupid me ;) ;) ;)

Thanks for a very quick answer and a great contrib :pint:
Title: Re: [Announce] Updated sme-unjunkmgr
Post by: mdo on April 03, 2009, 06:52:52 AM
Hi,

Thanks for your work with this. Not sure whether you want us to report problems here?

I uninstalled the previous version and installed the new version early today and today's (Friday) batch job at 1pm failed with the following email:

syntax error at /usr/local/unjunkmgr/spamreminder.pl line 112, near ") {"
Execution of /usr/local/unjunkmgr/spamreminder.pl aborted due to compilation errors.
Title: Re: [Announce] Updated sme-unjunkmgr
Post by: Knuddi on April 03, 2009, 08:02:40 PM
Found that one - seems that I am not able to spell to "if" :-( I have created a new release which has been sync'ed to the mirrors now.

http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/swerts-knudsen/SME7/UnJunkMgr/sme-unjunkmgr-1.1.1-1.noarch.rpm

Please notice that I have found a bug in the older releases causing updates to fail (main directory will be deleted by post install script...). This means that in order to upgrade to 1.1.1-1 you will need to uninstall the old version first and then do the install of the new. Side effect is that your old log files (statistics) will also be deleted. If you want to avoid this you need to save a copy of all *.old and *.log files within /usr/local/unjunkmgr directory. These can be copied back after install is completed.

Title: Re: [Announce] Updated sme-unjunkmgr
Post by: jumba on April 04, 2009, 10:16:57 PM
Another question:

If I don't want to send out notifications to users, I execute

Code: [Select]
/sbin/e-smith/db configuration setprop unjunkmgr useremails no

This seems to disable the admin report mails as well.

Would it be possible to get only admin notifications, but no user notifications?
Title: Re: [Announce] Updated sme-unjunkmgr
Post by: Knuddi on April 05, 2009, 07:52:46 AM
Do I understand correctly that you (admin) want to receive summary emails per user but do not want the users to receive the same? That I didn't include as an option right now I am afraid.
Title: Re: [Announce] Updated sme-unjunkmgr
Post by: jumba on April 05, 2009, 09:03:15 AM
Yes Knuddi, you understand me correctly.

The situation I'm trying to adopt this for is a very common one though:

Most users on most servers don't have much problem with spam, and often they get more frustrated than helped by those weekly reports.
But as often, a small number of users attract huge numbers of spam, so the admin still needs those individual reports in order to slam them on the actual users's desk.

Hope you understand what I'm suggesting...

Best Regards!
Title: Re: [Announce] Updated sme-unjunkmgr
Post by: Knuddi on April 07, 2009, 11:04:07 AM
Jumba,

I have now made a new revision with this functionality enabled. If you disable useremails and enable adminemails you should what you were looking for.

http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/swerts-knudsen/SME7/UnJunkMgr/sme-unjunkmgr-1.1.2-1.noarch.rpm

Enjoy,
Jesper
Title: Re: [Announce] Updated sme-unjunkmgr
Post by: jumba on April 07, 2009, 11:36:24 AM
Great!

I just upgraded, and it seems to work.

Found a minor typo in your wiki page though:

Code: [Select]
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/swerts-knudsen/SME7/UnJunkMgr/sme-unjunkmgr-1.1.2-1.noarch.rpm
yum  --enablerepo=smecontribs --enablerepo=base localinstall sme-unjunkmgr-1.1.1-1.noarch.rpm

That last line should of course read:

Code: [Select]
yum  --enablerepo=smecontribs --enablerepo=base localinstall sme-unjunkmgr-1.1.2-1.noarch.rpm

Happy Eastern to you!