spam buttons with report-by-shell-commmand in dspam option problem

View: New views
6 Messages — Rating Filter:   Alert me  

spam buttons with report-by-shell-commmand in dspam option problem

by Leandro Fagundes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello all!

Please help me in trouble I'm having when trying to use the plugin spam_buttons report-by-shell-commmand follows the error log below, I tried resetting in various ways, but the error is always the same please help me!

When I click the spam button, there is the error raised below, and the message has not been trained

LOG (  via debugging on report by shell )

30509: [09/10/2009 17:02:15] Ignoring disallowed preference 'signatureLocation'
30509: [09/10/2009 17:02:15] Signature retrieval for '1066,4aa95b0c304601336712104^M' failed
30509: [09/10/2009 17:02:15] Unable to find a valid signature. Aborting.
30509: [09/10/2009 17:02:15] process_message returned error -5.  dropping message.

marked the dirt generated in bold, note that using the normal training with attach forwarding the same message is properly trained.


Congratulations for the project!
--
Leandro Fagundes



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: spam buttons with report-by-shell-commmand in dspam option problem

by Paul Lesniewski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Sep 10, 2009 at 1:53 PM, Leandro Fagundes
<leandro.fagundes@...> wrote:
>
> Hello all!
>
> Please help me in trouble I'm having when trying to use the plugin
> spam_buttons report-by-shell-commmand follows the error log below, I tried
> resetting in various ways, but the error is always the same please help me!

Please help us help you.  Read the mailing list posting guidelines,
which asks you to give us the relevant version information and
configuration details.  We can't guess - you have to show it to us.

> When I click the spam button, there is the error raised below, and the
> message has not been trained
>
> LOG (  via debugging on report by shell )
>
> 30509: [09/10/2009 17:02:15] Ignoring disallowed preference
> 'signatureLocation'
> 30509: [09/10/2009 17:02:15] Signature retrieval for
> '1066,4aa95b0c304601336712104^M' failed
> 30509: [09/10/2009 17:02:15] Unable to find a valid signature. Aborting.
> 30509: [09/10/2009 17:02:15] process_message returned error -5.  dropping
> message.

Have you considered Googling for the error messages?


--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: spam buttons with report-by-shell-commmand in dspam option problem

by Leandro Fagundes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Excuse me, below are the settings of the version of dspam, squirrelmail and dovecot. the error occurs when it is read or mounted to the signature line of mail at the end of the sequence appear strange characters (^ M).
Tested with another plugin (Dspam SquirrelMail Plugin Version 0.1 - 1.4.x) and the message is classified without problems, following the same concept. I did a search on google but found nothing.

Tested in config.php using the "REPORT-BY-EMAIL OPTIONS" and this is working, but I believe the option of using the command line so I'll have a better performance.

system:

fedora core 5

DSPAM Anti-Spam Suite 3.6.8 (agent / library)
Configuration parameters: - enable-daemon - enable-debug - with-storage-driver = mysql_drv - with-mysql-libraries = / usr / lib / mysql / - with-mysql-includes = / usr / include / mysql /

dovecot-1.0-0.beta8.1.fc5

Spam buttons v 2.3 (tested with earlier versions and the problem also occurs)

command line option "REPORT BY SHELL-COMMAND OPTIONS"
$ is_spam_shell_command = '/usr/local/bin/dspam --user root --class=spam --source=error 2> tmp/spam_buttons.log';

After this command is given, the error log appears the signature with the error, as in this example:

'1066,4aaa8f79213273572812869^M'
uid and the signature sequence are ok, but is being inserted this "^M" at the end of the sequence, which generates the error.

Thanks in advance

--
Leandro

 
Please help us help you.  Read the mailing list posting guidelines,
which asks you to give us the relevant version information and
configuration details.  We can't guess - you have to show it to us.

> When I click the spam button, there is the error raised below, and the
> message has not been trained
>
> LOG (  via debugging on report by shell )
>
> 30509: [09/10/2009 17:02:15] Ignoring disallowed preference
> 'signatureLocation'
> 30509: [09/10/2009 17:02:15] Signature retrieval for
> '1066,4aa95b0c304601336712104^M' failed
> 30509: [09/10/2009 17:02:15] Unable to find a valid signature. Aborting.
> 30509: [09/10/2009 17:02:15] process_message returned error -5.  dropping
> message.

Have you considered Googling for the error messages?







------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: spam buttons with report-by-shell-commmand in dspam option problem

by Paul Lesniewski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please don't top post.  Inline replies only, thanks.

>> Please help us help you.  Read the mailing list posting guidelines,
>> which asks you to give us the relevant version information and
>> configuration details.  We can't guess - you have to show it to us.
>>
>> > When I click the spam button, there is the error raised below, and the
>> > message has not been trained
>> >
>> > LOG (  via debugging on report by shell )
>> >
>> > 30509: [09/10/2009 17:02:15] Ignoring disallowed preference
>> > 'signatureLocation'
>> > 30509: [09/10/2009 17:02:15] Signature retrieval for
>> > '1066,4aa95b0c304601336712104^M' failed
>> > 30509: [09/10/2009 17:02:15] Unable to find a valid signature. Aborting.
>> > 30509: [09/10/2009 17:02:15] process_message returned error -5.
>> > dropping
>> > message.
>>
>> Have you considered Googling for the error messages?
>
> Excuse me, below are the settings of the version of dspam, squirrelmail and
> dovecot. the error occurs when it is read or mounted to the signature line
> of mail at the end of the sequence appear strange characters (^ M).
> Tested with another plugin (Dspam SquirrelMail Plugin Version 0.1 - 1.4.x)
> and the message is classified without problems, following the same concept.
> I did a search on google but found nothing.
>
> Tested in config.php using the "REPORT-BY-EMAIL OPTIONS" and this is
> working, but I believe the option of using the command line so I'll have a
> better performance.
>
> system:
>
> fedora core 5
>
> DSPAM Anti-Spam Suite 3.6.8 (agent / library)
> Configuration parameters: - enable-daemon - enable-debug -
> with-storage-driver = mysql_drv - with-mysql-libraries = / usr / lib / mysql
> / - with-mysql-includes = / usr / include / mysql /
>
> dovecot-1.0-0.beta8.1.fc5
>
> Spam buttons v 2.3 (tested with earlier versions and the problem also
> occurs)
>
> command line option "REPORT BY SHELL-COMMAND OPTIONS"
> $ is_spam_shell_command = '/usr/local/bin/dspam --user root --class=spam
> --source=error 2> tmp/spam_buttons.log';
>
> After this command is given, the error log appears the signature with the
> error, as in this example:
>
> '1066,4aaa8f79213273572812869^M'
> uid and the signature sequence are ok, but is being inserted this "^M" at
> the end of the sequence, which generates the error.

I see.  I am pretty short on time, so I can't go fiddling with DSpam
right now.  If you can't debug yourself, I'd suggest you ask the DSpam
community how a signature could have a windows linefeed on the end of
it.  Spam Buttons only provides the raw message to DSpam, so it seems
to be that DSpam is putting that there.  If Spam Buttons is causing
DSpam to calculate its signature in this manner, it would be helpful
for you to ask the DSpam developers why/what could cause that.

Is the error output you provided from the "/tmp/spam_buttons.log" file
that is created by your shell command configuration?

--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: spam buttons with report-by-shell-commmand in dspam option problem

by Leandro Fagundes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Paul, I do not think the problem is with the Dspam, because as I said in my previous post I used the option "Report by Email" in the spam_buttons this does not occur, and the other dspam plugin that I reported in the previous post. About the log generated, I set it as directed by the doc of spam_buttons. Well, I will debug this as time go left, and no new inform this post.

Thanks

--
Leandro

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: spam buttons with report-by-shell-commmand in dspam option problem

by Paul Lesniewski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Why did you remove the entire thread context and then top-post when I
asked you not to?  That's horrible.  When you reply next, please bring
it all back.  READ the mailing list posting guidelines or I won't
bother to reply to you any more.  If you want free support, have some
respect.

> Paul, I do not think the problem is with the Dspam, because as I said in my
> previous post I used the option "Report by Email" in the spam_buttons this
> does not occur, and the other dspam plugin that I reported in the previous
> post.

If you're the expert, then please send a patch for the fix.

Otherwise, I am telling you that the problem is with Dspam.  The
plugin DOES NOT build Dspam signatures.  Dspam does that.  It built a
strange one possibly because of the form in which the message was
received, but without knowing what it was about the message that Dspam
doesn't like, I can't possibly help you.

> About the log generated, I set it as directed by the doc of
> spam_buttons.

I asked you specifically what file the information came from.  I asked
you to confirm that it comes from spam_buttons.log.  Take that output
and your message and go to the Dspam people.

--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins