Koozali.org: home of the SME Server

Report this message as HAM/SPAM per-user at webmail (IMP) with the last Horde

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
I have created a bug http://bugs.contribs.org/show_bug.cgi?id=4407 to update Horde with the lasts packages because has a lot of improvements (DIMP, Report this message as HAM/SPAM per user - etc.)

I have updated my horde installation manually to testing before the community launch the update packages.
In IMP configuration are one configuration at the tab "Message and Spam" with the following options:

Setting name: $conf[spam][reporting]
Description: Should we display a 'report this message as spam' link?
Posible Input: yes/no

Setting name: $conf[spam][spamfolder]
Description: Should the link also appear in the user's spam folder?
Posible Input: checkbox

Setting name: $conf[spam][email]
Description: Should we report spam messages via email? The messages will be sent to this address in a single multipart/digest message (useful for reporting to an admin user, for example).
Posible Input: text box (email address)

Setting name: $conf[spam][bounce]
Description: Should we bounce the spam message to an email address? This is useful for automated spam processing programs that need the original message. If you need to dynamically set the email address for each user (e.g. DSPAM), this setting should be empty and you should look at the _imp_hook_spam_bounce hook instead.
Posible Input: text box (email address)

Setting name: $conf[spam][program]
Description: Should we report the spam message via an external program (e.g. /usr/local/bin/spamassassin -r)? If you include the placeholder %u in this string, it will be replaced with the current username. If you include the placeholder %l in this string, it will be replaced with the current short username. If you include the placeholder %d in this string, it will be replaced with the current domain name.
Posible Input: text box (programm to process email as ham like sa-learn or spamassassin)

The settings continue for HAM emails.

I want to run spamassassin -r or sa-learn PER user, but I can't because give me some errors.
Can you help me? When SME update to the last horde packages these settings become very usesful for those want to give per-user spam reporting.
I don't want to use learn as ham/spam system because require moving/copy the message to thos folders.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
I want to run spamassassin -r or sa-learn PER user, but I can't because give me some errors.
Can you help me? When SME update to the last horde packages these settings become very usesful for those want to give per-user spam reporting.
I don't want to use learn as ham/spam system because require moving/copy the message to thos folders.
I run it once a day as cronjob,setup using the sonoracomm howto, also linked in the wiki, I see no goal in running it multiple times a day triggered by user interaction, for the sonoracomm howto have a look here: http://www.sonoracomm.com/index.php?option=com_content&task=view&id=49&Itemid=32
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Jonathan, I already have implemented the Sonoracom howto in my server, but I want to implement a more comfortable new horde link "Report as Spam/ham". Yes, I can implement this with configuring an email address to process those emails as spam/ham or using an external program.
With my point of view, it is more comfortably the link "Report as.." than moving or copying the mail to a folder. But now horde give us the chance to use an external program like spamassassin or sa-learn.
One configuration can be use the same process like sonoracom, but without cron script, only click at the horde link this mail will proccesed with sa-learn, or more better if the mail is proccessed by spamassassin PER-USER.
AFAIK the method provided by sonoracom can not provide a per-user configuration. So if one mail is tagged from one user as spam, this mail can not reach any mailbox to other users.
I know there is a method with spamassassin to process each email per user with a user configuration in him account (...files/users/xxx/.spamassassin/user_pref)

I will investigate more in deph this issue, and some help are welcome :)
« Last Edit: June 16, 2008, 02:01:24 AM by Normando »