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  [EMAIL PROTECTED]

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

 

Reply via email to