SA Bugzilla – Bug 4148
Either sa-learn --folders doesn't work or the man-page doesn't
Last modified: 2005-03-11 10:59:12 UTC
The sa-learn man page specifies the file argument for folders to hold one folder per line with an optional ham: or spam: prefix. However, Mail::SpamAssassin::ArchiveIterator.pm, on line 413, expects three fields: $class, $format, and $rawloc. $format isn't even mentioned in the man page and it would appear that the ham:/spam: prefixes don't seem all that optional either. To make this line work, I need to change the lines in the --folders file to something like "ham:dir:~/.maildir/My dir/cur/". To fix it, I simply changed line 413 into: my ($class, $rawloc) = split(/:/, $target, 3); my $format = 'detect'; I haven't attached a diff, because I modified the original file ...
looking at the code, we need to modify "ham:path" to be "ham::path", or document that and that "ham:dir:path" is what we really want.
fixed in trunk, r157226. documentation makes it more clear, etc.