You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Hardy, Matthew" <ha...@popcbr.rockefeller.edu> on 2007/06/18 22:33:31 UTC

Problem with sa-learn in exmh 2.7.2

 

Mon Jun 18 09:30:59 EDT 2007

 

The ArchiveIterator perl module is producing an error message.  I

tried to find a solution with the SpamAssassin user group.  There

was some user correspondence on this bug, but the proposed patch

already seems to be incorporated as of SpamAssassin version

3.1.8.

 

My system is a Mac PowerBook G4 running OS X v 10.4.9.  I have

exmh 2.7.2 with nmh 1.2 (+ spamassassin v 3.2.0) installed and

working fine in all other respects.  It seems to be a problem

with the ArchiveIterator not recognizing the standard input from

within exmh.  Could someone tell me whether sa-learn is still

functioning?  I would be grateful for any advice.  The exmh log

follows.

 

09:04:55 (3.153) Bogo spam

09:04:55 (0.005) Marking 1 msg as SPAM

09:04:55 (0.032) Bogo {spamprog="sa-learn --spam",} message=\"1332\", 

action=\"refile\"

09:04:55 (0.018) exec {sa-learn --spam </Users/hardy/Mail/inbox/1332}

09:05:06 (10.770) Learned tokens from 1 message(s) (1 message(s)
examined)

archive-iterator: invalid (undef) format in target list, 2 at 

/Library/Perl/5.8.6/Mail/SpamAssassin/ArchiveIterator.pm line 455,
<STDIN> 

line 1.

09:05:06 (0.018) Bogo refile spam to junk

09:05:06 (0.003) => junk

09:05:06 (0.007) {cur: 1332 => }

09:05:06 (0.001) Writing /Users/hardy/Mail/inbox/.mh_sequences

09:05:06 (0.051) 

09:05:06 (0.034) Changes pending; End of folder

 

On the SpamAssassin user site,  I found the following:

 

if sa-learn is called without a target (e.g. for stdin input),

the message is warned:

 

archive-iterator: invalid (undef) format in target list, 2

at /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/ArchiveIterator.pm

line 727, <STDIN> line 1.

 

A simple solution right now is to specify '-' as the target when using
stdin.

 

OBS: 3.1.8 is not available in bugzilla yet.

 

In my case, the error message states that the error is on line 455.  Can
you advise on

how to achieve the proposed solve: "a simple solution right now is to
specify '-' as the target when using stdin"?

 

 

 

 

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Matthew P. Hardy, PhD                     Population Council

Senior Scientist & Adjunct Faculty    The Rockefeller University

Tele.    (212) 327-8754                  1230 York Ave.

FAX    (212) 327-7678                                   New York, NY
10021

Skype   (213) 984-4962 or hardymp (online)

e-mail  hardy@popcbr.rockefeller.edu

Web     www.popcouncil.org/staff/bios/Hardy_M/hardy_m.html

 


Re: Problem with sa-learn in exmh 2.7.2

Posted by Theo Van Dinter <fe...@apache.org>.
On Mon, Jun 18, 2007 at 04:33:31PM -0400, Hardy, Matthew wrote:
> The ArchiveIterator perl module is producing an error message.  I
> tried to find a solution with the SpamAssassin user group.  There
> was some user correspondence on this bug, but the proposed patch
> already seems to be incorporated as of SpamAssassin version
> 3.1.8.
>
> archive-iterator: invalid (undef) format in target list, 2 at 
> /Library/Perl/5.8.6/Mail/SpamAssassin/ArchiveIterator.pm line 455,
> <STDIN> 

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5336

It missed the 3.1.9 release, unfortunately, but will be out in a as of yet
non-planned 3.1.10 release.

> how to achieve the proposed solve: "a simple solution right now is to
> specify '-' as the target when using stdin"?

Sure.  Specify "-" as the target when you run sa-learn.  :)

ie:  instead of piping to "sa-learn <your options>",
     pipe to "sa-learn <your options> -".

-- 
Randomly Selected Tagline:
"Yeah ... You can give pilots guns ... or here's an idea: Why don't you
 make damn sure the airport is secure!?!?"
                                 - Lewis Black, The Daily Show 2002.07.17