You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2006/05/30 22:31:59 UTC
[Bug 4930] New: -e exit code option not working in 3.1.2 on Windows
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4930
Summary: -e exit code option not working in 3.1.2 on Windows
Product: Spamassassin
Version: 3.1.2
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P3
Component: spamassassin
AssignedTo: dev@spamassassin.apache.org
ReportedBy: cemmitt@sewsus.com
3.1.2 is not setting a non-zero exit code when a message is classified as spam.
e.g. spamassassin -e < sample-spam.txt
3.1.1 exit code = 5
3.1.2 exit code = 0
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4930] -e exit code option not working in 3.1.2 on Windows
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4930
------- Additional Comments From a.waller@webpoint.at 2006-06-05 17:27 -------
I found the same on SuSE 10.1. The exit code is always 0.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4930] [review] -e exit code option not working in 3.1.2 on Windows
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4930
felicity@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|-e exit code option not |[review] -e exit code option
|working in 3.1.2 on Windows |not working in 3.1.2 on
| |Windows
Status Whiteboard| |needs 2 votes
------- Additional Comments From felicity@apache.org 2006-06-05 18:59 -------
Hrm. This is caused by the fix for bug 3754. Basically we needed to kluge in a return value when files
can't be read, etc. Interestingly, the problem seems to be related to a perl "feature". Specifically, it
looks like:
eval { $exitvalue ||= !$iter->run(@targets); };
the decision to set $exitvalue (ala "||=") is made first (because $exitvalue is undefined), then it's set to
the return from run() -- however, the wanted() function (called from run()) sets the global variable, so
we get:
$exitvalue = undef; # start
$exitvalue = 5; # set in wanted() via run()
$exitvalue = 1; # set in the eval {}
$ perl -e '$t ||= foo(); sub foo { $t = 5; return 1; } print "$t\n"'
1
So, interesting. Patch coming shortly.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4930] -e exit code option not working in 3.1.2 on Windows
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4930
felicity@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.1.3 |3.1.4
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4930] -e exit code option not working in 3.1.2 on Windows
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4930
spamassassin@dostech.ca changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|Undefined |3.1.3
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4930] [review] -e exit code option not working
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4930
felicity@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thomas@kaiserauer.org
------- Additional Comments From felicity@apache.org 2006-07-10 16:27 -------
*** Bug 4977 has been marked as a duplicate of this bug. ***
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4930] [review] -e exit code option not working
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4930
felicity@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
OS/Version|Windows XP |All
Platform|PC |All
Summary|[review] -e exit code option|[review] -e exit code option
|not working in 3.1.2 on |not working
|Windows |
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4930] [review] -e exit code option not working
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4930
spamassassin@dostech.ca changed:
What |Removed |Added
----------------------------------------------------------------------------
Status Whiteboard|needs 1 |can be committed
------- Additional Comments From spamassassin@dostech.ca 2006-07-09 21:52 -------
+1
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4930] [review] -e exit code option not working in 3.1.2 on Windows
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4930
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status Whiteboard|needs 2 votes |needs 1
------- Additional Comments From jm@jmason.org 2006-06-29 09:28 -------
wow. +1
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4930] [review] -e exit code option not working
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4930
felicity@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From felicity@apache.org 2006-07-10 00:04 -------
Sending spamassassin.raw
Transmitting file data .
Committed revision 420375.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4930] [review] -e exit code option not working in 3.1.2 on Windows
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4930
------- Additional Comments From felicity@apache.org 2006-06-05 18:59 -------
Created an attachment (id=3547)
--> (http://issues.apache.org/SpamAssassin/attachment.cgi?id=3547&action=view)
suggested patch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.