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!
http://www.squirrelmail.org/plugin_view.php?id=242 (1)