Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135940 - mail-filter/spamassassin-3.1.3 breaks --exit-code command-line option
Summary: mail-filter/spamassassin-3.1.3 breaks --exit-code command-line option
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-07 09:47 UTC by Drake Wyrm
Modified: 2010-03-27 23:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Drake Wyrm 2006-06-07 09:47:42 UTC
I should have posted this bug when I first noticed the problem, but mail-filter/spamassassin-3.1.3 (and 3.1.2, also) breaks the --exit-code option.

With 3.1.0, the option works as expected; that is, when it checks a piece of mail that is nonspam, it returns 0, but when it checks a piece of mail that _is_ spam, it returns some failure (5 by default).

With 3.1.[23], spamassassin returns 0 every time, indicating that every mail is nonspam. It looked like $exitvalue wasn't being propagated out of sub wanted{}. A print statement inside the eval block on line 342 shows that $exitvalue never changes in the new version, even if it changes in the wanted{} function.
Comment 1 Drake Wyrm 2006-06-07 14:51:12 UTC
Upstream is already aware of the problem and they have issued a patch.

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4930

This corrected the issue for me.
Comment 2 Christian Hartmann (RETIRED) gentoo-dev 2006-06-20 12:29:54 UTC
In cvs (spamassassin-3.1.3-r1). Didn't patch older versions as they will be removed after all arches are marked stable for version 3.1.3. See bug #135746 for further reference.