[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-plugins
Subject:    Re: [SM-PLUGINS] Spam Buttons: Report-By-Shell config questions -
From:       "Paul Lesniewski" <paul () squirrelmail ! org>
Date:       2006-11-24 7:15:01
Message-ID: 58191e420611232315sfc1337ewf6f9c22fd346b491 () mail ! gmail ! com
[Download RAW message or body]

On 11/23/06, Paul Lesniewski <paul@squirrelmail.org> wrote:
> Sorry for the delay...
>
> On 11/19/06, Alan in Toronto <Alantoronto@fiercefocus.com> wrote:
> > MY POST TO SM PLUGINS LIST
> >
> > SquirrelMail 1.4.6
> > PHP 4.4.4
> > Courier IMAP (in a cPanel release)
> > Capabilities: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
> > THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
> > STARTTLS
> > maildir mail storage format
> > Apache 1.3.37, CentOS 4.4, cPanel virtual web hosting account
> > Our webserver runs as nobody.
> > IMAP Server Address: 127.0.0.1
> > SMTP Server Address: 127.0.0.1
> > Server side sorting is enabled
> > Server side thread sorting is disabled
> > register_globals are off for my installation, but they are on for the rest
> > of the server
> > Usually access SquirrelMail via SSL (https) with IE6
> > I login using my full e-mail user address, e.g. alan@mydomain.com.
> >
> > Many plugins, including: Auto Complete; Folder Synch; Select Range; etc.
> >
> >
> > RECENT SPAM BUTTONS INSTALLATION AND CONFIGURATION
> >
> > I had a previous thread about this, but two days ago my webhost changed
> > the server environment somewhat and we have changed to Courier IMAP and
> > maildir format. As such, I thought it would confuse some future reader if
> > I continued the earlier thread.
> >
> > I installed the Spam Buttons plugin for SquirrelMail. (By the way, *great*
> > idea for a plugin - thanks Paul!)
> >
> > I patched /functions/mailbox_display.php as required.
> >
> > I want to enable Report-By-Shell Command Options. In the config file, I
> > enabled the following lines:
> >
> > $is_spam_shell_command = '/usr/bin/sa-learn --spam';
> > $is_not_spam_shell_command = '/usr/bin/sa-learn --ham';
> >
> > Note that those commands do work on our server when run outside
> > SquirrelMail. When SA Learn is run on a batch of messages in a folder, it
> > returns feedback like this:
> > spam SA Learn: Learned tokens from 9 message(s) (12 message(s) examined
> >
> > We just haven't been able to achieve similar success when using the plugin.
> >
> > I have now disabled disabled debug mode in the plugin ($sb_debug = 0;)
> > because with it disabled I am seeing more detail on the error.
>
> Please explain why you are reporting an error, but are telling us that
> you are turning off the debug flag because it gives you MORE DETAIL
> about the error?!?  That is frustratingly the OPPOSITE of what you
> need to do so we can help you better.
>
> > BEHAVIOUR
> >
> > I selected five messages and clicked the "Spam" button, and received this
> > feedback:
> >
> > ERROR 2: Problem reporting message ID 392: Learned tokens from 0
> > message(s) (1 message(s) examined)
> >
> > The first message in the list that I submitted has ID 392. So the
> > execution seems to stop after the first message. I get the same message
> > (just with different ID) when submitting one message or multiple messages.
> > It always says it has learned from 0 messages, always examined only 1
> > message, always shows Error 2.
>
> This is expected behavior.  It learns one at a time and stops if there
> is ever an error.
>
> > I've Googled extensively to find a list of SpamAssassin error codes, but
> > cannot find such a list.
>
> Maybe ask on the sa-users list then?
>
> > QUESTIONS
> >
> > 1. What should we try next?
>
> Show debug output.

Also try executing the sa-learn command from the command line as the
apache (or www or whatever web server user your system uses) user.
(man sudo).  There could be a problem due to the web server needing to
switch to another user first.

> > 2. Can anyone provide more detail on what "ERROR 2" signifies?
>
> Ask the sa folks perhaps.
>
> > 3. When Spam Buttons plugin is using Report-By-Shell Command Options and
> > working error-free, what sort of feedback does it return?
>
> What you'd expect, a short message, not an error.
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-plugins mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-plugins@lists.sourceforge.net
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.plugins
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3931
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic