https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7296

            Bug ID: 7296
           Summary: Make sa-learn handle folder list prefixes with blank
                    types
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Learner
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 5378
  --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5378&action=edit
Patch

When given a folder list with the -f option, sa-learn does not currently handle
prefixes that do not specify a type. For example, given this line:
ham::/path/to/ham

sa-learn will throw this error:
archive-iterator: unable to open ham::/path/to/ham: No such file or directory

This is because ArchiveIterator expects a format to be specified, and sa-learn
is supposed to pass "detect" by default if one is not specified. This was not
happening when sa-learn was given a folder list with unspecified formats.

I have attached a patch to make sa-learn ensure that the format field is filled
upon reading in the folder list.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to