Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-25-2006, 09:27 PM   #1
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
SquirrelMail - Plugins - Spam Buttons

Hi there squirrelmail Guru's.

I've been trying to get this working a while now, but to no luck. What I want is when i'm using the spam_button (1) plugin in I want it to do is once it is marked as spam to move the e-mail from the inbox to $HOME/mail/Junk and same as marking it ham, move it from $HOME/mail/Junk to the inbox.

Now i've just been informated by the Squirrelmail Mailing list that it's on the 'todo' list for the plugin so I thought i'd ask for some help here.

this is what happens when you press the spam/ham buttons

$is_spam_shell_command = '/usr/bin/sa-learn --spam --username=###EMAIL_ADDRESS###';
$is_not_spam_shell_command = '/usr/bin/sa-learn --ham --username=###EMAIL_ADDRESS###';

it executes a command on the local machine, I was thinking if anyone knew a command to move mail from one box to another via the command line then we could just add the 'sa-learn' command in with the move mail command into a script and get the spam/ham button to execute that script???

Any idea's anyone? any thoughts? any help at all would be great! (1)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
spam filter that puts spam into spam folder? paul_mat Linux - Software 3 03-31-2009 05:18 AM
squirrelmail plugins LinuxLover Linux - Software 0 05-11-2006 06:40 AM
procmail and spam -- do not send out of office auto replay to spam draix Linux - Software 0 12-30-2004 09:35 AM
Squirrelmail sent as spam jerm8199 Fedora 1 07-21-2004 12:34 AM
SquirrelMail plugins question Swift&Smart Linux - Software 4 04-15-2004 11:47 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration