http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5145
Summary: M::SA::ArchiveIterator::scan_file() eats headers,
rendering them lost if INPUT is STDIN
Product: Spamassassin
Version: 3.1.4
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: Learner
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
If $self->{determine_receive_date} is true (which there is four ways it can
be), scan_file() will read the headers to feed them to
M::SA::Util::receive_date(). Unfortunately, this causes them to be lost if a
target is '-' (stdin).
Easiest fix would probably be always to write standard input to a temporary
file in sa-learn (not only if mb[o]x format is specified).
(By the way, what if you run
$ sa-learn --spam file1 :mbox:- < mbox1
? The code in sa-learn only checks $targets[0].)
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.